Whamcloud - gitweb
EX-4890 configure script changes system header and config files
authorAlex Deiter <alex.deiter@gmail.com>
Thu, 24 Feb 2022 14:10:40 +0000 (14:10 +0000)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 28 Feb 2022 18:22:49 +0000 (18:22 +0000)
Remove the SUBDIRS target from configure tests.
Since Linux kernel version 2.6.x we can use target M.

Change-Id: I8e59bdaf2d0e4e08a659e08f63a14472fba72eb2
Signed-off-by: Alex Deiter <alex.deiter@gmail.com>
Reviewed-on: https://review.whamcloud.com/46603
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
config/lustre-build-linux.m4

index 7a1e26f..7e74b1a 100644 (file)
@@ -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])],