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 | |
parent | be30e75511094aad232dda2678abca30132599cc (diff) | |
download | poky-0f918b445e48ff1d45929251697f476c1053bc43.tar.gz |
scripts/poky-autobuild-moblin: Update to share moblin-incremental images
-rwxr-xr-x | scripts/poky-autobuild-moblin | 24 | ||||
-rwxr-xr-x | scripts/poky-autobuild-postprocess-moblin | 38 |
2 files changed, 47 insertions, 15 deletions
diff --git a/scripts/poky-autobuild-moblin b/scripts/poky-autobuild-moblin index 8662063095..90ee931eba 100755 --- a/scripts/poky-autobuild-moblin +++ b/scripts/poky-autobuild-moblin | |||
@@ -21,15 +21,19 @@ | |||
21 | SRVWORKDIR=/home/rpurdie | 21 | SRVWORKDIR=/home/rpurdie |
22 | TARGETDIR=$SRVWORKDIR/httpd/autobuild-output | 22 | TARGETDIR=$SRVWORKDIR/httpd/autobuild-output |
23 | CURRDIR=`pwd` | 23 | CURRDIR=`pwd` |
24 | if [ "$CURRDIR" = "$SRVWORKDIR/poky/full-shihtzu/build" ]; then | 24 | if [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/full-shihtzu/build" ]; then |
25 | ABTARGET="poky" | 25 | ABTARGET="poky" |
26 | elif [ "$CURRDIR" = "$SRVWORKDIR/poky/full-bleeding-shihtzu/build" ]; then | 26 | elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/full-bleeding-shihtzu/build" ]; then |
27 | ABTARGET="poky-bleeding" | 27 | ABTARGET="poky-bleeding" |
28 | elif [ "$CURRDIR" = "$SRVWORKDIR/poky/toolchain-shihtzu/build" ]; then | 28 | elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/toolchain-shihtzu/build" ]; then |
29 | ABTARGET="toolchain" | 29 | ABTARGET="toolchain" |
30 | elif [ "$CURRDIR" = "$SRVWORKDIR/pokky/incremental-shihtzu/build" ]; then | 30 | elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/incremental-shihtzu/build" ]; then |
31 | ABTARGET="incremental" | 31 | ABTARGET="incremental" |
32 | elif [ "$CURRDIR" = "$SRVWORKDIR/poky/full-darwin-shihtzu/build" ]; then | 32 | elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/moblin-incremental/build" ]; then |
33 | ABTARGET="moblin-incremental" | ||
34 | elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/moblin-full/build" ]; then | ||
35 | ABTARGET="moblin-full" | ||
36 | elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/full-darwin-shihtzu/build" ]; then | ||
33 | ABTARGET="darwin" | 37 | ABTARGET="darwin" |
34 | if [ ! -d "$CURRDIR/meta-darwin" ]; then | 38 | if [ ! -d "$CURRDIR/meta-darwin" ]; then |
35 | svn co http://svn.o-hand.com/repos/poky/branches/experimental/meta-darwin $CURRDIR/meta-darwin | 39 | svn co http://svn.o-hand.com/repos/poky/branches/experimental/meta-darwin $CURRDIR/meta-darwin |
@@ -43,7 +47,7 @@ fi | |||
43 | if [ "xpreamble" = "x$1" ]; then | 47 | if [ "xpreamble" = "x$1" ]; then |
44 | mkdir -p ./build/tmp/deploy/images | 48 | mkdir -p ./build/tmp/deploy/images |
45 | rm -f ./build/tmp/deploy/images/images-complete | 49 | rm -f ./build/tmp/deploy/images/images-complete |
46 | #svn info > ./build/tmp/deploy/images/svninfo | 50 | git log -1 > ./build/tmp/deploy/images/svninfo |
47 | exit 0 | 51 | exit 0 |
48 | fi | 52 | fi |
49 | 53 | ||
@@ -95,9 +99,9 @@ bitbake $@ | |||
95 | 99 | ||
96 | retval=$? | 100 | retval=$? |
97 | 101 | ||
98 | if [ "x$POSTPROCESS" != "x" ]; then | 102 | #if [ "x$POSTPROCESS" != "x" ]; then |
99 | cd .. | 103 | # cd .. |
100 | $POSTPROCESS $ABTARGET $TARGETDIR | 104 | # $POSTPROCESS $ABTARGET $TARGETDIR |
101 | fi | 105 | #fi |
102 | 106 | ||
103 | exit $retval | 107 | exit $retval |
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 |