summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Pagano <mpagano@gentoo.org>2023-01-16 16:04:34 -0500
committerMike Pagano <mpagano@gentoo.org>2023-01-16 16:04:34 -0500
commitc5d4de5ed682ac0c70fa87c8cab6b35bed51c979 (patch)
treea4a79701828aaf6d8aa9abee569b40e38945bd8a /eclass
parentsys-apps/texinfo: add 7.0.1.90 (pre-release, unkeyworded) (diff)
downloadgentoo-c5d4de5ed682ac0c70fa87c8cab6b35bed51c979.tar.gz
gentoo-c5d4de5ed682ac0c70fa87c8cab6b35bed51c979.tar.bz2
gentoo-c5d4de5ed682ac0c70fa87c8cab6b35bed51c979.zip
linux-info.eclass: Chk for existance of .config/config.gz when opts req
In the instance where CONFIG_* settings are required and not optional, make sure there is either a .config or a config.gz to check Closes: https://bugs.gentoo.org/890720 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/linux-info.eclass10
1 files changed, 8 insertions, 2 deletions
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
index 16ef69ebccb8..a65d0c441ba2 100644
--- a/eclass/linux-info.eclass
+++ b/eclass/linux-info.eclass
@@ -805,8 +805,14 @@ check_extra_config() {
export LINUX_CONFIG_EXISTS_DONE="${old_LINUX_CONFIG_EXISTS_DONE}"
return 0
fi
- else
- require_configured_kernel
+ elif ! linux_config_exists; then
+ qeerror "Could not find a neither a usable .config in the kernel source directory"
+ qeerror "nor a /proc/config.gz file,"
+ qeerror "Please ensure that ${KERNEL_DIR} points to a configured set of Linux sources."
+ qeerror "If you are using KBUILD_OUTPUT, please set the environment var so that"
+ qeerror "it points to the necessary object directory so that it might find .config"
+ qeerror "or have a properly configured kernel to produce a config.gz file. (CONFIG_IKCONFIG)."
+ die "Kernel not configured; no .config found in ${KV_OUT_DIR} or /proc/config.gz found"
fi
ebegin "Checking for suitable kernel configuration options"