1 /* vi: set sw=4 ts=4: */
2 // This file defines the feature set to be compiled into busybox.
3 // When you turn things off here, they won't be compiled in at all.
5 //// This file is parsed by sed. You MUST use single line comments.
6 // i.e. //#define BB_BLAH
9 // BusyBox Applications
13 #define BB_CHMOD_CHOWN_CHGRP
33 #define BB_FREERAMDISK
80 #define BB_SETKEYCODES
109 // End of Applications List
113 // ---------------------------------------------------------
114 // This is where feature definitions go. Generally speaking,
115 // turning this stuff off makes things a bit smaller (and less
119 // Turn this on to use Erik's very cool devps, devmtab,
120 // etc kernel drivers, thereby eliminating the need for
121 // the /proc filesystem and thereby saving lots and lots
122 // memory for more important things.
123 // You can't use this and USE_PROCFS at the same time...
124 // (BTW, I emailed Linus and this patch will not be going into the stock kernel)
125 //#define BB_FEATURE_USE_DEVPS_PATCH
127 // enable features that use the /proc filesystem (apps that
128 // break without this will tell you on compile)...
129 // You can't use this and BB_FEATURE_USE_DEVPS_PATCH
130 // at the same time...
131 #define BB_FEATURE_USE_PROCFS
133 // Enable full regular expressions. This adds about
134 // 4k. When this is off, things that would normally
135 // use regualr expressions (like grep) will just use
137 #define BB_FEATURE_FULL_REGULAR_EXPRESSIONS
139 // This compiles out everything but the most
140 // trivial --help usage information (i.e. reduces binary size)
141 //#define BB_FEATURE_TRIVIAL_HELP
143 // Use termios to manipulate the screen ('more' is prettier with this on)
144 #define BB_FEATURE_USE_TERMIOS
146 // calculate terminal & column widths (for more and ls)
147 #define BB_FEATURE_AUTOWIDTH
149 // show username/groupnames (bypasses libc6 NSS) for ls
150 #define BB_FEATURE_LS_USERNAME
152 // show file timestamps in ls
153 #define BB_FEATURE_LS_TIMESTAMPS
155 // enable ls -p and -F
156 #define BB_FEATURE_LS_FILETYPES
159 #define BB_FEATURE_LS_RECURSIVE
161 // Change ping implementation -- simplified, featureless, but really small.
162 //#define BB_SIMPLE_PING
164 // Make init use a simplified /etc/inittab file (recommended).
165 #define BB_FEATURE_USE_INITTAB
167 //Enable init being called as /linuxrc
168 //#define BB_FEATURE_LINUXRC
170 //Have init enable core dumping for child processes (for debugging only)
171 //#define BB_FEATURE_INIT_COREDUMPS
173 // Allow init to permenently chroot, and umount the old root fs
174 // just like an initrd does. Requires a kernel patch by Werner Almesberger.
175 // ftp://icaftp.epfl.ch/pub/people/almesber/misc/umount-root-*.tar.gz
176 //#define BB_FEATURE_INIT_CHROOT
178 //Make sure nothing is printed to the console on boot
179 #define BB_FEATURE_EXTRA_QUIET
181 //Simple tail implementation (2k vs 6k for the full one). Still
182 //provides 'tail -f' support -- but for only one file at a time.
183 #define BB_FEATURE_SIMPLE_TAIL
185 // Enable support for loop devices in mount
186 #define BB_FEATURE_MOUNT_LOOP
188 // Enable support for a real /etc/mtab file instead of /proc/mounts
189 //#define BB_FEATURE_MOUNT_MTAB_SUPPORT
191 // Enable support forced filesystem unmounting
192 // (i.e. in case of an unreachable NFS system).
193 #define BB_FEATURE_MOUNT_FORCE
195 // Enable support for mounting remote NFS volumes
196 // (This does not yet work with Linux 2.[34].x kernels)
197 //#define BB_FEATURE_NFSMOUNT
199 // Enable support for creation of tar files.
200 #define BB_FEATURE_TAR_CREATE
202 // Enable support for "--exclude" for excluding files
203 #define BB_FEATURE_TAR_EXCLUDE
205 //// Enable reverse sort
206 #define BB_FEATURE_SORT_REVERSE
208 // Enable command line editing in the shell
209 #define BB_FEATURE_SH_COMMAND_EDITING
211 //Allow the shell to invoke all the compiled in BusyBox commands as if they
212 //were shell builtins. Nice for staticly linking an emergency rescue shell
213 //amoung other thing.
214 #define BB_FEATURE_STANDALONE_SHELL
216 // Enable tab completion in the shell (not yet
217 // working very well -- so don't turn this on)
218 //#define BB_FEATURE_SH_TAB_COMPLETION
220 //Turn on extra fbset options
221 //#define BB_FEATURE_FBSET_FANCY
223 // You must enable one or both of these features
224 // Support installing modules from pre 2.1 kernels
225 //#define BB_FEATURE_INSMOD_OLD_KERNEL
226 // Support installing modules from kernel versions after 2.1.18
227 #define BB_FEATURE_INSMOD_NEW_KERNEL
229 // Support module version checking
230 //#define BB_FEATURE_INSMOD_VERSION_CHECKING
233 // End of Features List
240 //---------------------------------------------------
241 // Nothing beyond this point should ever be touched by
242 // mere mortals so leave this stuff alone.
244 #ifdef BB_FEATURE_MOUNT_MTAB_SUPPORT
248 #if defined BB_FEATURE_FULL_REGULAR_EXPRESSIONS && (defined BB_SED || defined BB_GREP )
252 #if defined BB_FEATURE_SH_COMMAND_EDITING && defined BB_SH
262 #ifdef BB_FEATURE_LINUXRC
275 #if defined BB_MOUNT && defined BB_FEATURE_NFSMOUNT
279 #if defined BB_FEATURE_SH_COMMAND_EDITING
280 #ifndef BB_FEATURE_USE_TERMIOS
281 #define BB_FEATURE_USE_TERMIOS
285 #if defined BB_FEATURE_AUTOWIDTH
286 #ifndef BB_FEATURE_USE_TERMIOS
287 #define BB_FEATURE_USE_TERMIOS
291 #if defined BB_INSMOD
292 #ifndef BB_FEATURE_INSMOD_OLD_KERNEL
293 #define BB_FEATURE_INSMOD_NEW_KERNEL