diff options
| author | Richard Purdie <richard@openedhand.com> | 2008-04-28 15:05:43 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2008-04-28 15:05:43 +0000 |
| commit | e88c64181a8ffd98c333b9ba7e5b3a522b83e65c (patch) | |
| tree | 14f12eca93fdd00e6293aedda99013c3f1b4fb7e | |
| parent | 9b0fe9f37578cb786216ea390cc584965f97c211 (diff) | |
| download | poky-e88c64181a8ffd98c333b9ba7e5b3a522b83e65c.tar.gz | |
scripts: Add extra autobuilder config
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4359 311d38ba-8fff-0310-9ca6-ca027cbcb966
| -rwxr-xr-x | scripts/poky-autobuild-postprocess | 124 | ||||
| -rw-r--r-- | scripts/pokyABConfig.py | 143 |
2 files changed, 267 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 | |||
| 3 | TARGETDIR=/srv/poky/autobuild-output | ||
| 4 | if [ "$1" = "/srv/poky/autobuild/full-shihtzu/build" ]; then | ||
| 5 | DISTRO="poky" | ||
| 6 | fi | ||
| 7 | if [ "$1" = "/srv/poky/autobuild/full-bleeding-shihtzu/build" ]; then | ||
| 8 | DISTRO="poky-bleeding" | ||
| 9 | fi | ||
| 10 | if [ "$1" = "/srv/poky/autobuild/toolchain-shihtzu/build" ]; then | ||
| 11 | DISTRO="toolchain" | ||
| 12 | fi | ||
| 13 | if [ "$1" = "/srv/poky/autobuild/incremental-shihtzu/build" ]; then | ||
| 14 | DISTRO="incremental" | ||
| 15 | fi | ||
| 16 | |||
| 17 | cd $1/build/tmp/deploy/ | ||
| 18 | |||
| 19 | LASTREV=`tail images/svninfo | grep Revision | cut -f 2 -d ' '` | ||
| 20 | DEST=$TARGETDIR/$DISTRO/$LASTREV/ | ||
| 21 | |||
| 22 | if [ -e $DEST ]; then | ||
| 23 | rm -Rf $DEST | ||
| 24 | fi | ||
| 25 | |||
| 26 | mkdir -p $DEST | ||
| 27 | |||
| 28 | COMPRESS_FILES=() | ||
| 29 | FILES=() | ||
| 30 | |||
| 31 | if [ "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 | ) | ||
| 45 | fi | ||
| 46 | |||
| 47 | if [ "x$DISTRO" = "xtoolchain" ]; then | ||
| 48 | FILES=( | ||
| 49 | images/svninfo | ||
| 50 | sdk/poky-*-toolchain-*.tar.bz2 | ||
| 51 | ) | ||
| 52 | fi | ||
| 53 | |||
| 54 | if [ "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 | ) | ||
| 110 | fi | ||
| 111 | |||
| 112 | for FILE in ${FILES[@]}; do | ||
| 113 | #echo "-i $KEY $FILE $DEST" | ||
| 114 | cp $FILE $DEST | ||
| 115 | done | ||
| 116 | |||
| 117 | for FILE in ${COMPRESS_FILES[@]}; do | ||
| 118 | bzip2 $DEST/$FILE | ||
| 119 | done | ||
| 120 | |||
| 121 | touch $DEST/complete | ||
| 122 | |||
| 123 | #chgrp -R backup $DEST | ||
| 124 | chmod a+w -R $DEST | ||
diff --git a/scripts/pokyABConfig.py b/scripts/pokyABConfig.py new file mode 100644 index 0000000000..92c0c0647d --- /dev/null +++ b/scripts/pokyABConfig.py | |||
| @@ -0,0 +1,143 @@ | |||
| 1 | |||
| 2 | import copy | ||
| 3 | |||
| 4 | builders = [] | ||
| 5 | |||
| 6 | defaultenv = {} | ||
| 7 | defaultenv['POKYLIBC'] = 'glibc' | ||
| 8 | #defaultenv['PACKAGE_CLASSES'] = 'package_ipk package_deb' | ||
| 9 | #defaultenv['BB_NUMBER_THREADS'] = '4' | ||
| 10 | #defaultenv['DL_DIR'] = '/srv/poky/sources' | ||
| 11 | |||
| 12 | def runImage(factory, machine, image): | ||
| 13 | defaultenv['MACHINE'] = machine | ||
| 14 | factory.addStep(step.ShellCommand, description=["Building", machine, image], command=["./scripts/poky-autobuild", image], env=copy.copy(defaultenv), timeout=10000) | ||
| 15 | |||
| 16 | def runComplete(factory): | ||
| 17 | factory.addStep(step.ShellCommand, description=["Mark", "complete"], command=["./scripts/poky-autobuild", "complete"], timeout=600) | ||
| 18 | |||
| 19 | def runPreamble(factory): | ||
| 20 | factory.addStep(step.ShellCommand, description=["Run", "preamble"], command=["./scripts/poky-autobuild", "preamble"], timeout=30) | ||
| 21 | |||
| 22 | |||
| 23 | from buildbot.process import step, factory | ||
| 24 | f3 = factory.BuildFactory() | ||
| 25 | f3.addStep(step.SVN, svnurl="http://svn.o-hand.com/repos/poky/trunk", mode="copy", timeout=10000) | ||
| 26 | runPreamble(f3) | ||
| 27 | runImage(f3, 'qemuarm', 'poky-image-minimal') | ||
| 28 | runImage(f3, 'qemuarm', 'poky-image-sato') | ||
| 29 | runImage(f3, 'qemuarm', 'poky-image-sdk') | ||
| 30 | runImage(f3, 'spitz', 'poky-image-minimal') | ||
| 31 | runImage(f3, 'spitz', 'poky-image-sato') | ||
| 32 | runImage(f3, 'spitz', 'poky-image-sdk') | ||
| 33 | runImage(f3, 'akita', 'poky-image-minimal') | ||
| 34 | runImage(f3, 'akita', 'poky-image-sato') | ||
| 35 | runImage(f3, 'c7x0', 'poky-image-minimal') | ||
| 36 | runImage(f3, 'c7x0', 'poky-image-sato') | ||
| 37 | runImage(f3, 'cm-x270', 'poky-image-minimal') | ||
| 38 | runImage(f3, 'cm-x270', 'poky-image-sato') | ||
| 39 | runImage(f3, 'em-x270', 'poky-image-minimal') | ||
| 40 | runImage(f3, 'em-x270', 'poky-image-sato') | ||
| 41 | runImage(f3, 'htcuniversal', 'poky-image-minimal') | ||
| 42 | runImage(f3, 'htcuniversal', 'poky-image-sato') | ||
| 43 | runImage(f3, 'mx31litekit', 'poky-image-minimal') | ||
| 44 | runImage(f3, 'mx31litekit', 'poky-image-sato') | ||
| 45 | runImage(f3, 'mx31phy', 'poky-image-minimal') | ||
| 46 | runImage(f3, 'mx31phy', 'poky-image-sato') | ||
| 47 | runImage(f3, 'mx31ads', 'poky-image-minimal') | ||
| 48 | runImage(f3, 'mx31ads', 'poky-image-sato') | ||
| 49 | runImage(f3, 'zylonite', 'poky-image-minimal') | ||
| 50 | runImage(f3, 'zylonite', 'poky-image-sato') | ||
| 51 | runImage(f3, 'nokia770', 'poky-image-minimal') | ||
| 52 | runImage(f3, 'nokia770', 'poky-image-sato') | ||
| 53 | runImage(f3, 'nokia800', 'poky-image-minimal') | ||
| 54 | runImage(f3, 'nokia800', 'poky-image-sato') | ||
| 55 | runImage(f3, 'nokia800', 'poky-image-sdk') | ||
| 56 | runImage(f3, 'fic-gta01', 'poky-image-minimal') | ||
| 57 | runImage(f3, 'fic-gta01', 'poky-image-sato') | ||
| 58 | runImage(f3, 'qemux86', 'poky-image-minimal') | ||
| 59 | runImage(f3, 'qemux86', 'poky-image-sato') | ||
| 60 | runImage(f3, 'qemux86', 'poky-image-sdk') | ||
| 61 | runImage(f3, 'bootcdx86', 'poky-image-sato-cd') | ||
| 62 | defaultenv['POKYLIBC'] = 'uclibc' | ||
| 63 | runImage(f3, 'cm-x270', 'poky-image-minimal-mtdutils') | ||
| 64 | defaultenv['POKYLIBC'] = 'glibc' | ||
| 65 | runComplete(f3) | ||
| 66 | |||
| 67 | from buildbot.process import step, factory | ||
| 68 | f4 = factory.BuildFactory() | ||
| 69 | f4.addStep(step.SVN, svnurl="http://svn.o-hand.com/repos/poky/trunk", timeout=10000) | ||
| 70 | runPreamble(f4) | ||
| 71 | f4.addStep(step.ShellCommand, description=["Cleaning", "previous", "images"], command="/bin/rm build/tmp/deploy/images/poky-image* || /bin/true", timeout=600) | ||
| 72 | f4.addStep(step.ShellCommand, description=["Cleaning", "previous", "images", "step 2"], command="/bin/rm build/tmp/deploy/images/rootfs* || /bin/true", timeout=600) | ||
| 73 | runImage(f4, 'qemuarm', 'poky-image-sdk') | ||
| 74 | runImage(f4, 'qemuarm', 'world') | ||
| 75 | runImage(f4, 'qemux86', 'poky-image-sdk') | ||
| 76 | runImage(f4, 'qemux86', 'world') | ||
| 77 | runImage(f4, 'akita', 'poky-image-sato') | ||
| 78 | runImage(f4, 'mx31phy', 'poky-image-sato') | ||
| 79 | runImage(f4, 'em-x270', 'poky-image-sato') | ||
| 80 | runImage(f4, 'fic-gta01', 'poky-image-sato') | ||
| 81 | runComplete(f4) | ||
| 82 | |||
| 83 | from buildbot.process import step, factory | ||
| 84 | f5 = factory.BuildFactory() | ||
| 85 | f5.addStep(step.SVN, svnurl="http://svn.o-hand.com/repos/poky/trunk", mode="copy", timeout=10000) | ||
| 86 | runPreamble(f5) | ||
| 87 | defaultenv['DISTRO'] = 'poky-bleeding' | ||
| 88 | runImage(f5, 'akita', 'poky-image-sato') | ||
| 89 | runImage(f5, 'qemuarm', 'poky-image-sato') | ||
| 90 | runComplete(f5) | ||
| 91 | |||
| 92 | from buildbot.process import step, factory | ||
| 93 | f6 = factory.BuildFactory() | ||
| 94 | f6.addStep(step.SVN, svnurl="http://svn.o-hand.com/repos/poky/trunk", mode="copy", timeout=10000) | ||
| 95 | runPreamble(f6) | ||
| 96 | defaultenv['DISTRO'] = 'poky' | ||
| 97 | runImage(f6, 'qemuarm', 'meta-toolchain') | ||
| 98 | runImage(f6, 'qemuarm', 'meta-toolchain-sdk') | ||
| 99 | runImage(f6, 'qemux86', 'meta-toolchain') | ||
| 100 | runImage(f6, 'qemux86', 'meta-toolchain-sdk') | ||
| 101 | runComplete(f6) | ||
| 102 | |||
| 103 | #from buildbot.process import step, factory | ||
| 104 | #f7 = factory.BuildFactory() | ||
| 105 | #f7.addStep(step.SVN, svnurl="http://svn.o-hand.com/repos/poky/trunk", timeout=10000) | ||
| 106 | #runPreamble(f7) | ||
| 107 | #defaultenv['DISTRO'] = 'poky' | ||
| 108 | #runImage(f7, 'qemuarm', 'world') | ||
| 109 | #runImage(f7, 'qemux86', 'world') | ||
| 110 | #runComplete(f7) | ||
| 111 | |||
| 112 | b3 = {'name': "poky-full-shihtzu", | ||
| 113 | 'slavename': "shihtzu-autobuild", | ||
| 114 | 'builddir': "full-shihtzu", | ||
| 115 | 'factory': f3, | ||
| 116 | } | ||
| 117 | |||
| 118 | b4 = {'name': "poky-incremental-shihtzu", | ||
| 119 | 'slavename': "shihtzu-autobuild", | ||
| 120 | 'builddir': "incremental-shihtzu", | ||
| 121 | 'factory': f4 | ||
| 122 | } | ||
| 123 | |||
| 124 | b5 = {'name': "poky-full-bleeding-shihtzu", | ||
| 125 | 'slavename': "shihtzu-autobuild", | ||
| 126 | 'builddir': "full-bleeding-shihtzu", | ||
| 127 | 'factory': f5 | ||
| 128 | } | ||
| 129 | |||
| 130 | b6 = {'name': "poky-toolchain-shihtzu", | ||
| 131 | 'slavename': "shihtzu-autobuild", | ||
| 132 | 'builddir': "toolchain-shihtzu", | ||
| 133 | 'factory': f6 | ||
| 134 | } | ||
| 135 | |||
| 136 | #b7 = {'name': "poky-incremental-world-shihtzu", | ||
| 137 | # 'slavename': "shihtzu-autobuild", | ||
| 138 | # 'builddir': "incremental-world-shihtzu", | ||
| 139 | # 'factory': f7 | ||
| 140 | # } | ||
| 141 | |||
| 142 | poky_builders = [b3, b4, b5, b6] | ||
| 143 | |||
