Remove obsolete CLFS_NOT_ENDIAN variable
authorHugo Villeneuve <hugo@hugovil.com>
Wed, 4 Jun 2014 02:23:45 +0000 (22:23 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Thu, 31 Jul 2014 02:15:25 +0000 (22:15 -0400)
Simplify ARM variables initialization.

functions/main

index 0d24a51..7c071db 100644 (file)
@@ -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()
 {