I found that in the configure file, the line
if [[-e"/etc/SuSE-release"&&"$KSRC"=~ "build"]]||
[["$KSRC"=~ "build"&&-d${KSRC/build/source}&&
"X$(readlink -f $KSRC)"!="X$(readlink -f ${KSRC/build/source})"]];then
and when KSRC path has a 'build' in the middle instead of the end of the string, ie
/var/lib/jenkins/workspace/lustre-b_ieel-reviews-ib/arch/x86_64/build_type/client/distro/sles11sp3/ib_stack/mlx/BUILD/reused/usr/src/linux-obj/x86_64/default
then the build will fail for can't find the kernel source.
Please confirm and fix. thanks