X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=functions%2Fmain;h=7c167e53310df08d7d8704d2b46dc23c9d82e472;hb=10a9a4a4045ee1e6bc30df5de9bb857d1fd0dc1f;hp=842a8f79c0e54da25aabd9c74588db35b946a665;hpb=14ad1e23484d4394eea4a8d0386995190a05039d;p=hvlinux.git diff --git a/functions/main b/functions/main index 842a8f7..7c167e5 100644 --- a/functions/main +++ b/functions/main @@ -2,8 +2,8 @@ set -o errtrace # Let shell functions inherit ERR trap. set -o errexit -# Don' t locate and remember (hash) commands as they are looked up for -# execution (don' t remember path): +# Don't locate and remember (hash) commands as they are looked up for +# execution (don't remember path): set +h hvtrap_setup() @@ -102,7 +102,11 @@ if [ -f ../targets/${HVL_TARGET} ]; then source ../targets/${HVL_TARGET} fi -CLFS_TARGET="${CLFS_ARCH}-${CLFS_OS}-${CLFS_ABI}" +# When CLFS_OS is defined, define target as the standard triplet: +CLFS_TARGET="${CLFS_ARCH}" +if [ x"${CLFS_OS}" != x ]; then + CLFS_TARGET+="-${CLFS_OS}-${CLFS_ABI}" +fi CLFS_HOST="$(echo $MACHTYPE | \ sed "s/$(echo $MACHTYPE | cut -d- -f2)/cross/")"