Mercurial > hg > aboriginal
changeset 254:e005f4279b36
Tell bash not to cache paths, missing error check, commented out busybox build.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 01 Jan 2008 03:12:59 -0600 |
parents | f93932523a08 |
children | c3e8c6662b58 |
files | host-tools.sh |
diffstat | 1 files changed, 19 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/host-tools.sh Tue Jan 01 03:08:29 2008 -0600 +++ b/host-tools.sh Tue Jan 01 03:12:59 2008 -0600 @@ -2,6 +2,10 @@ # Get lots of predefined environment variables and shell functions. +# Tell bash not to memorize the path to anything, so toybox utilities get +# used immediately even if a different executable was found last $PATH lookup. +set +h + echo -e "\e[0m" echo "=== Building host tools" @@ -11,10 +15,23 @@ #rm -rf "${HOSTTOOLS}" mkdir -p "${HOSTTOOLS}" || dienow +# Build busybox +#if [ ! -f "$(which busybox)" ] +#then +# setupfor busybox && +# make defconfig && +# make && +# cp busybox "${HOSTTOOLS}" && +# for i in $(sed 's@.*/@@' busybox.links) +# do +# ln -s busybox "${HOSTTOOLS}"/$i +# done +# rm "${HOSTTOOLS}"/{ar,find} +#fi + # Build toybox if [ ! -f "$(which toybox)" ] then -echo which toybox setupfor toybox && make defconfig && make && @@ -32,7 +49,7 @@ if [ -z "$(which linux)" ] then setupfor linux && - cat > mini.conf << EOF + cat > mini.conf << EOF && CONFIG_BINFMT_ELF=y CONFIG_HOSTFS=y CONFIG_LBD=y