diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2008-12-18 16:43:03 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2008-12-18 16:43:03 +0000 |
commit | 0f918b445e48ff1d45929251697f476c1053bc43 (patch) | |
tree | 9801edff0fd9ee296984deae325f3fe7969ec940 /scripts/poky-autobuild-postprocess-moblin | |
parent | be30e75511094aad232dda2678abca30132599cc (diff) | |
download | poky-0f918b445e48ff1d45929251697f476c1053bc43.tar.gz |
scripts/poky-autobuild-moblin: Update to share moblin-incremental images
Diffstat (limited to 'scripts/poky-autobuild-postprocess-moblin')
-rwxr-xr-x | scripts/poky-autobuild-postprocess-moblin | 38 |
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 | ||
24 | cd ./build/tmp/deploy/ | 24 | cd ./build/tmp/deploy/ |
25 | 25 | ||
26 | LASTREV=`tail images/svninfo | grep Revision | cut -f 2 -d ' '` | 26 | DEST=$TARGETDIR/$ABTARGET/ |
27 | DEST=$TARGETDIR/$ABTARGET/$LASTREV/ | 27 | BASE=`date +%Y%m%d` |
28 | REV=1 | ||
28 | 29 | ||
30 | while [ -d "$DEST$FOO$BASE-$REV" ] | ||
31 | do | ||
32 | REV=`expr $REV + 1` | ||
33 | done | ||
34 | |||
35 | DEST="$DEST$FOO$BASE-$REV" | ||
29 | mkdir -p $DEST | 36 | mkdir -p $DEST |
30 | 37 | ||
31 | COMPRESS_FILES=() | 38 | COMPRESS_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 | ||
49 | if [ "x$ABTARGET" = "xtoolchain" ]; then | 56 | if [ "x$ABTARGET" = "xtoolchain" ]; then |
50 | FILES=( | 57 | FILES=( |
51 | svninfo | 58 | gitinfo |
52 | poky-*-toolchain-*.tar.bz2 | 59 | poky-*-toolchain-*.tar.bz2 |
53 | ) | 60 | ) |
54 | fi | 61 | fi |
@@ -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 | ) |
112 | fi | 119 | fi |
113 | 120 | ||
121 | if [ "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 | ) | ||
139 | fi | ||
140 | |||
141 | |||
114 | for FILE in ${FILES[@]}; do | 142 | for 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 |