From d77b8d709dfc347bcdf4f55d276c9f91c35512c8 Mon Sep 17 00:00:00 2001 From: Timothy Day Date: Fri, 16 May 2025 01:50:43 -0400 Subject: [PATCH] LU-18813 contrib: add an example config.site 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 Change-Id: I6597b860629643ced7191d7a250a86ede2576993 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59265 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Arshad Hussain Reviewed-by: Lijing Chen Reviewed-by: Oleg Drokin --- contrib/config.site.ktest | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 contrib/config.site.ktest diff --git a/contrib/config.site.ktest b/contrib/config.site.ktest new file mode 100644 index 0000000..72d8a8c --- /dev/null +++ b/contrib/config.site.ktest @@ -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 +# + +# 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/" -- 1.8.3.1