comparison build.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 f8dac531cbb5
children 1782b77fae15
comparison
equal deleted inserted replaced
261:0f962b5609c3 262:b2e353ae7566
10 fi 10 fi
11 11
12 # Download source code and build host tools. 12 # Download source code and build host tools.
13 13
14 ./download.sh || exit 1 14 ./download.sh || exit 1
15
16 # host-tools populates one directory with every command the build needs,
17 # so we can ditch the old $PATH afterwards.
18
15 time ./host-tools.sh || exit 1 19 time ./host-tools.sh || exit 1
20 PATH=`pwd`/build/host
21 [ -f "$PATH"/toybox ] || exit 1
16 22
17 # Run the steps in order for each architecture listed on the command line 23 # Run the steps in order for each architecture listed on the command line
18 for i in "$@" 24 for i in "$@"
19 do 25 do
20 echo "=== Building ARCH $i" 26 echo "=== Building ARCH $i"