Gentoo Archives: gentoo-commits

From: Mike Pagano <mpagano@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Fri, 18 Jun 2021 23:07:08
Message-Id: 1624057537.770ee5ae02ed5749695895ab3488fd750e44ff48.mpagano@gentoo
1 commit: 770ee5ae02ed5749695895ab3488fd750e44ff48
2 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 18 23:05:37 2021 +0000
4 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 18 23:05:37 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=770ee5ae
7
8 eclass/linux-info: Properly document CONFIG_CHECK and ERROR_<CFG>
9
10 Closes: https://bugs.gentoo.org/409207
11
12 Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org>
13
14 eclass/linux-info.eclass | 7 ++++++-
15 1 file changed, 6 insertions(+), 1 deletion(-)
16
17 diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
18 index e2f2ad1b888..6da13cc0b2f 100644
19 --- a/eclass/linux-info.eclass
20 +++ b/eclass/linux-info.eclass
21 @@ -64,7 +64,12 @@ KERNEL_DIR="${KERNEL_DIR:-${ROOT%/}/usr/src/linux}"
22 # A string containing the error message to display when the check against CONFIG_CHECK
23 # fails. <CFG> should reference the appropriate option used in CONFIG_CHECK.
24 #
25 -# e.g.: ERROR_MTRR="MTRR exists in the .config but shouldn't!!"
26 +# e.g.: ERROR_MTRR="MTRR exists in the .config but shouldn't!!"
27 +#
28 +# CONFIG_CHECK="CFG" with ERROR_<CFG>="Error Message" will die
29 +# CONFIG_CHECK="~CFG" with ERROR_<CFG>="Error Message" calls eerror without dieing
30 +# CONFIG_CHECK="~CFG" with WARNING_<CFG>="Warning Message" calls ewarn without dieing
31 +
32
33 # @ECLASS-VARIABLE: KBUILD_OUTPUT
34 # @DEFAULT_UNSET