Mercurial > hg > toybox
view Config.in @ 1470:4f25d3a3eda9 draft
Create a generated/build.sh with a single compiler command line to rebuild the toybox_unstripped binary using the existing generated/*.h files.
This way we can snapshot the generated/*.{h,sh} from a defconfig build into
a "shipped" directory or something, and then people can maybe build on crazy
crippled environments like pcbsd that haven't got gmake and put bash under
/usr/local so none of the #!/scripts can find it. This solves at least
part of the "toybox can build with itself but you need to build toybox first
to have the tools to run the build scripts" problem.
Next up: work out the minimal config to provide the build tools needed
to run an actual build. (This should, eventually, include a "make" command
if freebsd's kernel is going to refuse to build with netbsd's "make" and
we don't just write off the whole thing as crazy. But it probably shouldn't
include commands that #include <linux/*.h> if we are trying to make that work.)
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 11 Sep 2014 20:50:10 -0500 |
parents | ed28d4d9558d |
children | 87d95673a398 |
line wrap: on
line source
mainmenu "ToyBox Configuration" source generated/Config.probed source generated/Config.in comment "" menu "Toybox global settings" # This entry controls the multiplexer, disabled for single command builds config TOYBOX bool default y help usage: toybox [--long | [command] [arguments...]] With no arguments, shows available commands. First argument is name of a command to run, followed by any arguments to that command. --long Show path to each command To install command symlinks, try: for i in $(/bin/toybox --long); do ln -s /bin/toybox $i; done config TOYBOX_SUID bool "SUID support" default y help 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 config TOYBOX_FLOAT bool "Floating point support" default y help Include floating point support infrastructure and commands that require it. config TOYBOX_HELP bool "Help messages" default y help Include help text for each command. 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". config TOYBOX_I18N bool "Internationalization support" default y help Support for UTF-8 character sets, and some locale support. config TOYBOX_FREE bool "Free memory unnecessarily" default n help When a program exits, the operating system will clean up after it (free memory, close files, etc). To save size, toybox usually relies on this behavior. If you're running toybox under a debugger or without a real OS (ala newlib+libgloss), enable this to make toybox clean up after itself. config TOYBOX_DEBUG bool "Debugging tests" default n help Enable extra checks for debugging purposes. All of them catch things that can only go wrong at development time, not runtime. 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. endmenu