diff options
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/linux/Config.in | 209 | ||||
-rw-r--r-- | sysdeps/linux/config.in | 49 |
2 files changed, 209 insertions, 49 deletions
diff --git a/sysdeps/linux/Config.in b/sysdeps/linux/Config.in new file mode 100644 index 000000000..0fa66eac6 --- /dev/null +++ b/sysdeps/linux/Config.in | |||
@@ -0,0 +1,209 @@ | |||
1 | # | ||
2 | # For a description of the syntax of this configuration file, | ||
3 | # see scripts/kbuild/config-language.txt. | ||
4 | # | ||
5 | |||
6 | mainmenu "BusyBox Configuration" | ||
7 | |||
8 | choice | ||
9 | prompt "Buffer allocation policy" | ||
10 | default "Allocate with Malloc" | ||
11 | help | ||
12 | Please submit a patch to add help text for this item. | ||
13 | |||
14 | config CONFIG_FEATURE_BUFFERS_USE_MALLOC | ||
15 | bool "Allocate with Malloc" | ||
16 | |||
17 | config CONFIG_FEATURE_BUFFERS_GO_ON_STACK | ||
18 | bool "Allocate on the Stack" | ||
19 | |||
20 | config CONFIG_FEATURE_BUFFERS_GO_IN_BSS | ||
21 | bool "Allocate in the .bss section" | ||
22 | |||
23 | endchoice | ||
24 | |||
25 | config CONFIG_FEATURE_VERBOSE_USAGE | ||
26 | bool "Show verbose applet usage messages" | ||
27 | default n | ||
28 | help | ||
29 | Please submit a patch to add help text for this item. | ||
30 | |||
31 | config CONFIG_FEATURE_INSTALLER | ||
32 | bool "Support --install [-s] to install applet links at runtime" | ||
33 | default n | ||
34 | help | ||
35 | Please submit a patch to add help text for this item. | ||
36 | |||
37 | config CONFIG_LOCALE_SUPPORT | ||
38 | bool "Enable locale support (system needs locale for this to work)" | ||
39 | default n | ||
40 | help | ||
41 | Please submit a patch to add help text for this item. | ||
42 | |||
43 | config CONFIG_FEATURE_DEVFS | ||
44 | bool "Support for devfs" | ||
45 | default n | ||
46 | help | ||
47 | Please submit a patch to add help text for this item. | ||
48 | |||
49 | config CONFIG_FEATURE_DEVPTS | ||
50 | bool "Use the devpts filesystem for Unix98 PTYs" | ||
51 | default y if CONFIG_FEATURE_DEVFS | ||
52 | help | ||
53 | Please submit a patch to add help text for this item. | ||
54 | |||
55 | config CONFIG_FEATURE_CLEAN_UP | ||
56 | bool "Clean up all memory before exiting (usually not needed)" | ||
57 | default n | ||
58 | help | ||
59 | Please submit a patch to add help text for this item. | ||
60 | |||
61 | config CONFIG_FEATURE_SUID | ||
62 | bool "Support for SUID/SGID handling" | ||
63 | default n | ||
64 | help | ||
65 | Please submit a patch to add help text for this item. | ||
66 | |||
67 | config CONFIG_FEATURE_SUID_CONFIG | ||
68 | bool "Runtime SUID/SGID configuration via /etc/busybox.conf" | ||
69 | default y if CONFIG_FEATURE_SUID | ||
70 | depends on CONFIG_FEATURE_SUID | ||
71 | help | ||
72 | Please submit a patch to add help text for this item. | ||
73 | |||
74 | config CONFIG_FEATURE_SUID_CONFIG_QUIET | ||
75 | bool "Suppress warning message if /etc/busybox.conf is not readable" | ||
76 | default n | ||
77 | depends on CONFIG_FEATURE_SUID_CONFIG | ||
78 | help | ||
79 | Please submit a patch to add help text for this item. | ||
80 | |||
81 | endmenu | ||
82 | |||
83 | menu 'Build Options' | ||
84 | |||
85 | config DOSTATIC | ||
86 | bool "Build BusyBox as a static binary (no shared libs)" | ||
87 | default n | ||
88 | help | ||
89 | If you want to build a static BusyBox binary, which does not | ||
90 | use or require any shared libraries, then enable this option. | ||
91 | |||
92 | config DOLFS | ||
93 | bool "Build with Large File Support (for accessing files > 2 GB)" | ||
94 | default n | ||
95 | help | ||
96 | If you want to build BusyBox with large file support, then enable | ||
97 | this option. This will have no effect if your kernel or your C | ||
98 | library lacks large file support for large files. Some of the | ||
99 | programs that can benefit from large file support include dd, gzip, | ||
100 | cp, mount, tar, and many others. If you want to access files larger | ||
101 | than 2 Gigabytes, enable this option. Otherwise, leave it set to 'N'. | ||
102 | |||
103 | config USING_CROSS_COMPILER | ||
104 | bool "Do you want to build BusyBox with a Cross Compiler?" | ||
105 | default n | ||
106 | help | ||
107 | Do you want to build BusyBox with a Cross Compiler? If so, | ||
108 | then enable this option. Otherwise leave it set to 'N'. | ||
109 | |||
110 | config CROSS_COMPILER_PREFIX | ||
111 | string "Cross Compiler prefix" | ||
112 | default "/usr/i386-linux-uclibc/bin/i386-uclibc-" | ||
113 | depends on USING_CROSS_COMPILER | ||
114 | help | ||
115 | If you want to build BusyBox with a cross compiler, then you | ||
116 | will need to set this to the cross-compiler prefix. For example, | ||
117 | if my cross-compiler is /usr/i386-linux-uclibc/bin/i386-uclibc-gcc | ||
118 | then I would enter '/usr/i386-linux-uclibc/bin/i386-uclibc-' here, | ||
119 | which will ensure the correct compiler is used. | ||
120 | |||
121 | config EXTRA_CFLAGS_OPTIONS | ||
122 | string "Any extra CFLAGS options for the compiler?" | ||
123 | default "" | ||
124 | help | ||
125 | Do you want to pass any extra CFLAGS options to the compiler as | ||
126 | you build BusyBox? If so, this is the option for you... For example, | ||
127 | if you want to add some simple compiler switches (like -march=i686), | ||
128 | or check for warnings using -Werror, just those options here. | ||
129 | |||
130 | endmenu | ||
131 | |||
132 | source archival/Config.in | ||
133 | source console-tools/Config.in | ||
134 | source debianutils/Config.in | ||
135 | source editors/Config.in | ||
136 | source fileutils/Config.in | ||
137 | source findutils/Config.in | ||
138 | source init/Config.in | ||
139 | source loginutils/Config.in | ||
140 | source miscutils/Config.in | ||
141 | source modutils/Config.in | ||
142 | source networking/Config.in | ||
143 | source procps/Config.in | ||
144 | source shell/Config.in | ||
145 | source shellutils/Config.in | ||
146 | source sysklogd/Config.in | ||
147 | source textutils/Config.in | ||
148 | source util-linux/Config.in | ||
149 | |||
150 | menu 'Debugging Options' | ||
151 | |||
152 | config DOSTATIC | ||
153 | bool "Build BusyBox as a static binary (no shared libs)" | ||
154 | default n | ||
155 | help | ||
156 | If you want to build a static BusyBox binary, which does not | ||
157 | use or require any shared libraries, then enable this option. | ||
158 | This will make BusyBox be considerable larger, so you should | ||
159 | leave this option false unless you have a good reason (i.e. | ||
160 | your target platform does not support shared libraries, or | ||
161 | you are building an initrd which doesn't need anything but | ||
162 | BusyBox, etc). | ||
163 | |||
164 | Most people will leave this set to 'N'. | ||
165 | |||
166 | config DODEBUG | ||
167 | bool "Build BusyBox with Debugging symbols" | ||
168 | default n | ||
169 | help | ||
170 | Say Y here if you wish to compile BusyBox with debugging symbols. | ||
171 | This will allow you to use a debugger to examine BusyBox internals | ||
172 | while applets are running. This increases the size of the binary | ||
173 | considerably and should only be used when doing development. | ||
174 | If you are doing development and want to debug BusyBox, answer Y. | ||
175 | |||
176 | Otherwise, answer N. | ||
177 | |||
178 | config DODMALLOC | ||
179 | bool "Build BusyBox with dmalloc support" | ||
180 | default n | ||
181 | depends on DODEBUG && !DOEFENCE | ||
182 | help | ||
183 | This enables compiling with dmalloc ( http://dmalloc.com/ ) | ||
184 | which is an excellent public domain mem leak and malloc problem | ||
185 | detector. To enable dmalloc, before running busybox you will | ||
186 | want to properly set your environment, for example: | ||
187 | export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile | ||
188 | The 'debug=' value is generated using the following command | ||
189 | dmalloc -p log-stats -p log-non-free -p log-bad-space -p log-elapsed-time \ | ||
190 | -p check-fence -p check-heap -p check-lists -p check-blank \ | ||
191 | -p check-funcs -p realloc-copy -p allow-free-null | ||
192 | |||
193 | This will make BusyBox be considerable larger and run slower, so | ||
194 | you should leave this option disabled for production use. | ||
195 | |||
196 | config DOEFENCE | ||
197 | bool "Build BusyBox with Electric-fence support" | ||
198 | default n | ||
199 | depends on DODEBUG && !DODMALLOC | ||
200 | help | ||
201 | This enables compiling with Electric-fence support. Electric | ||
202 | fence is another very useful malloc debugging library which used | ||
203 | your computers virtual memory hardware to detect illegal memory | ||
204 | accesses. This support will make BusyBox be considerable larger | ||
205 | and run slower, so you should leave this option disabled unless | ||
206 | you are hunting a hard to find memory problem. | ||
207 | |||
208 | endmenu | ||
209 | |||
diff --git a/sysdeps/linux/config.in b/sysdeps/linux/config.in deleted file mode 100644 index d33a9826d..000000000 --- a/sysdeps/linux/config.in +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | # | ||
2 | # For a description of the syntax of this configuration file, | ||
3 | # see scripts/kbuild/config-language.txt. | ||
4 | # | ||
5 | mainmenu_name "BusyBox Configuration" | ||
6 | |||
7 | mainmenu_option next_comment | ||
8 | comment 'BusyBox general settings' | ||
9 | choice 'Buffer allocation policy' \ | ||
10 | "use_malloc CONFIG_FEATURE_BUFFERS_USE_MALLOC \ | ||
11 | on_stack CONFIG_FEATURE_BUFFERS_GO_ON_STACK \ | ||
12 | in_bss CONFIG_FEATURE_BUFFERS_GO_IN_BSS" use_malloc | ||
13 | bool 'Show verbose applet usage messages' CONFIG_FEATURE_VERBOSE_USAGE | ||
14 | bool 'Support --install [-s] to install applet links at runtime' CONFIG_FEATURE_INSTALLER | ||
15 | bool 'Enable locale support (system needs locale for this to work)' CONFIG_LOCALE_SUPPORT | ||
16 | bool 'Support for devfs' CONFIG_FEATURE_DEVFS | ||
17 | if [ "$CONFIG_FEATURE_DEVFS" = "y" ]; then | ||
18 | define_bool CONFIG_FEATURE_DEVPTS y | ||
19 | else | ||
20 | bool ' Support for Unix98 PTY filesystem' CONFIG_FEATURE_DEVPTS | ||
21 | fi | ||
22 | bool 'Clean up all memory before exiting (usually not needed)' CONFIG_FEATURE_CLEAN_UP | ||
23 | bool 'Support for SUID/SGID handling' CONFIG_FEATURE_SUID | ||
24 | if [ "$CONFIG_FEATURE_SUID" = "y" ]; then | ||
25 | bool ' Runtime configuration via /etc/busybox.conf' CONFIG_FEATURE_SUID_CONFIG | ||
26 | fi | ||
27 | if [ "$CONFIG_FEATURE_SUID_CONFIG" = "y" ]; then | ||
28 | bool ' Suppress message if config file is not readable' CONFIG_FEATURE_SUID_CONFIG_QUIET | ||
29 | fi | ||
30 | endmenu | ||
31 | |||
32 | source archival/config.in | ||
33 | source console-tools/config.in | ||
34 | source debianutils/config.in | ||
35 | source editors/config.in | ||
36 | source fileutils/config.in | ||
37 | source findutils/config.in | ||
38 | source init/config.in | ||
39 | source loginutils/config.in | ||
40 | source miscutils/config.in | ||
41 | source modutils/config.in | ||
42 | source networking/config.in | ||
43 | source procps/config.in | ||
44 | source shell/config.in | ||
45 | source shellutils/config.in | ||
46 | source sysklogd/config.in | ||
47 | source textutils/config.in | ||
48 | source util-linux/config.in | ||
49 | |||