diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-12-11 20:20:05 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2005-12-11 20:20:05 +0000 |
commit | b49013024ae3fc31d4e30a3e57421a85f0baaef2 (patch) | |
tree | 515cfc6b5582901c7affa5216df732bb1202b616 | |
parent | 7be510580042addfbc702493ee075772997971c6 (diff) | |
download | busybox-w32-b49013024ae3fc31d4e30a3e57421a85f0baaef2.tar.gz busybox-w32-b49013024ae3fc31d4e30a3e57421a85f0baaef2.tar.bz2 busybox-w32-b49013024ae3fc31d4e30a3e57421a85f0baaef2.zip |
Patch from Yann E. Morin to reorganize module config options.
git-svn-id: svn://busybox.net/trunk/busybox@12839 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | modutils/Config.in | 79 |
1 files changed, 43 insertions, 36 deletions
diff --git a/modutils/Config.in b/modutils/Config.in index bf19a3e67..8f23be836 100644 --- a/modutils/Config.in +++ b/modutils/Config.in | |||
@@ -11,22 +11,8 @@ config CONFIG_INSMOD | |||
11 | help | 11 | help |
12 | insmod is used to load specified modules in the running kernel. | 12 | insmod is used to load specified modules in the running kernel. |
13 | 13 | ||
14 | config CONFIG_FEATURE_2_4_MODULES | ||
15 | bool " Support version 2.2.x to 2.4.x Linux kernels" | ||
16 | default y | ||
17 | depends on CONFIG_INSMOD | ||
18 | help | ||
19 | Support module loading for 2.2.x and 2.4.x Linux kernels. | ||
20 | |||
21 | config CONFIG_FEATURE_2_6_MODULES | ||
22 | bool " Support version 2.6.x Linux kernels" | ||
23 | default n | ||
24 | depends on CONFIG_INSMOD | ||
25 | help | ||
26 | Support module loading for newer 2.6.x Linux kernels. | ||
27 | |||
28 | config CONFIG_FEATURE_INSMOD_VERSION_CHECKING | 14 | config CONFIG_FEATURE_INSMOD_VERSION_CHECKING |
29 | bool " Module version checking" | 15 | bool "Module version checking" |
30 | default n | 16 | default n |
31 | depends on CONFIG_INSMOD && CONFIG_FEATURE_2_4_MODULES | 17 | depends on CONFIG_INSMOD && CONFIG_FEATURE_2_4_MODULES |
32 | help | 18 | help |
@@ -34,7 +20,7 @@ config CONFIG_FEATURE_INSMOD_VERSION_CHECKING | |||
34 | ensure that the kernel and module are made for each other. | 20 | ensure that the kernel and module are made for each other. |
35 | 21 | ||
36 | config CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS | 22 | config CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS |
37 | bool " Add module symbols to kernel symbol table" | 23 | bool "Add module symbols to kernel symbol table" |
38 | default n | 24 | default n |
39 | depends on CONFIG_INSMOD && CONFIG_FEATURE_2_4_MODULES | 25 | depends on CONFIG_INSMOD && CONFIG_FEATURE_2_4_MODULES |
40 | help | 26 | help |
@@ -45,7 +31,7 @@ config CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS | |||
45 | Oops messages from kernel modules, say N. | 31 | Oops messages from kernel modules, say N. |
46 | 32 | ||
47 | config CONFIG_FEATURE_INSMOD_LOADINKMEM | 33 | config CONFIG_FEATURE_INSMOD_LOADINKMEM |
48 | bool " In kernel memory optimization (uClinux only)" | 34 | bool "In kernel memory optimization (uClinux only)" |
49 | default n | 35 | default n |
50 | depends on CONFIG_INSMOD && CONFIG_FEATURE_2_4_MODULES | 36 | depends on CONFIG_INSMOD && CONFIG_FEATURE_2_4_MODULES |
51 | help | 37 | help |
@@ -55,7 +41,7 @@ config CONFIG_FEATURE_INSMOD_LOADINKMEM | |||
55 | being loaded into memory. | 41 | being loaded into memory. |
56 | 42 | ||
57 | config CONFIG_FEATURE_INSMOD_LOAD_MAP | 43 | config CONFIG_FEATURE_INSMOD_LOAD_MAP |
58 | bool " Enable load map (-m) option" | 44 | bool "Enable load map (-m) option" |
59 | default n | 45 | default n |
60 | depends on CONFIG_INSMOD && CONFIG_FEATURE_2_4_MODULES | 46 | depends on CONFIG_INSMOD && CONFIG_FEATURE_2_4_MODULES |
61 | help | 47 | help |
@@ -66,7 +52,7 @@ config CONFIG_FEATURE_INSMOD_LOAD_MAP | |||
66 | don't need this option. | 52 | don't need this option. |
67 | 53 | ||
68 | config CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL | 54 | config CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL |
69 | bool " Symbols in load map" | 55 | bool "Symbols in load map" |
70 | default y | 56 | default y |
71 | depends on CONFIG_FEATURE_INSMOD_LOAD_MAP | 57 | depends on CONFIG_FEATURE_INSMOD_LOAD_MAP |
72 | help | 58 | help |
@@ -74,6 +60,12 @@ config CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL | |||
74 | load map. With this option, -m will also output | 60 | load map. With this option, -m will also output |
75 | symbols load map. | 61 | symbols load map. |
76 | 62 | ||
63 | config CONFIG_RMMOD | ||
64 | bool "rmmod" | ||
65 | default n | ||
66 | help | ||
67 | rmmod is used to unload specified modules from the kernel. | ||
68 | |||
77 | config CONFIG_LSMOD | 69 | config CONFIG_LSMOD |
78 | bool "lsmod" | 70 | bool "lsmod" |
79 | default n | 71 | default n |
@@ -81,18 +73,13 @@ config CONFIG_LSMOD | |||
81 | lsmod is used to display a list of loaded modules. | 73 | lsmod is used to display a list of loaded modules. |
82 | 74 | ||
83 | config CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT | 75 | config CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT |
84 | bool " lsmod pretty output for 2.6.x Linux kernels " | 76 | bool "lsmod pretty output for 2.6.x Linux kernels " |
85 | default n | 77 | default n |
86 | depends on CONFIG_LSMOD | 78 | depends on CONFIG_LSMOD |
87 | help | 79 | help |
88 | This option makes output format of lsmod adjusted to | 80 | This option makes output format of lsmod adjusted to |
89 | the format of module-init-tools for Linux kernel 2.6. | 81 | the format of module-init-tools for Linux kernel 2.6. |
90 | 82 | ||
91 | config CONFIG_FEATURE_QUERY_MODULE_INTERFACE | ||
92 | bool | ||
93 | default y | ||
94 | depends on CONFIG_FEATURE_2_4_MODULES && !CONFIG_FEATURE_2_6_MODULES | ||
95 | |||
96 | config CONFIG_MODPROBE | 83 | config CONFIG_MODPROBE |
97 | bool "modprobe" | 84 | bool "modprobe" |
98 | default n | 85 | default n |
@@ -100,33 +87,31 @@ config CONFIG_MODPROBE | |||
100 | Handle the loading of modules, and their dependancies on a high | 87 | Handle the loading of modules, and their dependancies on a high |
101 | level. | 88 | level. |
102 | 89 | ||
103 | Note that, in the state it is, modprobe can pass only one option | 90 | Note that in the state, modprobe does not understand multiple |
104 | to the modules it loads. See option below. | 91 | module options from the configuration file. See option below. |
105 | 92 | ||
106 | config CONFIG_MODPROBE_MULTIPLE_OPTIONS | 93 | config CONFIG_FEATURE_MODPROBE_MULTIPLE_OPTIONS |
107 | bool "Multiple options parsing" | 94 | bool "Multiple options parsing" |
108 | default y | 95 | default y |
109 | depends on CONFIG_MODPROBE | 96 | depends on CONFIG_MODPROBE |
110 | help | 97 | help |
111 | Allow modprobe to understand more than one option to pass to | 98 | Allow modprobe to understand more than one option to pass to |
112 | modules. | 99 | modules. |
113 | 100 | ||
114 | This is a WIP, while waiting for a common argument parsing | 101 | This is a WIP, while waiting for a common argument parsing |
115 | common amongst all BB applets (shell, modprobe, etc...) and | 102 | common amongst all BB applets (shell, modprobe, etc...) and |
116 | adds around 600 bytes on x86, 700 bytes on ARM. The code is | 103 | adds around 600 bytes on x86, 700 bytes on ARM. The code is |
117 | biggish and uggly, but just works. | 104 | biggish and uggly, but just works. |
118 | 105 | ||
119 | Saying Y here is not a bad idea if you're not that short | 106 | Saying Y here is not a bad idea if you're not that short |
120 | on storage capacity. | 107 | on storage capacity. |
121 | 108 | ||
122 | config CONFIG_RMMOD | 109 | comment "Options common to multiple modutils" |
123 | bool "rmmod" | 110 | depends on CONFIG_INSMOD || CONFIG_RMMOD || CONFIG_MODPROBE || CONFIG_LSMOD |
124 | default n | ||
125 | help | ||
126 | rmmod is used to unload specified modules from the kernel. | ||
127 | 111 | ||
128 | config CONFIG_FEATURE_CHECK_TAINTED_MODULE | 112 | config CONFIG_FEATURE_CHECK_TAINTED_MODULE |
129 | bool "Support tainted module checking with new kernels" | 113 | # Simulate indentation |
114 | bool " Support tainted module checking with new kernels" | ||
130 | default y | 115 | default y |
131 | depends on CONFIG_INSMOD || CONFIG_LSMOD | 116 | depends on CONFIG_INSMOD || CONFIG_LSMOD |
132 | help | 117 | help |
@@ -135,6 +120,28 @@ config CONFIG_FEATURE_CHECK_TAINTED_MODULE | |||
135 | support request. | 120 | support request. |
136 | This option is required to support GPLONLY modules. | 121 | This option is required to support GPLONLY modules. |
137 | 122 | ||
123 | config CONFIG_FEATURE_2_4_MODULES | ||
124 | # Simulate indentation | ||
125 | bool " Support version 2.2.x to 2.4.x Linux kernels" | ||
126 | default y | ||
127 | depends on CONFIG_INSMOD || CONFIG_RMMOD | ||
128 | help | ||
129 | Support module loading for 2.2.x and 2.4.x Linux kernels. | ||
130 | |||
131 | config CONFIG_FEATURE_2_6_MODULES | ||
132 | # Simulate indentation | ||
133 | bool " Support version 2.6.x Linux kernels" | ||
134 | default y | ||
135 | depends on CONFIG_INSMOD || CONFIG_RMMOD || CONFIG_MODPROBE | ||
136 | help | ||
137 | Support module loading for newer 2.6.x Linux kernels. | ||
138 | |||
139 | |||
140 | config CONFIG_FEATURE_QUERY_MODULE_INTERFACE | ||
141 | bool | ||
142 | default y | ||
143 | depends on CONFIG_FEATURE_2_4_MODULES && !CONFIG_FEATURE_2_6_MODULES | ||
144 | |||
138 | 145 | ||
139 | endmenu | 146 | endmenu |
140 | 147 | ||