summaryrefslogtreecommitdiff
path: root/Config.in
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-06-14 01:24:33 +0000
committerRob Landley <rob@landley.net>2006-06-14 01:24:33 +0000
commitc7ddefc0624173de6b74ee5b5b39cb2d354f5ae6 (patch)
tree2e4ef7885c2e1d5cc436e9014207f2f05e86888d /Config.in
parent575c8bacdaa0dd9f0f25719ec83ae505fbd3c382 (diff)
downloadbusybox-w32-c7ddefc0624173de6b74ee5b5b39cb2d354f5ae6.tar.gz
busybox-w32-c7ddefc0624173de6b74ee5b5b39cb2d354f5ae6.tar.bz2
busybox-w32-c7ddefc0624173de6b74ee5b5b39cb2d354f5ae6.zip
Attempt at fixing bug 815 by upgrading bb_spawn() so that builtins are at
the start of the path. (This should be under the same config option as the standalone shell, but right now that's buried in the shell menu.) Also add the ability to specify CONFIG_BUSYBOX_EXEC_PATH with /proc/self/exe as an overrideable default.
Diffstat (limited to 'Config.in')
-rw-r--r--Config.in26
1 files changed, 22 insertions, 4 deletions
diff --git a/Config.in b/Config.in
index 85d61652c..188f0f905 100644
--- a/Config.in
+++ b/Config.in
@@ -32,6 +32,7 @@ config CONFIG_NITPICK
32choice 32choice
33 prompt "Buffer allocation policy" 33 prompt "Buffer allocation policy"
34 default CONFIG_FEATURE_BUFFERS_USE_MALLOC 34 default CONFIG_FEATURE_BUFFERS_USE_MALLOC
35 depends on CONFIG_NITPICK
35 help 36 help
36 There are 3 ways BusyBox can handle buffer allocations: 37 There are 3 ways BusyBox can handle buffer allocations:
37 - Use malloc. This costs code size for the call to xmalloc. 38 - Use malloc. This costs code size for the call to xmalloc.
@@ -75,11 +76,17 @@ config CONFIG_FEATURE_VERBOSE_USAGE
75config CONFIG_FEATURE_COMPRESS_USAGE 76config CONFIG_FEATURE_COMPRESS_USAGE
76 bool "Store applet usage messages in compressed form" 77 bool "Store applet usage messages in compressed form"
77 default y 78 default y
78 depends on CONFIG_SHOW_USAGE 79 depends on CONFIG_SHOW_USAGE && CONFIG_NITPICK
79 help 80 help
80 Store usage messages in compressed form, uncompress them on-the-fly 81 Store usage messages in compressed form, uncompress them on-the-fly
81 when <applet> --help is called. 82 when <applet> --help is called.
82 83
84 If you have a really tiny busybox with few applets enabled (and
85 bunzip2 isn't one of them), the overhead of the decompressor might
86 be noticeable. Also, if you run executables directly from ROM
87 and have very little memory, this might not be a win. Otherwise,
88 you probably want this.
89
83config CONFIG_FEATURE_INSTALLER 90config CONFIG_FEATURE_INSTALLER
84 bool "Support --install [-s] to install applet links at runtime" 91 bool "Support --install [-s] to install applet links at runtime"
85 default n 92 default n
@@ -99,14 +106,13 @@ config CONFIG_LOCALE_SUPPORT
99config CONFIG_GETOPT_LONG 106config CONFIG_GETOPT_LONG
100 bool "Enable support for --long-options" 107 bool "Enable support for --long-options"
101 default n 108 default n
102 depends on !CONFIG_NO_GETOPT_LONG
103 help 109 help
104 Enable this if you want busybox applets to use the gnu --long-option 110 Enable this if you want busybox applets to use the gnu --long-option
105 style, in addition to single character -a -b -c style options. 111 style, in addition to single character -a -b -c style options.
106 112
107config CONFIG_FEATURE_DEVPTS 113config CONFIG_FEATURE_DEVPTS
108 bool "Use the devpts filesystem for Unix98 PTYs" 114 bool "Use the devpts filesystem for Unix98 PTYs"
109 default y if CONFIG_FEATURE_DEVFS 115 default y
110 help 116 help
111 Enable if you want BusyBox to use Unix98 PTY support. If enabled, 117 Enable if you want BusyBox to use Unix98 PTY support. If enabled,
112 busybox will use /dev/ptmx for the master side of the pseudoterminal 118 busybox will use /dev/ptmx for the master side of the pseudoterminal
@@ -117,6 +123,7 @@ config CONFIG_FEATURE_DEVPTS
117config CONFIG_FEATURE_CLEAN_UP 123config CONFIG_FEATURE_CLEAN_UP
118 bool "Clean up all memory before exiting (usually not needed)" 124 bool "Clean up all memory before exiting (usually not needed)"
119 default n 125 default n
126 depends on CONFIG_NITPICK
120 help 127 help
121 As a size optimization, busybox normally exits without explicitly 128 As a size optimization, busybox normally exits without explicitly
122 freeing dynamically allocated memory or closing files. This saves 129 freeing dynamically allocated memory or closing files. This saves
@@ -201,6 +208,16 @@ config CONFIG_SELINUX
201 208
202 Most people will leave this set to 'N'. 209 Most people will leave this set to 'N'.
203 210
211config CONFIG_BUSYBOX_EXEC_PATH
212 string "Path to BusyBox executable"
213 default "/proc/self/exe"
214 help
215 When Busybox applets need to run other busybox applets, BusyBox
216 sometimes needs to exec() itself. When the /proc filesystem is
217 mounted, /proc/self/exe always points to the currently running
218 executable. If you haven't got /proc, set this to wherever you
219 want to run BusyBox from.
220
204endmenu 221endmenu
205 222
206menu 'Build Options' 223menu 'Build Options'
@@ -221,7 +238,8 @@ config CONFIG_STATIC
221 238
222config CONFIG_BUILD_LIBBUSYBOX 239config CONFIG_BUILD_LIBBUSYBOX
223 bool "Build shared libbusybox" 240 bool "Build shared libbusybox"
224 default y 241 depends on CONFIG_STANDALONE
242 default n
225 help 243 help
226 Build a shared library libbusybox.so which contains all 244 Build a shared library libbusybox.so which contains all
227 libraries used inside busybox. 245 libraries used inside busybox.