1 |
Based upon code from check-reqs.eclass by Andreas Sturmlechner
|
2 |
|
3 |
Provide support for users who requested the ability to skip
|
4 |
CONFIG_* checks. (e.g. from within a chroot for testing purposes)
|
5 |
|
6 |
Bug: https://bugs.gentoo.org/862315
|
7 |
Signed-off-by: Mike Pagano <mpagano@g.o>
|
8 |
---
|
9 |
eclass/linux-info.eclass | 11 ++++++++++-
|
10 |
1 file changed, 10 insertions(+), 1 deletion(-)
|
11 |
|
12 |
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
|
13 |
index 7e130062a..59e86490f 100644
|
14 |
--- a/eclass/linux-info.eclass
|
15 |
+++ b/eclass/linux-info.eclass
|
16 |
@@ -29,6 +29,15 @@
|
17 |
# A Couple of env vars are available to effect usage of this eclass
|
18 |
# These are as follows:
|
19 |
|
20 |
+
|
21 |
+# @ECLASS_VARIABLE: CHECKCONFIG_DONOTHING
|
22 |
+# @USER_VARIABLE
|
23 |
+# @DEFAULT_UNSET
|
24 |
+# @DESCRIPTION:
|
25 |
+# Do not error out in check_extra_config if CONFIG settings are not met.
|
26 |
+# This is a user flag and should under _no circumstances_ be set in the ebuild.
|
27 |
+[[ -n ${I_KNOW_WHAT_I_AM_DOING} ]] && CHECKCONFIG_DONOTHING=1
|
28 |
+
|
29 |
# @ECLASS_VARIABLE: KERNEL_DIR
|
30 |
# @DESCRIPTION:
|
31 |
# A string containing the directory of the target kernel sources. The default value is
|
32 |
@@ -978,7 +987,7 @@ linux-info_pkg_setup() {
|
33 |
|
34 |
linux-info_get_any_version
|
35 |
|
36 |
- [ -n "${CONFIG_CHECK}" ] && check_extra_config;
|
37 |
+ [[ -n "${CONFIG_CHECK}" && -z ${CHECKCONFIG_DONOTHING} ]] && check_extra_config;
|
38 |
}
|
39 |
|
40 |
# @FUNCTION: kernel_get_makefile
|
41 |
--
|
42 |
2.35.1
|
43 |
|
44 |
|
45 |
|
46 |
--
|
47 |
Mike Pagano
|
48 |
Gentoo Developer - Kernel Project
|
49 |
Gentoo Sources - Lead
|
50 |
E-Mail : mpagano@g.o
|
51 |
GnuPG FP : 52CC A0B0 F631 0B17 0142 F83F 92A6 DBEC 81F2 B137
|
52 |
Public Key : http://http://pgp.mit.edu/pks/lookup?search=0x92A6DBEC81F2B137&op=index |