several changes to toolchain packages
[hdw-linux/hdw-linux.git] / scripts / Config
index c1581e7..042664c 100755 (executable)
@@ -42,6 +42,7 @@ fi
 
 # define the toolchain name, default: "toolchain"
 [ -z "$hdw_tc_name" ] && hdw_tc_name="toolchain"
+export tc_name=$hdw_tc_name
 
 # lets see what root is:
 root=""
@@ -63,8 +64,11 @@ fi
 set +h
 umask 022
 export LC_ALL=POSIX
-[ "$stage" -lt "2" -o "$hdw_crossbuild" != "0" ] && \
-       export PATH="$root/${hdw_tc_name}/bin:$PATH"
+if [ "$stage" -lt "2" -a "$hdw_crossbuild" = "0" ] ; then
+       export PATH="/${tc_name}/bin:/${tc_name}/sbin:$PATH"
+elif [ "$hdw_crossbuild" != "0" ] ; then
+       export PATH="$root/${tc_name}/bin:$root/${tc_name}/sbin:$PATH"
+fi
 
 # let's do optimization and care for crossbuilds
 #