summaryrefslogtreecommitdiffstats
path: root/scripts/poky-autobuild-postprocess
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/poky-autobuild-postprocess')
-rwxr-xr-xscripts/poky-autobuild-postprocess124
1 files changed, 124 insertions, 0 deletions
diff --git a/scripts/poky-autobuild-postprocess b/scripts/poky-autobuild-postprocess
new file mode 100755
index 0000000000..84ae25818a
--- /dev/null
+++ b/scripts/poky-autobuild-postprocess
@@ -0,0 +1,124 @@
1#!/bin/sh
2
3TARGETDIR=/srv/poky/autobuild-output
4if [ "$1" = "/srv/poky/autobuild/full-shihtzu/build" ]; then
5 DISTRO="poky"
6fi
7if [ "$1" = "/srv/poky/autobuild/full-bleeding-shihtzu/build" ]; then
8 DISTRO="poky-bleeding"
9fi
10if [ "$1" = "/srv/poky/autobuild/toolchain-shihtzu/build" ]; then
11 DISTRO="toolchain"
12fi
13if [ "$1" = "/srv/poky/autobuild/incremental-shihtzu/build" ]; then
14 DISTRO="incremental"
15fi
16
17cd $1/build/tmp/deploy/
18
19LASTREV=`tail images/svninfo | grep Revision | cut -f 2 -d ' '`
20DEST=$TARGETDIR/$DISTRO/$LASTREV/
21
22if [ -e $DEST ]; then
23 rm -Rf $DEST
24fi
25
26mkdir -p $DEST
27
28COMPRESS_FILES=()
29FILES=()
30
31if [ "x$DISTRO" = "xpoky-bleeding" ]; then
32 COMPRESS_FILES=(
33 poky-image-sato-qemuarm-*.rootfs.ext2
34 )
35
36 FILES=(
37 images/svninfo
38 images/`readlink images/zImage-akita.bin`
39 images/`readlink images/zImage-qemuarm.bin`
40 images/updater.sh.akita
41 images/poky-image-sato-akita-*.rootfs.summary.jffs2
42 images/poky-image-sato-qemuarm-*.rootfs.tar.bz2
43 images/poky-image-sato-qemuarm-*.rootfs.ext2
44 )
45fi
46
47if [ "x$DISTRO" = "xtoolchain" ]; then
48 FILES=(
49 images/svninfo
50 sdk/poky-*-toolchain-*.tar.bz2
51 )
52fi
53
54if [ "x$DISTRO" = "xpoky" ]; then
55 COMPRESS_FILES=(
56 poky-image-sdk-qemuarm-*.rootfs.ext2
57 poky-image-sdk-qemux86-*.rootfs.ext2
58 poky-image-minimal-qemuarm-*.rootfs.ext2
59 poky-image-minimal-qemux86-*.rootfs.ext2
60 poky-image-sato-cd-*.iso
61 )
62
63 FILES=(
64 images/svninfo
65 `readlink -f images/zImage-akita.bin`
66 `readlink -f images/zImage-c7x0.bin`
67 `readlink -f images/zImage-qemuarm.bin`
68 `readlink -f images/zImage-spitz.bin`
69 `readlink -f images/zImage-nokia800.bin`
70 `readlink -f images/bzImage-qemux86.bin`
71 `readlink -f images/zImage-htcuniversal.bin`
72 `readlink -f images/zImage-mx31litekit.bin`
73 `readlink -f images/zImage-mx31ads.bin`
74 `readlink -f images/zImage-nokia770.bin`
75 `readlink -f images/zImage-zylonite.bin`
76 `readlink -f images/zImage-cm-x270.bin`
77 `readlink -f images/uImage-em-x270.bin`
78 `readlink -f images/uImage-mx31phy.bin`
79 `readlink -f images/uImage-neo1973-latest.bin`
80 `readlink -f images/uImage-fic-gta01.bin`
81 images/updater.sh.akita
82 images/updater.sh.c7x0
83 images/updater.sh.spitz
84 images/gnu-tar
85 images/poky-image-sato-akita-*.rootfs.summary.jffs2
86 images/poky-image-sato-c7x0-*.rootfs.jffs2
87 images/poky-image-sato-spitz-*.rootfs.tar.gz
88 images/poky-image-sdk-qemuarm-*.rootfs.tar.bz2
89 images/poky-image-sdk-qemux86-*.rootfs.tar.bz2
90 images/poky-image-sdk-qemuarm-*.rootfs.ext2
91 images/poky-image-sdk-qemux86-*.rootfs.ext2
92 images/poky-image-minimal-qemuarm-*.rootfs.tar.bz2
93 images/poky-image-minimal-qemux86-*.rootfs.tar.bz2
94 images/poky-image-minimal-qemuarm-*.rootfs.ext2
95 images/poky-image-minimal-qemux86-*.rootfs.ext2
96 images/poky-image-sdk-spitz-*.rootfs.tar.gz
97 images/poky-image-sdk-nokia800-*.rootfs.jffs2
98 images/poky-image-sato-nokia770-*.rootfs.jffs2
99 images/poky-image-sato-zylonite-*.rootfs.jffs2
100 images/poky-image-sato-cm-x270-*.rootfs.jffs2
101 images/poky-image-sato-em-x270-*.rootfs.jffs2
102 images/poky-image-sato-mx31litekit-*.rootfs.tar.gz
103 images/poky-image-sato-htcuniversal-*.rootfs.tar.gz
104 images/poky-image-sato-fic-gta01-*.rootfs.jffs2
105 images/poky-image-sato-cd-*.iso
106 images/poky-image-sato-mx31phy-*.jffs2
107 images/poky-image-sato-mx31ads-*.jffs2
108 `readlink -f images/updater-em-x270.ext2`
109 )
110fi
111
112for FILE in ${FILES[@]}; do
113 #echo "-i $KEY $FILE $DEST"
114 cp $FILE $DEST
115done
116
117for FILE in ${COMPRESS_FILES[@]}; do
118 bzip2 $DEST/$FILE
119done
120
121touch $DEST/complete
122
123#chgrp -R backup $DEST
124chmod a+w -R $DEST