From: Alex Deiter Date: Sun, 12 Jun 2022 19:26:26 +0000 (-0700) Subject: LU-15939 build: configure script changes system header and config files X-Git-Tag: 2.15.51~88 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=9a013c0c217aae50fbeb3016dc7a389ff53bd347;hp=cb0220db3ce517b0e2fce93c864e6c3dbb61b5e0 LU-15939 build: configure script changes system header and config files Remove the SUBDIRS target from configure tests. Since Linux kernel version 2.6.x we can use target M. Test-Parameters: trivial clientdistro=ubuntu2004 Test-Parameters: trivial clientdistro=el8.5 Change-Id: I8e59bdaf2d0e4e08a659e08f63a14472fba72eb2 Signed-off-by: Alex Deiter Reviewed-on: https://review.whamcloud.com/47604 Tested-by: jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- diff --git a/config/lustre-build-linux.m4 b/config/lustre-build-linux.m4 index e8122fe..ef5ee24 100644 --- a/config/lustre-build-linux.m4 +++ b/config/lustre-build-linux.m4 @@ -11,14 +11,9 @@ makerule="$PWD/build" AC_CACHE_CHECK([for external module build target], lb_cv_module_target, [ lb_cv_module_target="" - MODULE_TARGET="SUBDIRS" rm -f build/conftest.i - LB_LINUX_TRY_MAKE([], [], - [$makerule LUSTRE_KERNEL_TEST=conftest.i], - [test -s build/conftest.i], - [lb_cv_module_target="SUBDIRS"],[ MODULE_TARGET="M" - makerule="$PWD/build/" + makerule="$PWD/build" LB_LINUX_TRY_MAKE([], [], [$makerule LUSTRE_KERNEL_TEST=conftest.i], [test -s build/conftest.i], @@ -36,7 +31,7 @@ AC_CACHE_CHECK([for external module build target], lb_cv_module_target, [test -s build/conftest.i], [lb_cv_module_target="M58"], [ AC_MSG_ERROR([kernel module make failed; check config.log for details]) - ])])])]) + ])])]) ]) AS_IF([test -z "$lb_cv_module_target"], [AC_MSG_ERROR([unknown external module build target])],