summaryrefslogtreecommitdiffstats
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)
downloadpoky-0f918b445e48ff1d45929251697f476c1053bc43.tar.gz
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 cbe5203fb5..2de7f537d9 100755
--- a/scripts/poky-autobuild-postprocess-moblin
+++ b/scripts/poky-autobuild-postprocess-moblin
@@ -23,9 +23,16 @@ TARGETDIR=$2
23 23
24cd ./build/tmp/deploy/ 24cd ./build/tmp/deploy/
25 25
26LASTREV=`tail images/svninfo | grep Revision | cut -f 2 -d ' '` 26DEST=$TARGETDIR/$ABTARGET/
27DEST=$TARGETDIR/$ABTARGET/$LASTREV/ 27BASE=`date +%Y%m%d`
28REV=1
28 29
30while [ -d "$DEST$FOO$BASE-$REV" ]
31do
32 REV=`expr $REV + 1`
33done
34
35DEST="$DEST$FOO$BASE-$REV"
29mkdir -p $DEST 36mkdir -p $DEST
30 37
31COMPRESS_FILES=() 38COMPRESS_FILES=()
@@ -37,7 +44,7 @@ if [ "x$ABTARGET" = "xpoky-bleeding" ]; then
37 ) 44 )
38 45
39 FILES=( 46 FILES=(
40 svninfo 47 gitinfo
41 `readlink images/zImage-akita.bin` 48 `readlink images/zImage-akita.bin`
42 `readlink images/zImage-qemuarm.bin` 49 `readlink images/zImage-qemuarm.bin`
43 updater.sh.akita 50 updater.sh.akita
@@ -48,7 +55,7 @@ fi
48 55
49if [ "x$ABTARGET" = "xtoolchain" ]; then 56if [ "x$ABTARGET" = "xtoolchain" ]; then
50 FILES=( 57 FILES=(
51 svninfo 58 gitinfo
52 poky-*-toolchain-*.tar.bz2 59 poky-*-toolchain-*.tar.bz2
53 ) 60 )
54fi 61fi
@@ -63,7 +70,7 @@ if [ "x$ABTARGET" = "xpoky" ]; then
63 ) 70 )
64 71
65 FILES=( 72 FILES=(
66 svninfo 73 gitinfo
67 `readlink images/zImage-akita.bin` 74 `readlink images/zImage-akita.bin`
68 `readlink images/zImage-c7x0.bin` 75 `readlink images/zImage-c7x0.bin`
69 `readlink images/zImage-qemuarm.bin` 76 `readlink images/zImage-qemuarm.bin`
@@ -111,6 +118,27 @@ if [ "x$ABTARGET" = "xpoky" ]; then
111 ) 118 )
112fi 119fi
113 120
121if [ "x$ABTARGET" = "xmoblin-incremental" -o "x$ABTARGET" = "xmoblin-full" ]; then
122 COMPRESS_FILES=(
123 moblin-image-live-netbook-*.hddimg
124 moblin-image-live-netbook-*.iso
125 moblin-image-netbook-netbook-*.ext3
126 moblin-image-sdk-live-netbook-*.hddimg
127 moblin-image-sdk-live-netbook-*.iso
128 moblin-image-sdk-netbook-*.ext3
129 )
130
131 FILES=(
132 gitinfo
133 `readlink images/bImage-netbook.bin`
134 moblin-image-netbook-netbook-*.cpio.gz
135 moblin-image-netbook-netbook-*.jffs2
136 moblin-image-sdk-netbook-*.cpio.gz
137 moblin-image-sdk-netbook-*.jffs2
138 )
139fi
140
141
114for FILE in ${FILES[@]}; do 142for FILE in ${FILES[@]}; do
115 for FILE2 in `find -name $FILE`; do 143 for FILE2 in `find -name $FILE`; do
116 if [ ! -e "$DEST/$FILE2" ]; then 144 if [ ! -e "$DEST/$FILE2" ]; then