From efb8060a591b6ed13c16c4034db43652e03f90d5 Mon Sep 17 00:00:00 2001
From: Rob Landley
+
How do I install toybox?
How do I cross compile toybox?
Where does toybox fit into the Linux/Android
ecosystem?
@@ -237,6 +238,34 @@ instead of the toybox version (in theory they should work the same),
and VERBOSE=1 to see diffs of the expected and actual output when a
test fails (VERBOSE=fail to stop at the first such failure)
A: +Multicall binaries like toybox behave differently based on the filename +used to call them, so if you "mv toybox ls; ./ls" it acts like ls. Creating +symlinks or hardlinks and adding them to the $PATH lets you run the +commands normally by name.
+ +If you already have a toybox binary +you can install a tree of command symlinks living in +the +standard path +locations (export PATH=/bin:/usr/bin:/sbin:/usr/sbin) by doing:
+ ++ +for i in $(/bin/toybox --long); do ln -s /bin/toybox $i; done
or you can install all the symlinks in the same directory as the toybox binary +(export PATH="$PWD:$PATH") via:
+ ++ +for i in $(./toybox); do ln -s toybox $i; done
When building from source, use the "make install" and +"make install_flat" +targets with an appropriate PREFIX=/path/to/new/directory either +exported or on the make command line +(as mentioned in "make help" output).
+