Whamcloud - gitweb
LU-18813 contrib: add an example config.site 65/59265/3
authorTimothy Day <timday@amazon.com>
Fri, 16 May 2025 05:50:43 +0000 (01:50 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 7 Jun 2025 23:03:13 +0000 (23:03 +0000)
The variable CONFIG_SITE can be used to specify
config files to the Autoconf generated configure
script. This is a useful alternative to long
configure command lines.

Add an example config.site file used for compiling
Lustre server (osd-wbcfs) and client for use in
ktest.

Test-Parameters: trivial
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: I6597b860629643ced7191d7a250a86ede2576993
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59265
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Lijing Chen <lijinc@amazon.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
contrib/config.site.ktest [new file with mode: 0644]

diff --git a/contrib/config.site.ktest b/contrib/config.site.ktest
new file mode 100644 (file)
index 0000000..72d8a8c
--- /dev/null
@@ -0,0 +1,44 @@
+#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# Autoconf generated configure scripts allow users to
+# specify defaults and environment variables via scripts.
+# This is an example to be used with ktest.
+#
+# CONFIG_SITE="./config/config.site.ktest" ./configure
+#
+# ktest: https://github.com/koverstreet/ktest
+# Docs: https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.72/html_node/Site-Defaults.html
+#
+# Author: Timothy Day <timday@amazon.com>
+#
+
+# Disable strict errors for LLVM
+if [[ -n "$LLVM" ]]; then
+       enable_strict_errors="no"
+fi
+
+# Disable persistent OSDs
+with_ldiskfs="no"
+with_zfs="no"
+
+# Disable optional features
+with_o2ib="no"
+enable_gss="no"
+
+# Always build the server
+enable_server="yes"
+
+# ktest uses statically linked tools
+enable_shared="no"
+
+# Assume that Linux is in the same directory
+# as Lustre
+with_linux="$PWD/../linux/"
+
+# Build the kernel via ktest into tmp
+ARCH="$(uname -m)"
+with_linux_obj="/tmp/ktest-out/kernel_build.$ARCH/"