X-Git-Url: https://hackdaworld.org/gitweb/?p=hdw-linux%2Fhdw-linux.git;a=blobdiff_plain;f=scripts%2FConfig;h=042664c609ffe77c8921025f03094115758fbbdc;hp=c1581e72229612b41639cdd57030e0dddde05b25;hb=8dd2356c22327a15f0e16abbc887c4f72fc62985;hpb=c7b7c7d4ce2f5a6947e42ff37d9584d26eb52ba4 diff --git a/scripts/Config b/scripts/Config index c1581e7..042664c 100755 --- a/scripts/Config +++ b/scripts/Config @@ -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 #