From: Eric Edgar Date: Mon, 11 Jul 2005 16:37:57 +0000 (+0000) Subject: Fix bug 95280 in genkernel. ARCH_OVERRIDE in /etc/genkernel.conf should work now X-Git-Tag: v3.4.10.902~505 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=823faee86ddf68eaa07ac40c0c2bfdf6ad3e8a45;p=genkernel.git Fix bug 95280 in genkernel. ARCH_OVERRIDE in /etc/genkernel.conf should work now git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@247 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- diff --git a/gen_arch.sh b/gen_arch.sh index b16b6fb..b69f58c 100755 --- a/gen_arch.sh +++ b/gen_arch.sh @@ -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"