1 |
On 5/17/22 14:45, Mike Pagano wrote: |
2 |
> Document functions which did not have any documentation or were not |
3 |
> formatted to gentoo specifications |
4 |
> |
5 |
> Signed-off-by: Mike Pagano <mpagano@g.o> |
6 |
> --- |
7 |
> eclass/linux-mod.eclass | 66 ++++++++++++++++++++--------------------- |
8 |
> 1 file changed, 33 insertions(+), 33 deletions(-) |
9 |
> |
10 |
> diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass |
11 |
> index 93e93b44a..111067a42 100644 |
12 |
> --- a/eclass/linux-mod.eclass |
13 |
> +++ b/eclass/linux-mod.eclass |
14 |
> @@ -227,11 +227,10 @@ convert_to_m() { |
15 |
> fi |
16 |
> } |
17 |
> |
18 |
> -# internal function |
19 |
> -# |
20 |
> -# FUNCTION: update_depmod |
21 |
> -# DESCRIPTION: |
22 |
> -# It updates the modules.dep file for the current kernel. |
23 |
> +# @FUNCTION: update_depmod |
24 |
> +# @INTERNAL |
25 |
> +# @DESCRIPTION: |
26 |
> +# Updates the modules.dep file for the current kernel. |
27 |
> update_depmod() { |
28 |
> debug-print-function ${FUNCNAME} $* |
29 |
> |
30 |
> @@ -252,11 +251,10 @@ update_depmod() { |
31 |
> fi |
32 |
> } |
33 |
> |
34 |
> -# internal function |
35 |
> -# |
36 |
> -# FUNCTION: move_old_moduledb |
37 |
> -# DESCRIPTION: |
38 |
> -# It updates the location of the database used by the module-rebuild |
39 |
> utility. |
40 |
> +# @FUNCTION: move_old_moduledb |
41 |
> +# @INTERNAL |
42 |
> +# @DESCRIPTION: |
43 |
> +# Updates the location of the database used by the module-rebuild utility. |
44 |
> move_old_moduledb() { |
45 |
> debug-print-function ${FUNCNAME} $* |
46 |
> |
47 |
> @@ -272,11 +270,10 @@ move_old_moduledb() { |
48 |
> fi |
49 |
> } |
50 |
> |
51 |
> -# internal function |
52 |
> -# |
53 |
> -# FUNCTION: update_moduledb |
54 |
> -# DESCRIPTION: |
55 |
> -# It adds the package to the /var/lib/module-rebuild/moduledb database |
56 |
> used by the module-rebuild utility. |
57 |
> +# @FUNCTION: update_moduledb |
58 |
> +# @INTERNAL |
59 |
> +# @DESCRIPTION: |
60 |
> +# Adds the package to the /var/lib/module-rebuild/moduledb database |
61 |
> used by the module-rebuild utility. |
62 |
> update_moduledb() { |
63 |
> debug-print-function ${FUNCNAME} $* |
64 |
> |
65 |
> @@ -294,12 +291,10 @@ update_moduledb() { |
66 |
> fi |
67 |
> } |
68 |
> |
69 |
> -# internal function |
70 |
> -# |
71 |
> -# FUNCTION: remove_moduledb |
72 |
> -# DESCRIPTION: |
73 |
> -# It removes the package from the /var/lib/module-rebuild/moduledb |
74 |
> database used by |
75 |
> -# the module-rebuild utility. |
76 |
> +# @FUNCTION: remove_moduledb |
77 |
> +# @INTERNAL |
78 |
> +# @DESCRIPTION: |
79 |
> +# Removes the package from the /var/lib/module-rebuild/moduledb |
80 |
> database used by |
81 |
> remove_moduledb() { |
82 |
> debug-print-function ${FUNCNAME} $* |
83 |
> |
84 |
> @@ -329,6 +324,10 @@ set_kvobj() { |
85 |
> # einfo "Using KV_OBJ=${KV_OBJ}" |
86 |
> } |
87 |
> |
88 |
> +# @FUNCTION: get-KERNEL_CC |
89 |
> +# @RETURN: Name of the C compiler. |
90 |
> +# @DESCRIPTION: |
91 |
> +# Return name of the C compiler while honoring variables defined in |
92 |
> ebuilds. |
93 |
> get-KERNEL_CC() { |
94 |
> debug-print-function ${FUNCNAME} $* |
95 |
> |
96 |
> @@ -349,12 +348,11 @@ get-KERNEL_CC() { |
97 |
> echo "${kernel_cc}" |
98 |
> } |
99 |
> |
100 |
> -# internal function |
101 |
> -# |
102 |
> -# FUNCTION: |
103 |
> -# USAGE: /path/to/the/modulename_without_extension |
104 |
> -# RETURN: A file in /etc/modprobe.d |
105 |
> -# DESCRIPTION: |
106 |
> +# @FUNCTION: generate_modulesd |
107 |
> +# @INTERNAL |
108 |
> +# @USAGE: /path/to/the/modulename_without_extension |
109 |
> +# @RETURN: A file in /etc/modprobe.d |
110 |
> +# @DESCRIPTION: |
111 |
> # This function will generate and install the neccessary modprobe.d |
112 |
> file from the |
113 |
> # information contained in the modules exported parms. |
114 |
> # (see the variables MODULESD_<modulename>_ENABLED, |
115 |
> MODULESD_<modulename>_EXAMPLES, |
116 |
> @@ -503,12 +501,11 @@ generate_modulesd() { |
117 |
> return 0 |
118 |
> } |
119 |
> |
120 |
> -# internal function |
121 |
> -# |
122 |
> -# FUNCTION: find_module_params |
123 |
> -# USAGE: A string "NAME(LIBDIR:SRCDIR:OBJDIR)" |
124 |
> -# RETURN: The string "modulename:NAME libdir:LIBDIR srcdir:SRCDIR |
125 |
> objdir:OBJDIR" |
126 |
> -# DESCRIPTION: |
127 |
> +# @FUNCTION: find_module_params |
128 |
> +# @USAGE: A string "NAME(LIBDIR:SRCDIR:OBJDIR)" |
129 |
> +# @INTERNAL |
130 |
> +# @RETURN: The string "modulename:NAME libdir:LIBDIR srcdir:SRCDIR |
131 |
> objdir:OBJDIR" |
132 |
> +# @DESCRIPTION: |
133 |
> # Analyze the specification NAME(LIBDIR:SRCDIR:OBJDIR) of one module |
134 |
> as described in MODULE_NAMES. |
135 |
> find_module_params() { |
136 |
> debug-print-function ${FUNCNAME} $* |
137 |
> @@ -601,6 +598,9 @@ linux-mod_pkg_setup_binary() { |
138 |
> linux-info_pkg_setup; |
139 |
> } |
140 |
> |
141 |
> +# @FUNCTION: strip_modulenames |
142 |
> +# @DESCRIPTION: |
143 |
> +# Remove modules from being built automatically using the default |
144 |
> src_compile/src_install |
145 |
> strip_modulenames() { |
146 |
> debug-print-function ${FUNCNAME} $* |
147 |
> |
148 |
|
149 |
Both 1/2 and 2/2 commited. |