Whamcloud - gitweb
LU-17342 o2ib: build without Module.symvers 58/53358/3
authorTimothy Day <timday@amazon.com>
Thu, 7 Dec 2023 05:12:57 +0000 (05:12 +0000)
committerOleg Drokin <green@whamcloud.com>
Wed, 29 May 2024 04:45:29 +0000 (04:45 +0000)
When building against an external kernel tree, the
configure script fails if there isn't a Module.symvers
available. This prevents us from using the
'modules_prepare' make target on the kernel tree.
ko2iblnd.ko can be build even without Module.symvers.
Hence, downgrade this message from an error to a
warning.

Also, don't fail if ko2iblnd can't be built. Just
emit a warning.

Test-Parameters: trivial
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: I8bca7f945c753fdac3aa5d9889d3347613baf059
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53358
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/autoconf/lustre-lnet.m4

index 3a58fc9..7498ac0 100644 (file)
@@ -340,12 +340,11 @@ Auto detection of external O2IB failed. Build of external o2ib disabled.])
                        INT_O2IB_SYMBOLS="${CHECK_SYMBOLS}"
                fi
        else
-               AC_MSG_WARN([Module.symvers for in-kernel o2iblnd was not found, in-kernel ofed will not be built])
-               BUILT_IN_KO2IBLND="no"
+               AC_MSG_WARN([Module.symvers for in-kernel o2iblnd was not found])
        fi
 
        if test "x$EXTERNAL_KO2IBLND" = "xno" -a "x$BUILT_IN_KO2IBLND" = "xno" ; then
-               AC_MSG_ERROR([No o2iblnd can be built])
+               AC_MSG_WARN([No o2iblnd can be built])
        elif test "x$ENABLE_MULTIPLE_LNDS" = "xno" -a \
                  "x$EXTERNAL_KO2IBLND" != "xno" -a "x$BUILT_IN_KO2IBLND" != "xno"; then
                AC_MSG_WARN([