Config.in 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  1. # DO NOT EDIT. This file is generated from Config.src
  2. #
  3. # For a description of the syntax of this configuration file,
  4. # see scripts/kbuild/config-language.txt.
  5. #
  6. menu "Shells"
  7. config BUSYBOX_ASH
  8. bool "ash"
  9. default n
  10. depends on !BUSYBOX_NOMMU
  11. help
  12. Tha 'ash' shell adds about 60k in the default configuration and is
  13. the most complete and most pedantically correct shell included with
  14. busybox. This shell is actually a derivative of the Debian 'dash'
  15. shell (by Herbert Xu), which was created by porting the 'ash' shell
  16. (written by Kenneth Almquist) from NetBSD.
  17. config BUSYBOX_ASH_BASH_COMPAT
  18. bool "bash-compatible extensions"
  19. default y
  20. depends on BUSYBOX_ASH
  21. help
  22. Enable bash-compatible extensions.
  23. config BUSYBOX_ASH_IDLE_TIMEOUT
  24. bool "Idle timeout variable"
  25. default n
  26. depends on BUSYBOX_ASH
  27. help
  28. Enables bash-like auto-logout after $TMOUT seconds of idle time.
  29. config BUSYBOX_ASH_JOB_CONTROL
  30. bool "Job control"
  31. default y
  32. depends on BUSYBOX_ASH
  33. help
  34. Enable job control in the ash shell.
  35. config BUSYBOX_ASH_ALIAS
  36. bool "Alias support"
  37. default y
  38. depends on BUSYBOX_ASH
  39. help
  40. Enable alias support in the ash shell.
  41. config BUSYBOX_ASH_GETOPTS
  42. bool "Builtin getopt to parse positional parameters"
  43. default y
  44. depends on BUSYBOX_ASH
  45. help
  46. Enable support for getopts builtin in ash.
  47. config BUSYBOX_ASH_BUILTIN_ECHO
  48. bool "Builtin version of 'echo'"
  49. default y
  50. depends on BUSYBOX_ASH
  51. help
  52. Enable support for echo builtin in ash.
  53. config BUSYBOX_ASH_BUILTIN_PRINTF
  54. bool "Builtin version of 'printf'"
  55. default y
  56. depends on BUSYBOX_ASH
  57. help
  58. Enable support for printf builtin in ash.
  59. config BUSYBOX_ASH_BUILTIN_TEST
  60. bool "Builtin version of 'test'"
  61. default y
  62. depends on BUSYBOX_ASH
  63. help
  64. Enable support for test builtin in ash.
  65. config BUSYBOX_ASH_HELP
  66. bool "help builtin"
  67. default y
  68. depends on BUSYBOX_ASH
  69. help
  70. Enable help builtin in ash.
  71. config BUSYBOX_ASH_CMDCMD
  72. bool "'command' command to override shell builtins"
  73. default y
  74. depends on BUSYBOX_ASH
  75. help
  76. Enable support for the ash 'command' builtin, which allows
  77. you to run the specified command with the specified arguments,
  78. even when there is an ash builtin command with the same name.
  79. config BUSYBOX_ASH_MAIL
  80. bool "Check for new mail on interactive shells"
  81. default n
  82. depends on BUSYBOX_ASH
  83. help
  84. Enable "check for new mail" function in the ash shell.
  85. config BUSYBOX_ASH_OPTIMIZE_FOR_SIZE
  86. bool "Optimize for size instead of speed"
  87. default y
  88. depends on BUSYBOX_ASH
  89. help
  90. Compile ash for reduced size at the price of speed.
  91. config BUSYBOX_ASH_INTERNAL_GLOB
  92. bool "Use internal glob() implementation"
  93. default y # Y is bigger, but because of uclibc glob() bug, let Y be default for now
  94. depends on BUSYBOX_ASH
  95. help
  96. Do not use glob() function from libc, use internal implementation.
  97. Use this if you are getting "glob.h: No such file or directory"
  98. or similar build errors.
  99. config BUSYBOX_ASH_RANDOM_SUPPORT
  100. bool "Pseudorandom generator and $RANDOM variable"
  101. default y
  102. depends on BUSYBOX_ASH
  103. help
  104. Enable pseudorandom generator and dynamic variable "$RANDOM".
  105. Each read of "$RANDOM" will generate a new pseudorandom value.
  106. You can reset the generator by using a specified start value.
  107. After "unset RANDOM" the generator will switch off and this
  108. variable will no longer have special treatment.
  109. config BUSYBOX_ASH_EXPAND_PRMT
  110. bool "Expand prompt string"
  111. default y
  112. depends on BUSYBOX_ASH
  113. help
  114. "PS#" may contain volatile content, such as backquote commands.
  115. This option recreates the prompt string from the environment
  116. variable each time it is displayed.
  117. config BUSYBOX_CTTYHACK
  118. bool "cttyhack"
  119. default n
  120. help
  121. One common problem reported on the mailing list is the "can't
  122. access tty; job control turned off" error message, which typically
  123. appears when one tries to use a shell with stdin/stdout on
  124. /dev/console.
  125. This device is special - it cannot be a controlling tty.
  126. The proper solution is to use the correct device instead of
  127. /dev/console.
  128. cttyhack provides a "quick and dirty" solution to this problem.
  129. It analyzes stdin with various ioctls, trying to determine whether
  130. it is a /dev/ttyN or /dev/ttySN (virtual terminal or serial line).
  131. On Linux it also checks sysfs for a pointer to the active console.
  132. If cttyhack is able to find the real console device, it closes
  133. stdin/out/err and reopens that device.
  134. Then it executes the given program. Opening the device will make
  135. that device a controlling tty. This may require cttyhack
  136. to be a session leader.
  137. Example for /etc/inittab (for busybox init):
  138. ::respawn:/bin/cttyhack /bin/sh
  139. Starting an interactive shell from boot shell script:
  140. setsid cttyhack sh
  141. Giving controlling tty to shell running with PID 1:
  142. # exec cttyhack sh
  143. Without cttyhack, you need to know exact tty name,
  144. and do something like this:
  145. # exec setsid sh -c 'exec sh </dev/tty1 >/dev/tty1 2>&1'
  146. Starting getty on a controlling tty from a shell script:
  147. # getty 115200 $(cttyhack)
  148. config BUSYBOX_HUSH
  149. bool "hush"
  150. default y if ADK_TARGET_UCLINUX
  151. default n
  152. select BUSYBOX_SHELL_HUSH
  153. help
  154. hush is a small shell (25k). It handles the normal flow control
  155. constructs such as if/then/elif/else/fi, for/in/do/done, while loops,
  156. case/esac. Redirections, here documents, $((arithmetic))
  157. and functions are supported.
  158. It will compile and work on no-mmu systems.
  159. It does not handle select, aliases, tilde expansion,
  160. &>file and >&file redirection of stdout+stderr.
  161. config BUSYBOX_SHELL_HUSH
  162. bool "Internal shell for embedded script support"
  163. default n
  164. config BUSYBOX_HUSH_BASH_COMPAT
  165. bool "bash-compatible extensions"
  166. default y
  167. depends on BUSYBOX_HUSH
  168. help
  169. Enable bash-compatible extensions.
  170. config BUSYBOX_HUSH_BRACE_EXPANSION
  171. bool "Brace expansion"
  172. default y
  173. depends on BUSYBOX_HUSH_BASH_COMPAT
  174. help
  175. Enable {abc,def} extension.
  176. config BUSYBOX_HUSH_LINENO_VAR
  177. bool "$LINENO variable"
  178. default y
  179. depends on BUSYBOX_HUSH_BASH_COMPAT
  180. config BUSYBOX_HUSH_BASH_SOURCE_CURDIR
  181. bool "'source' and '.' builtins search current directory after $PATH"
  182. default n # do not encourage non-standard behavior
  183. depends on BUSYBOX_HUSH_BASH_COMPAT
  184. help
  185. This is not compliant with standards. Avoid if possible.
  186. config BUSYBOX_HUSH_HELP
  187. bool "help builtin"
  188. default y
  189. depends on BUSYBOX_HUSH
  190. help
  191. Enable help builtin in hush. Code size + ~1 kbyte.
  192. config BUSYBOX_HUSH_INTERACTIVE
  193. bool "Interactive mode"
  194. default y
  195. depends on BUSYBOX_HUSH
  196. help
  197. Enable interactive mode (prompt and command editing).
  198. Without this, hush simply reads and executes commands
  199. from stdin just like a shell script from a file.
  200. No prompt, no PS1/PS2 magic shell variables.
  201. config BUSYBOX_HUSH_SAVEHISTORY
  202. bool "Save command history to .hush_history"
  203. default y
  204. depends on BUSYBOX_HUSH_INTERACTIVE && BUSYBOX_FEATURE_EDITING_SAVEHISTORY
  205. help
  206. Enable history saving in hush.
  207. config BUSYBOX_HUSH_JOB
  208. bool "Job control"
  209. default y
  210. depends on BUSYBOX_HUSH_INTERACTIVE
  211. help
  212. Enable job control: Ctrl-Z backgrounds, Ctrl-C interrupts current
  213. command (not entire shell), fg/bg builtins work. Without this option,
  214. "cmd &" still works by simply spawning a process and immediately
  215. prompting for next command (or executing next command in a script),
  216. but no separate process group is formed.
  217. config BUSYBOX_HUSH_TICK
  218. bool "Process substitution"
  219. default y
  220. depends on BUSYBOX_HUSH
  221. help
  222. Enable process substitution `command` and $(command) in hush.
  223. config BUSYBOX_HUSH_IF
  224. bool "Support if/then/elif/else/fi"
  225. default y
  226. depends on BUSYBOX_HUSH
  227. help
  228. Enable if/then/elif/else/fi in hush.
  229. config BUSYBOX_HUSH_LOOPS
  230. bool "Support for, while and until loops"
  231. default y
  232. depends on BUSYBOX_HUSH
  233. help
  234. Enable for, while and until loops in hush.
  235. config BUSYBOX_HUSH_CASE
  236. bool "Support case ... esac statement"
  237. default y
  238. depends on BUSYBOX_HUSH
  239. help
  240. Enable case ... esac statement in hush. +400 bytes.
  241. config BUSYBOX_HUSH_FUNCTIONS
  242. bool "Support funcname() { commands; } syntax"
  243. default y
  244. depends on BUSYBOX_HUSH
  245. help
  246. Enable support for shell functions in hush. +800 bytes.
  247. config BUSYBOX_HUSH_LOCAL
  248. bool "Support local builtin"
  249. default y
  250. depends on BUSYBOX_HUSH_FUNCTIONS
  251. help
  252. Enable support for local variables in functions.
  253. config BUSYBOX_HUSH_RANDOM_SUPPORT
  254. bool "Pseudorandom generator and $RANDOM variable"
  255. default y
  256. depends on BUSYBOX_HUSH
  257. help
  258. Enable pseudorandom generator and dynamic variable "$RANDOM".
  259. Each read of "$RANDOM" will generate a new pseudorandom value.
  260. config BUSYBOX_HUSH_EXPORT_N
  261. bool "Support 'export -n' option"
  262. default y
  263. depends on BUSYBOX_HUSH
  264. help
  265. export -n unexports variables. It is a bash extension.
  266. config BUSYBOX_HUSH_MODE_X
  267. bool "Support 'hush -x' option and 'set -x' command"
  268. default y
  269. depends on BUSYBOX_HUSH
  270. help
  271. This instructs hush to print commands before execution.
  272. Adds ~300 bytes.
  273. config BUSYBOX_HUSH_ECHO
  274. bool "echo builtin"
  275. default y
  276. depends on BUSYBOX_SHELL_HUSH
  277. config BUSYBOX_HUSH_PRINTF
  278. bool "printf builtin"
  279. default y
  280. depends on BUSYBOX_SHELL_HUSH
  281. config BUSYBOX_HUSH_TEST
  282. bool "test builtin"
  283. default y
  284. depends on BUSYBOX_SHELL_HUSH
  285. config BUSYBOX_HUSH_HELP
  286. bool "help builtin"
  287. default y
  288. depends on BUSYBOX_SHELL_HUSH
  289. config BUSYBOX_HUSH_EXPORT
  290. bool "export builtin"
  291. default y
  292. depends on BUSYBOX_SHELL_HUSH
  293. config BUSYBOX_HUSH_EXPORT_N
  294. bool "Support 'export -n' option"
  295. default y
  296. depends on BUSYBOX_HUSH_EXPORT
  297. help
  298. export -n unexports variables. It is a bash extension.
  299. config BUSYBOX_HUSH_READONLY
  300. bool "readonly builtin"
  301. default y
  302. depends on BUSYBOX_SHELL_HUSH
  303. help
  304. Enable support for read-only variables.
  305. config BUSYBOX_HUSH_KILL
  306. bool "kill builtin (supports kill %jobspec)"
  307. default y
  308. depends on BUSYBOX_SHELL_HUSH
  309. config BUSYBOX_HUSH_WAIT
  310. bool "wait builtin"
  311. default y
  312. depends on BUSYBOX_SHELL_HUSH
  313. config BUSYBOX_HUSH_COMMAND
  314. bool "command builtin"
  315. default y
  316. depends on BUSYBOX_SHELL_HUSH
  317. config BUSYBOX_HUSH_TRAP
  318. bool "trap builtin"
  319. default y
  320. depends on BUSYBOX_SHELL_HUSH
  321. config BUSYBOX_HUSH_TYPE
  322. bool "type builtin"
  323. default y
  324. depends on BUSYBOX_SHELL_HUSH
  325. config BUSYBOX_HUSH_TIMES
  326. bool "times builtin"
  327. default y
  328. depends on BUSYBOX_SHELL_HUSH
  329. config BUSYBOX_HUSH_READ
  330. bool "read builtin"
  331. default y
  332. depends on BUSYBOX_SHELL_HUSH
  333. config BUSYBOX_HUSH_SET
  334. bool "set builtin"
  335. default y
  336. depends on BUSYBOX_SHELL_HUSH
  337. config BUSYBOX_HUSH_UNSET
  338. bool "unset builtin"
  339. default y
  340. depends on BUSYBOX_SHELL_HUSH
  341. config BUSYBOX_HUSH_ULIMIT
  342. bool "ulimit builtin"
  343. default y
  344. depends on BUSYBOX_SHELL_HUSH
  345. config BUSYBOX_HUSH_UMASK
  346. bool "umask builtin"
  347. default y
  348. depends on BUSYBOX_SHELL_HUSH
  349. config BUSYBOX_HUSH_GETOPTS
  350. bool "getopts builtin"
  351. default y
  352. depends on BUSYBOX_SHELL_HUSH
  353. config BUSYBOX_HUSH_MEMLEAK
  354. bool "memleak builtin (debugging)"
  355. default n
  356. depends on BUSYBOX_SHELL_HUSH
  357. choice
  358. prompt "Choose which shell is aliased to 'sh' name"
  359. config BUSYBOX_SH_IS_NONE
  360. bool "none"
  361. config BUSYBOX_SH_IS_ASH
  362. bool "ash"
  363. config BUSYBOX_SH_IS_HUSH
  364. bool "hush"
  365. endchoice
  366. choice
  367. prompt "Choose which shell is aliased to 'bash' name"
  368. config BUSYBOX_BASH_IS_NONE
  369. bool "none"
  370. config BUSYBOX_BASH_IS_ASH
  371. bool "ash"
  372. config BUSYBOX_BASH_IS_HUSH
  373. bool "hush"
  374. endchoice
  375. config BUSYBOX_FEATURE_SH_MATH
  376. bool "POSIX math support"
  377. default y
  378. depends on BUSYBOX_ASH || BUSYBOX_HUSH
  379. help
  380. Enable math support in the shell via $((...)) syntax.
  381. config BUSYBOX_FEATURE_SH_MATH_64
  382. bool "Extend POSIX math support to 64 bit"
  383. default y
  384. depends on BUSYBOX_FEATURE_SH_MATH
  385. help
  386. Enable 64-bit math support in the shell. This will make the shell
  387. slightly larger, but will allow computation with very large numbers.
  388. This is not in POSIX, so do not rely on this in portable code.
  389. config BUSYBOX_FEATURE_SH_MATH_BASE
  390. bool "Support BASE#nnnn literals"
  391. default y
  392. depends on BUSYBOX_FEATURE_SH_MATH
  393. config BUSYBOX_FEATURE_SH_EXTRA_QUIET
  394. bool "Hide message on interactive shell startup"
  395. default y
  396. depends on BUSYBOX_HUSH || BUSYBOX_ASH
  397. help
  398. Remove the busybox introduction when starting a shell.
  399. config BUSYBOX_FEATURE_SH_STANDALONE
  400. bool "Standalone shell"
  401. default n
  402. depends on (BUSYBOX_HUSH || BUSYBOX_ASH)
  403. help
  404. This option causes busybox shells to use busybox applets
  405. in preference to executables in the PATH whenever possible. For
  406. example, entering the command 'ifconfig' into the shell would cause
  407. busybox to use the ifconfig busybox applet. Specifying the fully
  408. qualified executable name, such as '/sbin/ifconfig' will still
  409. execute the /sbin/ifconfig executable on the filesystem. This option
  410. is generally used when creating a statically linked version of busybox
  411. for use as a rescue shell, in the event that you screw up your system.
  412. This is implemented by re-execing /proc/self/exe (typically)
  413. with right parameters. Some selected applets ("NOFORK" applets)
  414. can even be executed without creating new process.
  415. Instead, busybox will call <applet>_main() internally.
  416. However, this causes problems in chroot jails without mounted /proc
  417. and with ps/top (command name can be shown as 'exe' for applets
  418. started this way).
  419. # untrue?
  420. # Note that this will *also* cause applets to take precedence
  421. # over shell builtins of the same name. So turning this on will
  422. # eliminate any performance gained by turning on the builtin "echo"
  423. # and "test" commands in ash.
  424. # untrue?
  425. # Note that when using this option, the shell will attempt to directly
  426. # run '/bin/busybox'. If you do not have the busybox binary sitting in
  427. # that exact location with that exact name, this option will not work at
  428. # all.
  429. config BUSYBOX_FEATURE_SH_NOFORK
  430. bool "Run 'nofork' applets directly"
  431. default n
  432. depends on (BUSYBOX_HUSH || BUSYBOX_ASH)
  433. help
  434. This option causes busybox shells to not execute typical
  435. fork/exec/wait sequence, but call <applet>_main directly,
  436. if possible. (Sometimes it is not possible: for example,
  437. this is not possible in pipes).
  438. This will be done only for some applets (those which are marked
  439. NOFORK in include/applets.h).
  440. This may significantly speed up some shell scripts.
  441. This feature is relatively new. Use with care. Report bugs
  442. to project mailing list.
  443. config BUSYBOX_FEATURE_SH_READ_FRAC
  444. bool "read -t N.NNN support (+110 bytes)"
  445. default y
  446. depends on BUSYBOX_SHELL_ASH || BUSYBOX_SHELL_HUSH
  447. help
  448. Enable support for fractional second timeout in read builtin.
  449. config BUSYBOX_FEATURE_SH_HISTFILESIZE
  450. bool "Use $HISTFILESIZE"
  451. default y
  452. depends on BUSYBOX_HUSH || BUSYBOX_ASH
  453. help
  454. This option makes busybox shells to use $HISTFILESIZE variable
  455. to set shell history size. Note that its max value is capped
  456. by "History size" setting in library tuning section.
  457. config BUSYBOX_FEATURE_SH_EMBEDDED_SCRIPTS
  458. bool "Embed scripts in the binary"
  459. default y
  460. depends on BUSYBOX_SHELL_ASH || BUSYBOX_SHELL_HUSH
  461. help
  462. Allow scripts to be compressed and embedded in the busybox
  463. binary. The scripts should be placed in the 'embed' directory
  464. at build time. Like applets, scripts can be run as
  465. 'busybox SCRIPT ...' or by linking their name to the binary.
  466. This also allows applets to be implemented as scripts: place
  467. the script in 'applets_sh' and a stub C file containing
  468. configuration in the appropriate subsystem directory.
  469. endmenu