From 75edf09329f6ffca709f9d77097b50170525bd65 Mon Sep 17 00:00:00 2001
From: Rob Landley
How do I install toybox?
How do I make individual/standalone toybox command binaries?
How do I cross compile toybox?
What architectures does toybox support?
What part of Linux/Android does toybox provide?
You can also build -individual commands as standalone executables, ala "make sed cat ls". +
You can also build individual commands as standalone +executables, ala "make sed cat ls". The "make change" target builds all of them, as in "change for a $20".
The main() function is in main.c at the top level, @@ -512,16 +513,25 @@ arbitrary file out of the filesystem and have it run that. You could
After running the configure step (generally "make defconfig") -you can "make list" to see available command names you can use as build -targets to build just that command -(ala "make sed"). Commands built this way do not contain a multiplexer and -don't care what the command filename is.
+A: You can use almost* +any command name as a make target (ala "make sed") or test the standalone versions individually +with the test_ prefix ("make test_sed"). You'll need to run the configure +step first (generally "make defconfig") so the .config file exists for +the build. For a list of currently available commands run +"make list".
The "make change" target (as in change for a $20) builds every command standalone (in the "change" subdirectory). Note that this is collectively -about 10 times as large as the multiplexer version, both in disk space and -runtime memory. (Even more when statically linked.)
+about 10 times as large as the all-in-one multiplexer version (in disk space, +runtime memory, how long the build takes...) + +As always, the Makefile is a thin wrapper around bash scripts actually +doing the work, you can just all "scripts/single.sh cat ls mv" directly +if you like.
+ +* A few command names, like "help" and "test" have +other meanings to the Makefile, and you have to use scripts/single.sh or +"make change" to build them standalone.