blob: f9437fa55243c7db60b6b8c720bbd156f23d90fc [file] [log] [blame]
Rob Landley5bcc7ea2014-09-20 13:20:17 -05001mainmenu "Toybox Configuration"
landley5257cf52006-10-31 23:30:06 -05002
Rob Landley76ec4852012-10-21 17:57:23 -05003
4source generated/Config.probed
5source generated/Config.in
6
7comment ""
8
Rob Landley3a9241a2012-08-25 14:25:22 -05009menu "Toybox global settings"
landley5257cf52006-10-31 23:30:06 -050010
Rob Landleya8bee462014-08-18 19:10:45 -050011# This entry controls the multiplexer, disabled for single command builds
Rob Landley28964802008-01-19 17:08:39 -060012config TOYBOX
13 bool
Rob Landleyd04dc1f2013-08-30 01:53:31 -050014 default y
Rob Landleyd06c58d2007-10-11 15:36:36 -050015 help
Rob Landley84316922014-06-10 21:57:05 -050016 usage: toybox [--long | [command] [arguments...]]
Rob Landleyd06c58d2007-10-11 15:36:36 -050017
Rob Landley26c00452013-04-14 12:35:25 -050018 With no arguments, shows available commands. First argument is
Rob Landley28964802008-01-19 17:08:39 -060019 name of a command to run, followed by any arguments to that command.
Rob Landleyd06c58d2007-10-11 15:36:36 -050020
Rob Landley84316922014-06-10 21:57:05 -050021 --long Show path to each command
22
23 To install command symlinks, try:
24 for i in $(/bin/toybox --long); do ln -s /bin/toybox $i; done
25
Rob Landleye0377fb2010-01-05 12:17:05 -060026config TOYBOX_SUID
27 bool "SUID support"
28 default y
29 help
Rob Landley26c00452013-04-14 12:35:25 -050030 Support for the Set User ID bit, to install toybox suid root and drop
31 permissions for commands which do not require root access. To use
32 this change ownership of the file to the root user and set the suid
33 bit in the file permissions:
34
35 chown root:root toybox; chmod +s toybox
Rob Landleye0377fb2010-01-05 12:17:05 -060036
Elliott Hughes7e2af1c2015-01-16 13:36:53 -060037config TOYBOX_SELINUX
38 bool "SELinux support"
39 default n
40 help
41 Include SELinux options in commands such as ls, and add
42 SELinux-specific commands such as chcon.
43
Rob Landleyf01503d2012-02-02 07:26:39 -060044config TOYBOX_FLOAT
45 bool "Floating point support"
46 default y
47 help
48 Include floating point support infrastructure and commands that
49 require it.
50
Rob Landley36ffc5a2013-04-14 21:43:22 -050051config TOYBOX_HELP
Rob Landleyd683b172013-06-16 20:00:11 -050052 bool "Help messages"
Rob Landley36ffc5a2013-04-14 21:43:22 -050053 default y
54 help
55 Include help text for each command.
56
Rob Landley953722e2013-06-30 15:58:24 -050057config TOYBOX_HELP_DASHDASH
58 bool "--help"
59 default y
60 depends on TOYBOX_HELP
61 help
62 Support --help argument in all commands, even ones with a NULL
63 optstring. Produces the same output as "help command".
64
Felix Janda250e0052012-11-21 20:38:29 +010065config TOYBOX_I18N
Rob Landley26c00452013-04-14 12:35:25 -050066 bool "Internationalization support"
Felix Janda250e0052012-11-21 20:38:29 +010067 default y
68 help
Rob Landley26c00452013-04-14 12:35:25 -050069 Support for UTF-8 character sets, and some locale support.
Felix Janda250e0052012-11-21 20:38:29 +010070
Rob Landleyde05a702007-01-31 14:37:01 -050071config TOYBOX_FREE
landley5257cf52006-10-31 23:30:06 -050072 bool "Free memory unnecessarily"
73 default n
74 help
75 When a program exits, the operating system will clean up after it
Rob Landley26c00452013-04-14 12:35:25 -050076 (free memory, close files, etc). To save size, toybox usually relies
77 on this behavior. If you're running toybox under a debugger or
landley5257cf52006-10-31 23:30:06 -050078 without a real OS (ala newlib+libgloss), enable this to make toybox
79 clean up after itself.
80
Rob Landley977e48e2014-10-20 19:52:29 -050081config TOYBOX_NORECURSE
82 bool "Disable recursive execution"
83 default n
84 help
85 When one toybox command calls another, usually it just calls the new
86 command's main() function rather than searching the $PATH and calling
87 exec on another file (which is much slower).
88
89 This disables that optimization, so toybox will run external commands
90 even when it has a built-in version of that command. This requires
91 toybox symlinks to be installed in the $PATH, or re-invoking the
92 "toybox" multiplexer command by name.
93
Rob Landleyde05a702007-01-31 14:37:01 -050094config TOYBOX_DEBUG
Rob Landley8324b892006-11-19 02:49:22 -050095 bool "Debugging tests"
96 default n
97 help
Rob Landleya8bee462014-08-18 19:10:45 -050098 Enable extra checks for debugging purposes. All of them catch
99 things that can only go wrong at development time, not runtime.
100
101config TOYBOX_UID_SYS
102 int "First system UID"
103 default 100
104 help
105 When commands like useradd/groupadd allocate system IDs, start here.
106
107config TOYBOX_UID_USR
108 int "First user UID"
109 default 500
110 help
111 When commands like useradd/groupadd allocate user IDs, start here.
landley5257cf52006-10-31 23:30:06 -0500112endmenu