configure.ac: error when ENABLED_LINUXKM but $KERNEL_ARCH is empty (no default, no user value).

This commit is contained in:
Daniel Pouzzner
2020-09-03 23:10:50 -05:00
parent cd88a2c7df
commit 16267a1889

View File

@@ -3385,6 +3385,9 @@ then
if test "${KERNEL_ROOT}" = ""; then
AC_MSG_ERROR([Linux kernel source root not found -- supply with --with-linux-source=PATH.])
fi
if test "${KERNEL_ARCH}" = ""; then
AC_MSG_ERROR([Linux kernel target architecture for build tree ${KERNEL_ROOT} could not be determined. Is target kernel configured?])
fi
ENABLED_NO_LIBRARY=yes
fi