summaryrefslogtreecommitdiff
path: root/scripts/poky-autobuild-postprocess-moblin
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2008-12-18 16:43:03 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2008-12-18 16:43:03 +0000
commit0f918b445e48ff1d45929251697f476c1053bc43 (patch)
tree9801edff0fd9ee296984deae325f3fe7969ec940 /scripts/poky-autobuild-postprocess-moblin
parentbe30e75511094aad232dda2678abca30132599cc (diff)
downloadopenembedded-core-0f918b445e48ff1d45929251697f476c1053bc43.tar.gz
openembedded-core-0f918b445e48ff1d45929251697f476c1053bc43.tar.bz2
openembedded-core-0f918b445e48ff1d45929251697f476c1053bc43.tar.xz
openembedded-core-0f918b445e48ff1d45929251697f476c1053bc43.zip
scripts/poky-autobuild-moblin: Update to share moblin-incremental images
Diffstat (limited to 'scripts/poky-autobuild-postprocess-moblin')
-rwxr-xr-xscripts/poky-autobuild-postprocess-moblin38
1 files changed, 33 insertions, 5 deletions
diff --git a/scripts/poky-autobuild-postprocess-moblin b/scripts/poky-autobuild-postprocess-moblin
index cbe5203fb..2de7f537d 100755
--- a/scripts/poky-autobuild-postprocess-moblin
+++ b/scripts/poky-autobuild-postprocess-moblin
@@ -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