]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/poky-autobuild-moblin: Update to share moblin-incremental images
authorRichard Purdie <rpurdie@linux.intel.com>
Thu, 18 Dec 2008 16:43:03 +0000 (16:43 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 18 Dec 2008 16:43:03 +0000 (16:43 +0000)
scripts/poky-autobuild-moblin
scripts/poky-autobuild-postprocess-moblin

index 8662063095c562c99c0204497328dc0c85db2519..90ee931eba9c4622ee6ddb9c9849a4bbc3595805 100755 (executable)
 SRVWORKDIR=/home/rpurdie
 TARGETDIR=$SRVWORKDIR/httpd/autobuild-output
 CURRDIR=`pwd`
-if   [ "$CURRDIR" = "$SRVWORKDIR/poky/full-shihtzu/build" ]; then
+if   [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/full-shihtzu/build" ]; then
     ABTARGET="poky"
-elif [ "$CURRDIR" = "$SRVWORKDIR/poky/full-bleeding-shihtzu/build" ]; then
+elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/full-bleeding-shihtzu/build" ]; then
     ABTARGET="poky-bleeding"
-elif [ "$CURRDIR" = "$SRVWORKDIR/poky/toolchain-shihtzu/build" ]; then
+elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/toolchain-shihtzu/build" ]; then
     ABTARGET="toolchain"
-elif [ "$CURRDIR" = "$SRVWORKDIR/pokky/incremental-shihtzu/build" ]; then
+elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/incremental-shihtzu/build" ]; then
     ABTARGET="incremental"
-elif [ "$CURRDIR" = "$SRVWORKDIR/poky/full-darwin-shihtzu/build" ]; then
+elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/moblin-incremental/build" ]; then
+    ABTARGET="moblin-incremental"
+elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/moblin-full/build" ]; then
+    ABTARGET="moblin-full"
+elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/full-darwin-shihtzu/build" ]; then
     ABTARGET="darwin"
     if [ ! -d "$CURRDIR/meta-darwin" ]; then
         svn co http://svn.o-hand.com/repos/poky/branches/experimental/meta-darwin $CURRDIR/meta-darwin
@@ -43,7 +47,7 @@ fi
 if [ "xpreamble" = "x$1" ]; then
     mkdir -p ./build/tmp/deploy/images 
     rm -f ./build/tmp/deploy/images/images-complete
-    #svn info > ./build/tmp/deploy/images/svninfo
+    git log -1 > ./build/tmp/deploy/images/svninfo
     exit 0
 fi
 
@@ -95,9 +99,9 @@ bitbake $@
 
 retval=$?
 
-if [ "x$POSTPROCESS" != "x" ]; then
-    cd ..
-    $POSTPROCESS $ABTARGET $TARGETDIR
-fi
+#if [ "x$POSTPROCESS" != "x" ]; then
+#    cd ..
+#    $POSTPROCESS $ABTARGET $TARGETDIR
+#fi
 
 exit $retval
index cbe5203fb5e3a2d102973cef69900fec3b81c40a..2de7f537d9dfa1d704e56c862a3937d9b071ea45 100755 (executable)
@@ -23,9 +23,16 @@ TARGETDIR=$2
 
 cd ./build/tmp/deploy/
 
-LASTREV=`tail images/svninfo | grep Revision | cut -f 2 -d ' '`
-DEST=$TARGETDIR/$ABTARGET/$LASTREV/
+DEST=$TARGETDIR/$ABTARGET/
+BASE=`date +%Y%m%d`
+REV=1
 
+while [ -d "$DEST$FOO$BASE-$REV" ]
+do
+    REV=`expr $REV + 1`
+done
+
+DEST="$DEST$FOO$BASE-$REV"
 mkdir -p $DEST
 
 COMPRESS_FILES=()
@@ -37,7 +44,7 @@ if [ "x$ABTARGET" = "xpoky-bleeding" ]; then
     )
 
     FILES=(
-        svninfo
+        gitinfo
         `readlink images/zImage-akita.bin`
         `readlink images/zImage-qemuarm.bin`
         updater.sh.akita
@@ -48,7 +55,7 @@ fi
 
 if [ "x$ABTARGET" = "xtoolchain" ]; then
     FILES=(
-        svninfo
+        gitinfo
         poky-*-toolchain-*.tar.bz2
     )
 fi
@@ -63,7 +70,7 @@ if [ "x$ABTARGET" = "xpoky" ]; then
     )
 
     FILES=(
-        svninfo
+        gitinfo
         `readlink images/zImage-akita.bin`
         `readlink images/zImage-c7x0.bin`
         `readlink images/zImage-qemuarm.bin`
@@ -111,6 +118,27 @@ if [ "x$ABTARGET" = "xpoky" ]; then
     )
 fi
 
+if [ "x$ABTARGET" = "xmoblin-incremental" -o "x$ABTARGET" = "xmoblin-full" ]; then
+    COMPRESS_FILES=(
+        moblin-image-live-netbook-*.hddimg
+        moblin-image-live-netbook-*.iso
+        moblin-image-netbook-netbook-*.ext3
+        moblin-image-sdk-live-netbook-*.hddimg
+        moblin-image-sdk-live-netbook-*.iso
+        moblin-image-sdk-netbook-*.ext3
+    )
+
+    FILES=(
+        gitinfo
+        `readlink images/bImage-netbook.bin`
+        moblin-image-netbook-netbook-*.cpio.gz
+        moblin-image-netbook-netbook-*.jffs2
+        moblin-image-sdk-netbook-*.cpio.gz
+        moblin-image-sdk-netbook-*.jffs2
+    )
+fi
+
+
 for FILE in ${FILES[@]}; do
     for FILE2 in `find -name $FILE`; do
         if [ ! -e "$DEST/$FILE2" ]; then