1 |
commit: 0469565ec3a42334d496d6002dd25bbac1948fe9 |
2 |
Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 18 14:31:12 2021 +0000 |
4 |
Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 18 14:31:12 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0469565e |
7 |
|
8 |
eclass/linux-info: eclassdoc fixes |
9 |
|
10 |
Closes: https://bugs.gentoo.org/637780 |
11 |
|
12 |
Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> |
13 |
|
14 |
eclass/linux-info.eclass | 17 ++++++++++++----- |
15 |
1 file changed, 12 insertions(+), 5 deletions(-) |
16 |
|
17 |
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass |
18 |
index 55f38af0ffd..861123e0e8b 100644 |
19 |
--- a/eclass/linux-info.eclass |
20 |
+++ b/eclass/linux-info.eclass |
21 |
@@ -33,8 +33,10 @@ |
22 |
# @DESCRIPTION: |
23 |
# A string containing the directory of the target kernel sources. The default value is |
24 |
# "/usr/src/linux" |
25 |
+KERNEL_DIR="${KERNEL_DIR:-${ROOT%/}/usr/src/linux}" |
26 |
|
27 |
# @ECLASS-VARIABLE: CONFIG_CHECK |
28 |
+# @DEFAULT_UNSET |
29 |
# @DESCRIPTION: |
30 |
# A string containing a list of .config options to check for before |
31 |
# proceeding with the install. |
32 |
@@ -57,6 +59,7 @@ |
33 |
# sources. |
34 |
|
35 |
# @ECLASS-VARIABLE: ERROR_<CFG> |
36 |
+# @DEFAULT_UNSET |
37 |
# @DESCRIPTION: |
38 |
# A string containing the error message to display when the check against CONFIG_CHECK |
39 |
# fails. <CFG> should reference the appropriate option used in CONFIG_CHECK. |
40 |
@@ -64,6 +67,7 @@ |
41 |
# e.g.: ERROR_MTRR="MTRR exists in the .config but shouldn't!!" |
42 |
|
43 |
# @ECLASS-VARIABLE: KBUILD_OUTPUT |
44 |
+# @DEFAULT_UNSET |
45 |
# @DESCRIPTION: |
46 |
# A string passed on commandline, or set from the kernel makefile. It contains the directory |
47 |
# which is to be used as the kernel object directory. |
48 |
@@ -72,35 +76,43 @@ |
49 |
# set by hand. These are as follows: |
50 |
|
51 |
# @ECLASS-VARIABLE: KV_FULL |
52 |
+# @INTERNAL |
53 |
# @DESCRIPTION: |
54 |
# A read-only variable. It's a string containing the full kernel version. ie: 2.6.9-gentoo-johnm-r1 |
55 |
|
56 |
# @ECLASS-VARIABLE: KV_MAJOR |
57 |
+# @INTERNAL |
58 |
# @DESCRIPTION: |
59 |
# A read-only variable. It's an integer containing the kernel major version. ie: 2 |
60 |
|
61 |
# @ECLASS-VARIABLE: KV_MINOR |
62 |
+# @INTERNAL |
63 |
# @DESCRIPTION: |
64 |
# A read-only variable. It's an integer containing the kernel minor version. ie: 6 |
65 |
|
66 |
# @ECLASS-VARIABLE: KV_PATCH |
67 |
+# @INTERNAL |
68 |
# @DESCRIPTION: |
69 |
# A read-only variable. It's an integer containing the kernel patch version. ie: 9 |
70 |
|
71 |
# @ECLASS-VARIABLE: KV_EXTRA |
72 |
+# @INTERNAL |
73 |
# @DESCRIPTION: |
74 |
# A read-only variable. It's a string containing the kernel EXTRAVERSION. ie: -gentoo |
75 |
|
76 |
# @ECLASS-VARIABLE: KV_LOCAL |
77 |
+# @INTERNAL |
78 |
# @DESCRIPTION: |
79 |
# A read-only variable. It's a string containing the kernel LOCALVERSION concatenation. ie: -johnm |
80 |
|
81 |
# @ECLASS-VARIABLE: KV_DIR |
82 |
+# @INTERNAL |
83 |
# @DESCRIPTION: |
84 |
# A read-only variable. It's a string containing the kernel source directory, will be null if |
85 |
# KERNEL_DIR is invalid. |
86 |
|
87 |
# @ECLASS-VARIABLE: KV_OUT_DIR |
88 |
+# @INTERNAL |
89 |
# @DESCRIPTION: |
90 |
# A read-only variable. It's a string containing the kernel object directory, will be KV_DIR unless |
91 |
# KBUILD_OUTPUT is used. This should be used for referencing .config. |
92 |
@@ -113,11 +125,6 @@ EXPORT_FUNCTIONS pkg_setup |
93 |
|
94 |
IUSE="kernel_linux" |
95 |
|
96 |
-# Overwritable environment Var's |
97 |
-# --------------------------------------- |
98 |
-KERNEL_DIR="${KERNEL_DIR:-${ROOT%/}/usr/src/linux}" |
99 |
- |
100 |
- |
101 |
# Bug fixes |
102 |
# fix to bug #75034 |
103 |
case ${ARCH} in |