diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-12-05 08:41:41 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-12-05 08:41:41 +0000 |
commit | e40a650628ce6b03e67c4c6d96ea396e7bd2afb3 (patch) | |
tree | 72904548bb54dcaf78017d3b35296765437e0bd5 /shell | |
parent | 49ec1a2dc6dfba670b3659286524fd5baf12e6fe (diff) | |
download | busybox-w32-e40a650628ce6b03e67c4c6d96ea396e7bd2afb3.tar.gz busybox-w32-e40a650628ce6b03e67c4c6d96ea396e7bd2afb3.tar.bz2 busybox-w32-e40a650628ce6b03e67c4c6d96ea396e7bd2afb3.zip |
Yet another major rework of the BusyBox config system, using the considerably
modified Kbuild system I put into uClibc. With this, there should be no more
need to modify Rules.mak since I've moved all the interesting options into the
config system. I think I've got everything updated, but you never know, I may
have made some mistakes, so watch closely.
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@6102 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r-- | shell/Config.in | 208 | ||||
-rw-r--r-- | shell/config.in | 63 |
2 files changed, 208 insertions, 63 deletions
diff --git a/shell/Config.in b/shell/Config.in new file mode 100644 index 000000000..3f5d53222 --- /dev/null +++ b/shell/Config.in | |||
@@ -0,0 +1,208 @@ | |||
1 | # | ||
2 | # For a description of the syntax of this configuration file, | ||
3 | # see scripts/kbuild/config-language.txt. | ||
4 | # | ||
5 | |||
6 | menu "Bourne Shell" | ||
7 | |||
8 | choice | ||
9 | prompt "Choose your default shell" | ||
10 | default "ash" | ||
11 | help | ||
12 | Please submit a patch to add help text for this item. | ||
13 | |||
14 | config CONFIG_FEATURE_SH_IS_ASH | ||
15 | bool "ash" | ||
16 | |||
17 | config CONFIG_FEATURE_SH_IS_HUSH | ||
18 | bool "hush" | ||
19 | |||
20 | config CONFIG_FEATURE_SH_IS_LASH | ||
21 | bool "lash" | ||
22 | |||
23 | config CONFIG_FEATURE_SH_IS_MSH | ||
24 | bool "msh" | ||
25 | |||
26 | endchoice | ||
27 | |||
28 | if CONFIG_FEATURE_SH_IS_ASH | ||
29 | config CONFIG_ASH | ||
30 | default y | ||
31 | |||
32 | comment "ash (forced enabled as default shell)" | ||
33 | endif | ||
34 | |||
35 | if !CONFIG_FEATURE_SH_IS_ASH | ||
36 | config CONFIG_ASH | ||
37 | bool "ash" | ||
38 | default y | ||
39 | help | ||
40 | Please submit a patch to add help text for this item. | ||
41 | endif | ||
42 | |||
43 | comment "Ash Shell Options" | ||
44 | depends on CONFIG_ASH | ||
45 | |||
46 | config CONFIG_ASH_JOB_CONTROL | ||
47 | bool " Enable Job control" | ||
48 | default y | ||
49 | depends on CONFIG_ASH | ||
50 | help | ||
51 | Please submit a patch to add help text for this item. | ||
52 | |||
53 | config CONFIG_ASH_ALIAS | ||
54 | bool " Enable alias support" | ||
55 | default y | ||
56 | depends on CONFIG_ASH | ||
57 | help | ||
58 | Please submit a patch to add help text for this item. | ||
59 | |||
60 | config CONFIG_ASH_MATH_SUPPORT | ||
61 | bool " Enable Posix math support" | ||
62 | default y | ||
63 | depends on CONFIG_ASH | ||
64 | help | ||
65 | Please submit a patch to add help text for this item. | ||
66 | |||
67 | config CONFIG_ASH_GETOPTS | ||
68 | bool " Enable getopt builtin to parse positional parameters" | ||
69 | default n | ||
70 | depends on CONFIG_ASH | ||
71 | help | ||
72 | Please submit a patch to add help text for this item. | ||
73 | |||
74 | config CONFIG_ASH_CMDCMD | ||
75 | bool " Enable cmdcmd to override shell builtins" | ||
76 | default n | ||
77 | depends on CONFIG_ASH | ||
78 | help | ||
79 | Please submit a patch to add help text for this item. | ||
80 | |||
81 | config CONFIG_ASH_MAIL | ||
82 | bool " Check for new mail on interactive shells" | ||
83 | default y | ||
84 | depends on CONFIG_ASH | ||
85 | help | ||
86 | Please submit a patch to add help text for this item. | ||
87 | |||
88 | config CONFIG_ASH_OPTIMIZE_FOR_SIZE | ||
89 | bool " Optimize for size instead of speed" | ||
90 | default y | ||
91 | depends on CONFIG_ASH | ||
92 | help | ||
93 | Please submit a patch to add help text for this item. | ||
94 | |||
95 | config CONFIG_FEATURE_COMMAND_SAVEHISTORY | ||
96 | bool " history saving" | ||
97 | default n | ||
98 | depends on CONFIG_ASH | ||
99 | help | ||
100 | Please submit a patch to add help text for this item. | ||
101 | |||
102 | if CONFIG_FEATURE_SH_IS_HUSH | ||
103 | config CONFIG_HUSH | ||
104 | default y | ||
105 | |||
106 | comment "hush (forced enabled as default shell)" | ||
107 | endif | ||
108 | |||
109 | if !CONFIG_FEATURE_SH_IS_HUSH | ||
110 | config CONFIG_HUSH | ||
111 | bool "hush" | ||
112 | default n | ||
113 | help | ||
114 | Please submit a patch to add help text for this item. | ||
115 | endif | ||
116 | |||
117 | if CONFIG_FEATURE_SH_IS_LASH | ||
118 | config CONFIG_LASH | ||
119 | default y | ||
120 | |||
121 | comment "lash (forced enabled as default shell)" | ||
122 | endif | ||
123 | |||
124 | if !CONFIG_FEATURE_SH_IS_LASH | ||
125 | config CONFIG_LASH | ||
126 | bool "lash" | ||
127 | default n | ||
128 | help | ||
129 | Please submit a patch to add help text for this item. | ||
130 | endif | ||
131 | |||
132 | if CONFIG_FEATURE_SH_IS_MSH | ||
133 | config CONFIG_MSH | ||
134 | default y | ||
135 | |||
136 | comment "msh (forced enabled as default shell)" | ||
137 | endif | ||
138 | |||
139 | if !CONFIG_FEATURE_SH_IS_MSH | ||
140 | config CONFIG_MSH | ||
141 | bool "msh" | ||
142 | default n | ||
143 | help | ||
144 | Please submit a patch to add help text for this item. | ||
145 | endif | ||
146 | |||
147 | |||
148 | comment "Bourne Shell Options" | ||
149 | depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH | ||
150 | |||
151 | config CONFIG_FEATURE_COMMAND_EDITING | ||
152 | bool "command line editing" | ||
153 | default n | ||
154 | depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH | ||
155 | help | ||
156 | Please submit a patch to add help text for this item. | ||
157 | |||
158 | config CONFIG_FEATURE_COMMAND_TAB_COMPLETION | ||
159 | bool "tab completion" | ||
160 | default n | ||
161 | depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH | ||
162 | help | ||
163 | Please submit a patch to add help text for this item. | ||
164 | |||
165 | config CONFIG_FEATURE_COMMAND_USERNAME_COMPLETION | ||
166 | bool "username completion" | ||
167 | default n | ||
168 | depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH | ||
169 | help | ||
170 | Please submit a patch to add help text for this item. | ||
171 | |||
172 | config CONFIG_FEATURE_COMMAND_HISTORY | ||
173 | int "history size" | ||
174 | default 15 | ||
175 | depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH | ||
176 | help | ||
177 | Please submit a patch to add help text for this item. | ||
178 | |||
179 | config CONFIG_FEATURE_SH_STANDALONE_SHELL | ||
180 | bool "Standalone shell" | ||
181 | default n | ||
182 | depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH | ||
183 | help | ||
184 | Please submit a patch to add help text for this item. | ||
185 | |||
186 | config CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN | ||
187 | bool "Standalone shell -- applets always win" | ||
188 | default n | ||
189 | depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH | ||
190 | help | ||
191 | Please submit a patch to add help text for this item. | ||
192 | |||
193 | config CONFIG_FEATURE_SH_FANCY_PROMPT | ||
194 | bool "Fancy shell prompts" | ||
195 | default n | ||
196 | depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH | ||
197 | help | ||
198 | Please submit a patch to add help text for this item. | ||
199 | |||
200 | config CONFIG_FEATURE_SH_EXTRA_QUIET | ||
201 | bool "Hide message on interactive shell startup" | ||
202 | default n | ||
203 | depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH | ||
204 | help | ||
205 | Please submit a patch to add help text for this item. | ||
206 | |||
207 | endmenu | ||
208 | |||
diff --git a/shell/config.in b/shell/config.in deleted file mode 100644 index cb1365b9d..000000000 --- a/shell/config.in +++ /dev/null | |||
@@ -1,63 +0,0 @@ | |||
1 | # | ||
2 | # For a description of the syntax of this configuration file, | ||
3 | # see scripts/kbuild/config-language.txt. | ||
4 | # | ||
5 | |||
6 | mainmenu_option next_comment | ||
7 | comment 'Bourne Shell' | ||
8 | |||
9 | choice 'Choose your default shell' \ | ||
10 | "ash CONFIG_FEATURE_SH_IS_ASH \ | ||
11 | hush CONFIG_FEATURE_SH_IS_HUSH \ | ||
12 | lash CONFIG_FEATURE_SH_IS_LASH \ | ||
13 | msh CONFIG_FEATURE_SH_IS_MSH \ | ||
14 | none CONFIG_FEATURE_SH_IS_NONE" \ | ||
15 | ash | ||
16 | |||
17 | if [ "$CONFIG_FEATURE_SH_IS_ASH" = "y" ] ; then | ||
18 | define_bool CONFIG_ASH y | ||
19 | fi | ||
20 | |||
21 | if [ "$CONFIG_FEATURE_SH_IS_HUSH" = "y" ] ; then | ||
22 | define_bool CONFIG_HUSH y | ||
23 | fi | ||
24 | |||
25 | if [ "$CONFIG_FEATURE_SH_IS_LASH" = "y" ] ; then | ||
26 | define_bool CONFIG_LASH y | ||
27 | fi | ||
28 | |||
29 | if [ "$CONFIG_FEATURE_SH_IS_MSH" = "y" ] ; then | ||
30 | define_bool CONFIG_MSH y | ||
31 | fi | ||
32 | |||
33 | bool 'ash' CONFIG_ASH | ||
34 | if [ "$CONFIG_ASH" = "y" ] ; then | ||
35 | comment 'Ash Shell Options' | ||
36 | bool 'Enable Job control' CONFIG_ASH_JOB_CONTROL | ||
37 | bool 'Enable alias support' CONFIG_ASH_ALIAS | ||
38 | bool 'Enable Posix math support' CONFIG_ASH_MATH_SUPPORT | ||
39 | bool 'Enable getopt builtin to parse positional parameters' CONFIG_ASH_GETOPTS | ||
40 | bool 'Enable cmdcmd to override shell builtins' CONFIG_ASH_CMDCMD | ||
41 | bool 'Check for new mail on interactive shells' CONFIG_ASH_MAIL | ||
42 | bool 'Optimize for size instead of speed' CONFIG_ASH_OPTIMIZE_FOR_SIZE | ||
43 | comment '' | ||
44 | fi | ||
45 | |||
46 | bool 'hush' CONFIG_HUSH | ||
47 | bool 'lash' CONFIG_LASH | ||
48 | bool 'msh' CONFIG_MSH | ||
49 | |||
50 | |||
51 | comment 'Bourne Shell Options' | ||
52 | bool 'command line editing' CONFIG_FEATURE_COMMAND_EDITING | ||
53 | bool 'tab completion' CONFIG_FEATURE_COMMAND_TAB_COMPLETION | ||
54 | bool 'username completion' CONFIG_FEATURE_COMMAND_USERNAME_COMPLETION | ||
55 | int 'history size' CONFIG_FEATURE_COMMAND_HISTORY 15 | ||
56 | bool 'history saving (currently only ash)' CONFIG_FEATURE_COMMAND_SAVEHISTORY | ||
57 | bool 'Standalone shell' CONFIG_FEATURE_SH_STANDALONE_SHELL | ||
58 | bool 'Standalone shell -- applets always win' CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN | ||
59 | bool 'Fancy shell prompts' CONFIG_FEATURE_SH_FANCY_PROMPT | ||
60 | bool 'Hide message on interactive shell startup' CONFIG_FEATURE_SH_EXTRA_QUIET | ||
61 | |||
62 | endmenu | ||
63 | |||