2014-09-20 11:20:17 -07:00
|
|
|
mainmenu "Toybox Configuration"
|
2006-10-31 20:30:06 -08:00
|
|
|
|
2012-10-21 15:57:23 -07:00
|
|
|
|
|
|
|
source generated/Config.probed
|
|
|
|
source generated/Config.in
|
|
|
|
|
|
|
|
comment ""
|
|
|
|
|
2012-08-25 12:25:22 -07:00
|
|
|
menu "Toybox global settings"
|
2006-10-31 20:30:06 -08:00
|
|
|
|
2014-08-18 17:10:45 -07:00
|
|
|
# This entry controls the multiplexer, disabled for single command builds
|
2008-01-19 15:08:39 -08:00
|
|
|
config TOYBOX
|
|
|
|
bool
|
2013-08-29 23:53:31 -07:00
|
|
|
default y
|
2007-10-11 13:36:36 -07:00
|
|
|
help
|
2015-04-07 12:57:55 -07:00
|
|
|
usage: toybox [--long | --version | [command] [arguments...]]
|
2007-10-11 13:36:36 -07:00
|
|
|
|
2013-04-14 10:35:25 -07:00
|
|
|
With no arguments, shows available commands. First argument is
|
2008-01-19 15:08:39 -08:00
|
|
|
name of a command to run, followed by any arguments to that command.
|
2007-10-11 13:36:36 -07:00
|
|
|
|
2014-06-10 19:57:05 -07:00
|
|
|
--long Show path to each command
|
2015-04-07 12:57:55 -07:00
|
|
|
--version Show toybox version
|
2014-06-10 19:57:05 -07:00
|
|
|
|
|
|
|
To install command symlinks, try:
|
|
|
|
for i in $(/bin/toybox --long); do ln -s /bin/toybox $i; done
|
|
|
|
|
2010-01-05 10:17:05 -08:00
|
|
|
config TOYBOX_SUID
|
|
|
|
bool "SUID support"
|
|
|
|
default y
|
|
|
|
help
|
2013-04-14 10:35:25 -07:00
|
|
|
Support for the Set User ID bit, to install toybox suid root and drop
|
|
|
|
permissions for commands which do not require root access. To use
|
|
|
|
this change ownership of the file to the root user and set the suid
|
|
|
|
bit in the file permissions:
|
|
|
|
|
|
|
|
chown root:root toybox; chmod +s toybox
|
2010-01-05 10:17:05 -08:00
|
|
|
|
2015-04-15 18:53:00 -07:00
|
|
|
choice
|
|
|
|
prompt "Security Blanket"
|
|
|
|
default TOYBOX_LSM_NONE
|
|
|
|
help
|
|
|
|
Select a Linux Security Module to complicate your system
|
|
|
|
until you can't find holes in it.
|
|
|
|
|
|
|
|
config TOYBOX_LSM_NONE
|
|
|
|
bool "None"
|
|
|
|
help
|
|
|
|
Don't try to achieve "watertight" by plugging the holes in a
|
|
|
|
collander, instead use conventional unix security (and possibly
|
|
|
|
Linux Containers) for a simple straightforward system.
|
|
|
|
|
2015-01-16 11:36:53 -08:00
|
|
|
config TOYBOX_SELINUX
|
2015-04-15 18:53:00 -07:00
|
|
|
bool "SELinux support"
|
|
|
|
help
|
|
|
|
Include SELinux options in commands such as ls, and add
|
|
|
|
SELinux-specific commands such as chcon to the Android menu.
|
|
|
|
|
|
|
|
config TOYBOX_SMACK
|
|
|
|
bool "SMACK support"
|
|
|
|
help
|
|
|
|
Include SMACK options in commands like ls for systems like Tizen.
|
|
|
|
|
|
|
|
endchoice
|
2015-01-16 11:36:53 -08:00
|
|
|
|
2016-07-15 02:45:08 -07:00
|
|
|
config TOYBOX_LIBCRYPTO
|
|
|
|
bool "Use libcrypto (OpenSSL/BoringSSL)"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Use faster hash functions out of exteral -lcrypto library.
|
|
|
|
|
2012-02-02 05:26:39 -08:00
|
|
|
config TOYBOX_FLOAT
|
|
|
|
bool "Floating point support"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Include floating point support infrastructure and commands that
|
|
|
|
require it.
|
|
|
|
|
2013-04-14 19:43:22 -07:00
|
|
|
config TOYBOX_HELP
|
2013-06-16 18:00:11 -07:00
|
|
|
bool "Help messages"
|
2013-04-14 19:43:22 -07:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Include help text for each command.
|
|
|
|
|
2013-06-30 13:58:24 -07:00
|
|
|
config TOYBOX_HELP_DASHDASH
|
|
|
|
bool "--help"
|
|
|
|
default y
|
|
|
|
depends on TOYBOX_HELP
|
|
|
|
help
|
|
|
|
Support --help argument in all commands, even ones with a NULL
|
|
|
|
optstring. Produces the same output as "help command".
|
|
|
|
|
2012-11-21 11:38:29 -08:00
|
|
|
config TOYBOX_I18N
|
2013-04-14 10:35:25 -07:00
|
|
|
bool "Internationalization support"
|
2012-11-21 11:38:29 -08:00
|
|
|
default y
|
|
|
|
help
|
2013-04-14 10:35:25 -07:00
|
|
|
Support for UTF-8 character sets, and some locale support.
|
2012-11-21 11:38:29 -08:00
|
|
|
|
2007-01-31 11:37:01 -08:00
|
|
|
config TOYBOX_FREE
|
2006-10-31 20:30:06 -08:00
|
|
|
bool "Free memory unnecessarily"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
When a program exits, the operating system will clean up after it
|
2013-04-14 10:35:25 -07:00
|
|
|
(free memory, close files, etc). To save size, toybox usually relies
|
|
|
|
on this behavior. If you're running toybox under a debugger or
|
2006-10-31 20:30:06 -08:00
|
|
|
without a real OS (ala newlib+libgloss), enable this to make toybox
|
|
|
|
clean up after itself.
|
|
|
|
|
2014-10-20 17:52:29 -07:00
|
|
|
config TOYBOX_NORECURSE
|
|
|
|
bool "Disable recursive execution"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
When one toybox command calls another, usually it just calls the new
|
|
|
|
command's main() function rather than searching the $PATH and calling
|
|
|
|
exec on another file (which is much slower).
|
|
|
|
|
|
|
|
This disables that optimization, so toybox will run external commands
|
|
|
|
even when it has a built-in version of that command. This requires
|
|
|
|
toybox symlinks to be installed in the $PATH, or re-invoking the
|
|
|
|
"toybox" multiplexer command by name.
|
|
|
|
|
2007-01-31 11:37:01 -08:00
|
|
|
config TOYBOX_DEBUG
|
2006-11-18 23:49:22 -08:00
|
|
|
bool "Debugging tests"
|
|
|
|
default n
|
|
|
|
help
|
2014-08-18 17:10:45 -07:00
|
|
|
Enable extra checks for debugging purposes. All of them catch
|
2015-07-31 01:05:24 -07:00
|
|
|
things that can only go wrong at development time, not runtime.
|
2014-08-18 17:10:45 -07:00
|
|
|
|
|
|
|
config TOYBOX_UID_SYS
|
|
|
|
int "First system UID"
|
|
|
|
default 100
|
|
|
|
help
|
|
|
|
When commands like useradd/groupadd allocate system IDs, start here.
|
|
|
|
|
|
|
|
config TOYBOX_UID_USR
|
|
|
|
int "First user UID"
|
|
|
|
default 500
|
|
|
|
help
|
|
|
|
When commands like useradd/groupadd allocate user IDs, start here.
|
2015-08-29 20:12:56 -07:00
|
|
|
|
|
|
|
config TOYBOX_MUSL_NOMMU_IS_BROKEN
|
|
|
|
bool "Workaround for musl-libc breakage on nommu systems."
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
When using musl-libc on a nommu system, you'll need to say "y" here.
|
|
|
|
|
|
|
|
Although uclibc lets you detect support for things like fork() and
|
|
|
|
daemon() at compile time, musl intentionally includes broken versions
|
|
|
|
that always return -ENOSYS on nommu systems, and goes out of its way
|
|
|
|
to prevent any cross-compile compatible compile-time probes for a
|
|
|
|
nommu system.
|
|
|
|
|
|
|
|
Musl does this despite the fact that a nommu system can't even run
|
|
|
|
standard ELF binaries, and requires specially packaged executables.
|
|
|
|
(You can't even check a #define to see that you're building against
|
|
|
|
musl, due to its maintainer's policy that musl never has bugs that
|
|
|
|
require workarounds.)
|
|
|
|
|
|
|
|
So our only choice is to manually provide a musl nommu bug workaround
|
|
|
|
you can manually select to enable (larger, slower) nommu support with
|
|
|
|
musl.
|
|
|
|
|
|
|
|
You don't need this for uClibc, we have a compile time probe that
|
|
|
|
autodetects nommu support there.
|
|
|
|
|
2006-10-31 20:30:06 -08:00
|
|
|
endmenu
|