/dev fix
authorJohn P. Davis <zhen@gentoo.org>
Fri, 16 Apr 2004 18:56:08 +0000 (18:56 +0000)
committerJohn P. Davis <zhen@gentoo.org>
Fri, 16 Apr 2004 18:56:08 +0000 (18:56 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@358 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
targets/stage1/stage1-chroot.sh

index da4114e239260a127153c2453b5971b5bbd55ef7..df3298f3fb445f79bb37f96b293dc8dbd03225b7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
 # ChangeLog for gentoo/src/catalyst 
 # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.42 2004/04/14 22:35:29 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.43 2004/04/16 18:56:08 zhen Exp $
+
+  16 Apr 2004; John Davis <zhen@gentoo.org> targets/stage1/stage1-chroot.sh:
+  fix for the problem that gustavoz found wrt the /dev creation stuff not
+  detecting arches. also an efficiency fix for stage1 building
 
   14 Apr 2004; John Davis <zhen@gentoo.org>
   targets/embedded/embedded-chroot.sh,
index 197534c812a0990c1070f7fb974384732470d77f..a572aadb6a5f5880de4ccfa5755833eff6f95d23 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.13 2004/04/14 22:35:29 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/stage1-chroot.sh,v 1.14 2004/04/16 18:56:08 zhen Exp $
                
 /usr/sbin/env-update
 source /etc/profile
@@ -31,7 +31,7 @@ fi
 
 if [ -n "${clst_PKGCACHE}" ]
 then
-               export EMERGE_OPTS="--usepkg --buildpkg"
+               export clst_myemergeopts="--usepkg --buildpkg"
 fi
        
 # setup our environment
@@ -42,14 +42,56 @@ install -d ${ROOT}
 ## START BUILD
 for x in $(/tmp/build.sh)
 do
-       echo $x >> /tmp/build.log
-       USE="-* build" emerge ${EMERGE_OPTS} --noreplace $x || exit 1
+       #echo $x >> /tmp/build.log
+       export clst_buildpkgs="${clst_buildpkgs} ${x}"
 done
 
+USE="-* build" emerge ${clst_myemergeopts} --noreplace ${clst_buildpkgs} || exit 1
+
 # if baselayout did not fix up /dev, we do it
-if [ ! -d i${ROOT}/dev ]
+# 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
        mkdir -p ${ROOT}/dev
        cd ${ROOT}/dev
-       MAKEDEV generic-i386
+       MAKEDEV generic-${clst_devtype}
 fi