MLNX-3.0-2.0.1 failed to build with different linux path

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


then the build will fail for can’t find the kernel source.

Please confirm and fix. thanks