Fix bug 95280 in genkernel. ARCH_OVERRIDE in /etc/genkernel.conf should work now
authorEric Edgar <rocket@gentoo.org>
Mon, 11 Jul 2005 16:37:57 +0000 (16:37 +0000)
committerEric Edgar <rocket@gentoo.org>
Mon, 11 Jul 2005 16:37:57 +0000 (16:37 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@247 67a159dc-881f-0410-a524-ba9dfbe2cb84

gen_arch.sh

index b16b6fbf588b2349ca9a3a6f0e1b126c08a982e3..b69f58c0d90ba3559b35172309d59fde555879d2 100755 (executable)
@@ -5,14 +5,19 @@ get_official_arch() {
        then
                ARCH=${CMD_ARCHOVERRIDE}
        else
-               ARCH=`uname -m`
-               case "${ARCH}" in
-                       i?86)
-                               ARCH="x86"
-                       ;;
-                       *)
-                       ;;
-               esac
+               if [ "${ARCH_OVERRIDE}" != '' ]
+               then
+                       ARCH=${ARCH_OVERRIDE}
+               else
+                       ARCH=`uname -m`
+                       case "${ARCH}" in
+                               i?86)
+                                       ARCH="x86"
+                               ;;
+                               *)
+                               ;;
+                       esac
+               fi
        fi
 
        ARCH_CONFIG="${GK_SHARE}/${ARCH}/config.sh"