From: Hugo Villeneuve Date: Wed, 4 Jun 2014 02:23:45 +0000 (-0400) Subject: Remove obsolete CLFS_NOT_ENDIAN variable X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=71a4362438cd17248be2046e845e48c638e309dd;p=hvlinux.git Remove obsolete CLFS_NOT_ENDIAN variable Simplify ARM variables initialization. --- diff --git a/functions/main b/functions/main index 0d24a51..7c071db 100644 --- a/functions/main +++ b/functions/main @@ -98,13 +98,8 @@ case "${HVL_TARGET}" in arm*) CLFS_BUILDFLAGS="-mabi=aapcs-linux -mfloat-abi=soft" CLFS_TARGET="arm-linux-gnueabi" - CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/arm.*/arm/g') - CLFS_ENDIAN=$(echo ${CLFS_ARCH} | sed -e 's/armeb/BIG/' -e 's/arm/LITTLE/') - if [ "${CLFS_ENDIAN}" = "LITTLE" ]; then - CLFS_NOT_ENDIAN="BIG" - else - CLFS_NOT_ENDIAN="LITTLE" - fi + CLFS_ARCH=arm + CLFS_ENDIAN=LITTLE ;; "x86_64") CLFS_BUILDFLAGS="-m64" @@ -132,7 +127,7 @@ esac CLFS_HOST="$(echo $MACHTYPE | \ sed "s/$(echo $MACHTYPE | cut -d- -f2)/cross/")" -export CLFS_BUILDFLAGS CLFS_TARGET CLFS_ARCH CLFS_HOST CLFS_ENDIAN CLFS_NOT_ENDIAN +export CLFS_BUILDFLAGS CLFS_TARGET CLFS_ARCH CLFS_HOST CLFS_ENDIAN test_presence_of_packages_directory() {