fixup for arm stuff
authorJohn P. Davis <zhen@gentoo.org>
Tue, 11 May 2004 20:03:49 +0000 (20:03 +0000)
committerJohn P. Davis <zhen@gentoo.org>
Tue, 11 May 2004 20:03:49 +0000 (20:03 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@366 d1e1f19c-881f-0410-ab34-b69fee027534

targets/stage1/stage1-chroot.sh

index a572aadb6a5f5880de4ccfa5755833eff6f95d23..6bb56a2a6575909e43d12fdb848457a16c35bb85 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2004 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/stage1-chroot.sh,v 1.14 2004/04/16 18:56:08 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/stage1-chroot.sh,v 1.15 2004/05/11 20:03:49 zhen Exp $
                
 /usr/sbin/env-update
 source /etc/profile
@@ -50,47 +50,50 @@ USE="-* build" emerge ${clst_myemergeopts} --noreplace ${clst_buildpkgs} || exit
 
 # if baselayout did not fix up /dev, we do it
 # THIS SHOULD BE TEMPORARY CODE - NOT A SOLUTION
-case ${clst_mainarch} in
-       x86)
-               clst_devtype=i386
-               ;;
-       ppc)
-               clst_devtype=powerpc
-               ;;
-       ppc64)
-               clst_devtype=powerpc
-               ;;
-       sparc)
-               clst_devtype=sparc
-               ;;
-       sparc64)
-               clst_devtype=sparc
-               ;;
-       alpha)
-               clst_devtype=alpha
-               ;;
-       s390)
-               clst_devtype=s390
-               ;;
-       amd64)
-               clst_devtype=i386
-               ;;
-       hppa)
-               clst_devtype=hppa
-               ;;
-       ia64)
-               clst_devtype=ia64
-               ;;
-       mips)
-               clst_devtype=mips
-               ;;
-       *)
-               echo "!!! Catalyst mainarch ${clst_mainarch} not supported" && exit 1
-               ;;
-esac
-
 if [ ! -d ${ROOT}/dev ]
 then
+       case ${clst_mainarch} in
+               x86)
+                       clst_devtype=i386
+                       ;;
+               ppc)
+                       clst_devtype=powerpc
+                       ;;
+               ppc64)
+                       clst_devtype=powerpc
+                       ;;
+               sparc)
+                       clst_devtype=sparc
+                       ;;
+               sparc64)
+                       clst_devtype=sparc
+                       ;;
+               alpha)
+                       clst_devtype=alpha
+                       ;;
+               s390)
+                       clst_devtype=s390
+                       ;;
+               amd64)
+                       clst_devtype=i386
+                       ;;
+               hppa)
+                       clst_devtype=hppa
+                       ;;
+               ia64)
+                       clst_devtype=ia64
+                       ;;
+               mips)
+                       clst_devtype=mips
+                       ;;
+               arm)
+                       clst_devtype=arm
+                       ;;
+               *)
+                       echo "!!! Catalyst mainarch ${clst_mainarch} not supported" && exit 1
+                       ;;
+       esac
+
        mkdir -p ${ROOT}/dev
        cd ${ROOT}/dev
        MAKEDEV generic-${clst_devtype}