commit:     003ffa2521daf2f95687142d64d6fb7599043f06
Author:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
AuthorDate: Sun Aug  7 20:25:23 2022 +0000
Commit:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
CommitDate: Sun Aug  7 20:25:23 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=003ffa25

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 <AT> gentoo.org>

 eclass/linux-info.eclass | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

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

Reply via email to