From 16267a1889f077b734eb7ff1793e7d3a8b0e763b Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Thu, 3 Sep 2020 23:10:50 -0500 Subject: [PATCH] configure.ac: error when ENABLED_LINUXKM but $KERNEL_ARCH is empty (no default, no user value). --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index eb1b6360a..623392f30 100644 --- a/configure.ac +++ b/configure.ac @@ -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