Added more embedded updates from mutex@gentoo.org and Closing bug #67289.
authorChris Gianelloni <wolf31o2@gentoo.org>
Thu, 16 Dec 2004 20:01:38 +0000 (20:01 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Thu, 16 Dec 2004 20:01:38 +0000 (20:01 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@498 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
modules/embedded_target.py
targets/embedded/embedded-fs-runscript.sh
targets/embedded/embedded.sh

index d9c217709104c71e63b12ab7d6703f0a050c54e4..01934dc84a57a1b1e4e64e09c1fd9ed10fb0bc8a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 # ChangeLog for gentoo/src/catalyst 
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.125 2004/12/16 17:51:22 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.126 2004/12/16 20:01:38 wolf31o2 Exp $
+
+  16 Dec 2004; Chris Gianelloni <wolf31o2@gentoo.org>
+  modules/embedded_target.py, targets/embedded/embedded-fs-runscript.sh,
+  targets/embedded/embedded.sh:
+  Added more embedded updates from mutex@gentoo.org and Closing bug #67289.
 
   16 Dec 2004; Chris Gianelloni <wolf31o2@gentoo.org>
   +examples/gamecd.conf.example, -livecd/files/gamecd-xinitrc,
index 68a69245bf5f15ab68487514fb4a31350f8eedef..26c0eaa673ecda4f17066f06afc2ef7348b399ce 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/embedded_target.py,v 1.3 2004/11/23 00:02:57 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/embedded_target.py,v 1.4 2004/12/16 20:01:38 wolf31o2 Exp $
 
 """
 This class works like a 'stage3'.  A stage2 tarball is unpacked, but instead
@@ -22,10 +22,10 @@ class embedded_target(generic_stage_target):
     def __init__(self,spec,addlargs):
         self.required_values=[]
         self.valid_values=[]
-        self.valid_values.extend(["embedded/empty","embedded/rm","embedded/unmerge","embedded/runscript","embedded/mergeroot","embedded/packages","embedded/use","embedded/fstype"])
+        self.valid_values.extend(["embedded/empty","embedded/rm","embedded/unmerge","embedded/runscript","embedded/mergeroot","embedded/packages","embedded/use","embedded/fs-type"])
 
-        if addlargs.has_key("embedded/fstype"):
-            self.valid_values.append("embedded/fsops")
+        if addlargs.has_key("embedded/fs-type"):
+            self.valid_values.append("embedded/fs-ops")
 
         generic_stage_target.__init__(self,spec,addlargs)
        self.settings["image_path"]=self.settings["storedir"]+"/builds/"+self.settings["target_subpath"]+"/image"       
@@ -55,7 +55,7 @@ class embedded_target(generic_stage_target):
 
     def build_fs(self):
         try:
-            if self.settings.has_key("embedded/fstype"):
+            if self.settings.has_key("embedded/fs-type"):
                 cmd("/bin/bash "+self.settings["sharedir"]+"/targets/embedded/embedded.sh package","filesystem packaging failed")
         except CatalystError:
                 self.unbind()
index 36c3e1397752a6e59ca9863897b5c734e06392e6..26d13b74adea7f7a23e9e2cfd1e8e26cd6ec8348 100644 (file)
@@ -18,24 +18,24 @@ case $1 in
     jffs)
        fs_check /usr/sbin/mkfs.jffs jffs sys-fs/mtd
        mkfs.jffs -d ${root_fs_path} -o ${clst_image_path}/root.img \
-           ${clst_embedded_fsops} || die "Could not create a jffs filesystem"
+           ${clst_embedded_fs_ops} || die "Could not create a jffs filesystem"
        ;;
     jffs2)
        fs_check /usr/sbin/mkfs.jffs2 jffs2 sys-fs/mtd
        mkfs.jffs2 --root=${root_fs_path} --output=${clst_image_path}/root.img\
-           ${clst_embedded_fsops} || die "Could not create a jffs2 filesystem"
+           ${clst_embedded_fs_ops} || die "Could not create a jffs2 filesystem"
        ;;
 
     cramfs)
        fs_check /sbin/mkcramfs cramfs sys-fs/cramfs
-       mkcramfs ${clst_embedded_fsops} ${root_fs_path} \
+       mkcramfs ${clst_embedded_fs_ops} ${root_fs_path} \
            ${clst_image_path}/root.img || die "Could not create a cramfs filesystem"
        ;;
 
     squashfs)
-       fs_check /usr/sbin/mksquashfs squashfs sys-fs/squashfs-tools
+       fs_check /usr/bin/mksquashfs squashfs sys-fs/squashfs-tools
        mksquashfs ${root_fs_path} ${clst_image_path}/root.img \
-           ${clst_embedded_fsops} || die "Could not create a squashfs filesystem"
+           ${clst_embedded_fs_ops} || die "Could not create a squashfs filesystem"
        ;;
     *)
        ;;
index 817a7332c8dd6a14483d5fb95e17c7c040246a47..b27433e5fb2b67c23b52b0f282582c744c158c27 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/bash
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2003 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/Attic/embedded.sh,v 1.5 2004/10/15 02:46:58 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/Attic/embedded.sh,v 1.6 2004/12/16 20:01:38 wolf31o2 Exp $
 
 case $1 in
        enter)
@@ -13,15 +13,14 @@ case $1 in
                ${clst_CHROOT} ${clst_chroot_path} /tmp/embedded-chroot.sh || exit 1
                rm -f ${clst_chroot_path}/tmp/embedded-chroot.sh
        ;;
-
-       preclean)
-               exit 0
-       ;;
-
-       clean)
-               exit 0
+       package)
+               export root_fs_path="${clst_chroot_path}/tmp/mergeroot"
+               install -d ${clst_image_path}
+               ${clst_sharedir}/targets/embedded/embedded-fs-runscript.sh ${clst_embedded_fs_type} || exit 1
+       imagesize=`du -sk ${clst_image_path}/root_fs | cut -f1`
+       echo "Created ${clst_embedded_fs_type} image at ${clst_image_path}/root_fs"
+       echo "Image size: ${imagesize}k"
        ;;
-       
        *)
                exit 1
        ;;