CHECK_SYMBOLS=$(find ${INT_O2IBPATH}* -name Module.symvers)
contains newlines if there is more than one Module.symvers
and cause a build failure
Test-Parameters: trivial
Fixes:
8b1d2a72f1 ("LU-16967 build: Add in-kernel-ko2iblnd driver")
HPE-bug-id: LUS-12229
Signed-off-by: Alexander Lezhoev <alexander.lezhoev@hpe.com>
Change-Id: I980630dc646ec837e18b0e123999027a23aaa2d6
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54680
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
if test -f $INT_O2IBPATH/Module.symvers; then
CHECK_SYMBOLS=$INT_O2IBPATH/Module.symvers
elif test "x$SUSE_KERNEL" = "xyes"; then
- CHECK_SYMBOLS=$(find ${INT_O2IBPATH}* -name Module.symvers)
+ CHECK_SYMBOLS=$(find ${INT_O2IBPATH}* -name Module.symvers -printf "%p ")
# Select only the current 'flavor' if there is more than 1
NUM_AVAIL=$(find ${INT_O2IBPATH}* -name Module.symvers | wc -l)
if test ${NUM_AVAIL} -gt 1; then