aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-12-05 08:41:41 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-12-05 08:41:41 +0000
commite40a650628ce6b03e67c4c6d96ea396e7bd2afb3 (patch)
tree72904548bb54dcaf78017d3b35296765437e0bd5 /shell
parent49ec1a2dc6dfba670b3659286524fd5baf12e6fe (diff)
downloadbusybox-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.in208
-rw-r--r--shell/config.in63
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
6menu "Bourne Shell"
7
8choice
9 prompt "Choose your default shell"
10 default "ash"
11 help
12 Please submit a patch to add help text for this item.
13
14config CONFIG_FEATURE_SH_IS_ASH
15 bool "ash"
16
17config CONFIG_FEATURE_SH_IS_HUSH
18 bool "hush"
19
20config CONFIG_FEATURE_SH_IS_LASH
21 bool "lash"
22
23config CONFIG_FEATURE_SH_IS_MSH
24 bool "msh"
25
26endchoice
27
28if CONFIG_FEATURE_SH_IS_ASH
29 config CONFIG_ASH
30 default y
31
32 comment "ash (forced enabled as default shell)"
33endif
34
35if !CONFIG_FEATURE_SH_IS_ASH
36config CONFIG_ASH
37 bool "ash"
38 default y
39 help
40 Please submit a patch to add help text for this item.
41endif
42
43comment "Ash Shell Options"
44 depends on CONFIG_ASH
45
46config 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
53config 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
60config 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
67config 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
74config 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
81config 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
88config 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
95config 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
102if CONFIG_FEATURE_SH_IS_HUSH
103 config CONFIG_HUSH
104 default y
105
106 comment "hush (forced enabled as default shell)"
107endif
108
109if !CONFIG_FEATURE_SH_IS_HUSH
110config CONFIG_HUSH
111 bool "hush"
112 default n
113 help
114 Please submit a patch to add help text for this item.
115endif
116
117if CONFIG_FEATURE_SH_IS_LASH
118 config CONFIG_LASH
119 default y
120
121 comment "lash (forced enabled as default shell)"
122endif
123
124if !CONFIG_FEATURE_SH_IS_LASH
125config CONFIG_LASH
126 bool "lash"
127 default n
128 help
129 Please submit a patch to add help text for this item.
130endif
131
132if CONFIG_FEATURE_SH_IS_MSH
133 config CONFIG_MSH
134 default y
135
136 comment "msh (forced enabled as default shell)"
137endif
138
139if !CONFIG_FEATURE_SH_IS_MSH
140config CONFIG_MSH
141 bool "msh"
142 default n
143 help
144 Please submit a patch to add help text for this item.
145endif
146
147
148comment "Bourne Shell Options"
149 depends on CONFIG_MSH || CONFIG_LASH || CONFIG_HUSH || CONFIG_ASH
150
151config 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
158config 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
165config 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
172config 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
179config 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
186config 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
193config 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
200config 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
207endmenu
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
6mainmenu_option next_comment
7comment 'Bourne Shell'
8
9choice '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
17if [ "$CONFIG_FEATURE_SH_IS_ASH" = "y" ] ; then
18 define_bool CONFIG_ASH y
19fi
20
21if [ "$CONFIG_FEATURE_SH_IS_HUSH" = "y" ] ; then
22 define_bool CONFIG_HUSH y
23fi
24
25if [ "$CONFIG_FEATURE_SH_IS_LASH" = "y" ] ; then
26 define_bool CONFIG_LASH y
27fi
28
29if [ "$CONFIG_FEATURE_SH_IS_MSH" = "y" ] ; then
30 define_bool CONFIG_MSH y
31fi
32
33bool 'ash' CONFIG_ASH
34if [ "$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 ''
44fi
45
46bool 'hush' CONFIG_HUSH
47bool 'lash' CONFIG_LASH
48bool 'msh' CONFIG_MSH
49
50
51comment 'Bourne Shell Options'
52bool 'command line editing' CONFIG_FEATURE_COMMAND_EDITING
53bool 'tab completion' CONFIG_FEATURE_COMMAND_TAB_COMPLETION
54bool 'username completion' CONFIG_FEATURE_COMMAND_USERNAME_COMPLETION
55int 'history size' CONFIG_FEATURE_COMMAND_HISTORY 15
56bool 'history saving (currently only ash)' CONFIG_FEATURE_COMMAND_SAVEHISTORY
57bool 'Standalone shell' CONFIG_FEATURE_SH_STANDALONE_SHELL
58bool 'Standalone shell -- applets always win' CONFIG_FEATURE_SH_APPLETS_ALWAYS_WIN
59bool 'Fancy shell prompts' CONFIG_FEATURE_SH_FANCY_PROMPT
60bool 'Hide message on interactive shell startup' CONFIG_FEATURE_SH_EXTRA_QUIET
61
62endmenu
63