summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pagano <mpagano@gentoo.org>2022-08-07 16:25:23 -0400
committerMike Pagano <mpagano@gentoo.org>2022-08-07 16:25:23 -0400
commit003ffa2521daf2f95687142d64d6fb7599043f06 (patch)
treedf408d88286a43cf402cb35e0b62f9dfc9792eb4 /eclass/linux-info.eclass
parentgames-emulation/emutos: add 1.2 (diff)
downloadgentoo-003ffa2521daf2f95687142d64d6fb7599043f06.tar.gz
gentoo-003ffa2521daf2f95687142d64d6fb7599043f06.tar.bz2
gentoo-003ffa2521daf2f95687142d64d6fb7599043f06.zip
linux-info.eclass: Provide ability to skip CONFIG_* checks
Provide support for users who requested the ability to skip CONFIG_* checks. (e.g. from within a chroot for testing purposes) Closes: https://bugs.gentoo.org/862315 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
Diffstat (limited to 'eclass/linux-info.eclass')
-rw-r--r--eclass/linux-info.eclass11
1 files changed, 10 insertions, 1 deletions
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
index 7e130062a6c1..0bc714e8175f 100644
--- a/eclass/linux-info.eclass
+++ b/eclass/linux-info.eclass
@@ -29,6 +29,15 @@
# A Couple of env vars are available to effect usage of this eclass
# These are as follows:
+
+# @ECLASS_VARIABLE: CHECKCONFIG_DONOTHING
+# @USER_VARIABLE
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# Do not error out in check_extra_config if CONFIG settings are not met.
+# This is a user flag and should under _no circumstances_ be set in the ebuild.
+: ${CHECKCONFIG_DONOTHING:=""}
+
# @ECLASS_VARIABLE: KERNEL_DIR
# @DESCRIPTION:
# A string containing the directory of the target kernel sources. The default value is
@@ -978,7 +987,7 @@ linux-info_pkg_setup() {
linux-info_get_any_version
- [ -n "${CONFIG_CHECK}" ] && check_extra_config;
+ [[ -n "${CONFIG_CHECK}" && -z ${CHECKCONFIG_DONOTHING} ]] && check_extra_config;
}
# @FUNCTION: kernel_get_makefile