Rob Landley | 09e8bde | 2012-02-04 12:20:39 -0600 | [diff] [blame] | 1 | Toybox: all-in-one Linux command line. |
| 2 | |
| 3 | --- Building Toybox |
| 4 | |
| 5 | Type "make help" for build instructions. |
| 6 | |
| 7 | Mostly you want: |
| 8 | |
| 9 | CFLAGS="--static" CROSS_COMPILE=armv5l- make defconfig toybox install |
| 10 | |
| 11 | Or "make menuconfig", which produces the same sort of .config file as the |
| 12 | Linux kernel. |
| 13 | |
| 14 | --- Using toybox |
| 15 | |
| 16 | The build produces a "swiss-army-knife" style multifunction binary, which acts |
| 17 | differently depending on the name it was called as (cp, mv, cat...), and |
| 18 | installs symlinks under each command name to populate $PATH. |
| 19 | |
| 20 | The "toybox" command itself uses its first argument as the command name to run |
| 21 | (ala "toybox ls -l"). With no arguments, it lists available commands. (This |
| 22 | allows you to use the commands even without the symlinks.) |
| 23 | |
| 24 | The "help" command provides information about each command (ala "help cat"). |
| 25 | |
| 26 | The toybox web page is at "http://landley.net/toybox". |
| 27 | |
| 28 | Have fun, |
| 29 | |
| 30 | Rob |