changeset 98:b6b4386a6c83

Make host-tools.sh work when run standalone.
author Rob Landley <rob@landley.net>
date Thu, 01 Feb 2007 16:30:17 -0500
parents b5b65762dd87
children fd6d26721acf
files include.sh
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/include.sh	Thu Feb 01 16:29:43 2007 -0500
+++ b/include.sh	Thu Feb 01 16:30:17 2007 -0500
@@ -152,9 +152,12 @@
 TOP=`pwd`
 export SOURCES="${TOP}/sources"
 export SRCDIR="${SOURCES}/packages"
+export FROMSRC=../packages
 export LINKDIR="${SOURCES}/build-links"
 export BUILD="${TOP}/build"
-export FROMSRC=../packages
+export HOSTTOOLS="${BUILD}/host"
+export WORK="${BUILD}/host-temp"
+export PATH="${HOSTTOOLS}:$PATH"
 mkdir -p "${SRCDIR}" "${LINKDIR}"
 
 # For bash: check the $PATH for new executables added after startup.
@@ -184,7 +187,6 @@
   # Which platform are we building for?
 
   export WORK="${BUILD}/temp-$ARCH"
-  mkdir -p "${WORK}"
   # Say "unknown" in two different ways so it doesn't assume we're NOT
   # cross compiling when the host and target are the same processor.  (If host
   # and target match, the binutils/gcc/make builds won't use the cross compiler
@@ -201,8 +203,8 @@
 
   export CROSS="${BUILD}/cross-compiler-$ARCH"
   export NATIVE="${BUILD}/mini-native-$ARCH"
-  export HOSTTOOLS="${BUILD}/host"
   export PATH="${CROSS}/bin:${HOSTTOOLS}:$PATH"
 fi
+mkdir -p "${WORK}"
 
 [ -z "$CLEANUP" ] && CLEANUP="rm -rf"