1 |
commit: 003ffa2521daf2f95687142d64d6fb7599043f06 |
2 |
Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 7 20:25:23 2022 +0000 |
4 |
Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 7 20:25:23 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=003ffa25 |
7 |
|
8 |
linux-info.eclass: Provide ability to skip CONFIG_* checks |
9 |
|
10 |
Provide support for users who requested the ability to skip |
11 |
CONFIG_* checks. (e.g. from within a chroot for testing purposes) |
12 |
|
13 |
Closes: https://bugs.gentoo.org/862315 |
14 |
|
15 |
Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> |
16 |
|
17 |
eclass/linux-info.eclass | 11 ++++++++++- |
18 |
1 file changed, 10 insertions(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass |
21 |
index 7e130062a6c1..0bc714e8175f 100644 |
22 |
--- a/eclass/linux-info.eclass |
23 |
+++ b/eclass/linux-info.eclass |
24 |
@@ -29,6 +29,15 @@ |
25 |
# A Couple of env vars are available to effect usage of this eclass |
26 |
# These are as follows: |
27 |
|
28 |
+ |
29 |
+# @ECLASS_VARIABLE: CHECKCONFIG_DONOTHING |
30 |
+# @USER_VARIABLE |
31 |
+# @DEFAULT_UNSET |
32 |
+# @DESCRIPTION: |
33 |
+# Do not error out in check_extra_config if CONFIG settings are not met. |
34 |
+# This is a user flag and should under _no circumstances_ be set in the ebuild. |
35 |
+: ${CHECKCONFIG_DONOTHING:=""} |
36 |
+ |
37 |
# @ECLASS_VARIABLE: KERNEL_DIR |
38 |
# @DESCRIPTION: |
39 |
# A string containing the directory of the target kernel sources. The default value is |
40 |
@@ -978,7 +987,7 @@ linux-info_pkg_setup() { |
41 |
|
42 |
linux-info_get_any_version |
43 |
|
44 |
- [ -n "${CONFIG_CHECK}" ] && check_extra_config; |
45 |
+ [[ -n "${CONFIG_CHECK}" && -z ${CHECKCONFIG_DONOTHING} ]] && check_extra_config; |
46 |
} |
47 |
|
48 |
# @FUNCTION: kernel_get_makefile |