comparison forkbomb.sh @ 262:b2e353ae7566

Have host-tools populate build/host with 1) toybox, 2) all the remaining busybox commands the build can use, 3) symlinks for the other dozen or so commands the build needs. Then set $PATH to _just_ build/host, yanking the rest of the $PATH so it won't call other things from the host. This way, the environmental dependencies are more explicit. (Note that some commands symlinked from the host could be built by busybox, but the busybox versions of those don't work correctly in the build.)
author Rob Landley <rob@landley.net>
date Fri, 25 Jan 2008 03:26:35 -0600
parents 863e15b54e17
children dc5f5eeea57d
comparison
equal deleted inserted replaced
261:0f962b5609c3 262:b2e353ae7566
15 if [ "$1" != "--watch" ] 15 if [ "$1" != "--watch" ]
16 then 16 then
17 if [ $# -ne 0 ] 17 if [ $# -ne 0 ]
18 then 18 then
19 (nice -n 20 ./download.sh && 19 (nice -n 20 ./download.sh &&
20 # host-tools populates one directory with every command the build needs,
21 # so we can ditch the old $PATH afterwards.
20 nice -n 20 ./host-tools.sh && 22 nice -n 20 ./host-tools.sh &&
23 PATH=`pwd`/build/host &&
21 nice -n 20 ./download.sh --extract ) || exit 1 24 nice -n 20 ./download.sh --extract ) || exit 1
22 fi 25 fi
23 for i in `cd sources/configs; ls` 26 for i in `cd sources/configs; ls`
24 do 27 do
25 if [ "$1" == "--nofork" ] 28 if [ "$1" == "--nofork" ]