aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/linux/Config.in209
-rw-r--r--sysdeps/linux/config.in49
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
6mainmenu "BusyBox Configuration"
7
8choice
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
14config CONFIG_FEATURE_BUFFERS_USE_MALLOC
15 bool "Allocate with Malloc"
16
17config CONFIG_FEATURE_BUFFERS_GO_ON_STACK
18 bool "Allocate on the Stack"
19
20config CONFIG_FEATURE_BUFFERS_GO_IN_BSS
21 bool "Allocate in the .bss section"
22
23endchoice
24
25config 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
31config 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
37config 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
43config 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
49config 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
55config 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
61config 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
67config 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
74config 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
81endmenu
82
83menu 'Build Options'
84
85config 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
92config 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
103config 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
110config 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
121config 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
130endmenu
131
132source archival/Config.in
133source console-tools/Config.in
134source debianutils/Config.in
135source editors/Config.in
136source fileutils/Config.in
137source findutils/Config.in
138source init/Config.in
139source loginutils/Config.in
140source miscutils/Config.in
141source modutils/Config.in
142source networking/Config.in
143source procps/Config.in
144source shell/Config.in
145source shellutils/Config.in
146source sysklogd/Config.in
147source textutils/Config.in
148source util-linux/Config.in
149
150menu 'Debugging Options'
151
152config 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
166config 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
178config 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
196config 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
208endmenu
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#
5mainmenu_name "BusyBox Configuration"
6
7mainmenu_option next_comment
8comment 'BusyBox general settings'
9choice '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
13bool 'Show verbose applet usage messages' CONFIG_FEATURE_VERBOSE_USAGE
14bool 'Support --install [-s] to install applet links at runtime' CONFIG_FEATURE_INSTALLER
15bool 'Enable locale support (system needs locale for this to work)' CONFIG_LOCALE_SUPPORT
16bool 'Support for devfs' CONFIG_FEATURE_DEVFS
17if [ "$CONFIG_FEATURE_DEVFS" = "y" ]; then
18 define_bool CONFIG_FEATURE_DEVPTS y
19else
20 bool ' Support for Unix98 PTY filesystem' CONFIG_FEATURE_DEVPTS
21fi
22bool 'Clean up all memory before exiting (usually not needed)' CONFIG_FEATURE_CLEAN_UP
23bool 'Support for SUID/SGID handling' CONFIG_FEATURE_SUID
24if [ "$CONFIG_FEATURE_SUID" = "y" ]; then
25 bool ' Runtime configuration via /etc/busybox.conf' CONFIG_FEATURE_SUID_CONFIG
26fi
27if [ "$CONFIG_FEATURE_SUID_CONFIG" = "y" ]; then
28 bool ' Suppress message if config file is not readable' CONFIG_FEATURE_SUID_CONFIG_QUIET
29fi
30endmenu
31
32source archival/config.in
33source console-tools/config.in
34source debianutils/config.in
35source editors/config.in
36source fileutils/config.in
37source findutils/config.in
38source init/config.in
39source loginutils/config.in
40source miscutils/config.in
41source modutils/config.in
42source networking/config.in
43source procps/config.in
44source shell/config.in
45source shellutils/config.in
46source sysklogd/config.in
47source textutils/config.in
48source util-linux/config.in
49