scripts: Add extra autobuilder config

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4359 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie 2008-04-28 15:05:43 +00:00
parent 9b0fe9f375
commit e88c64181a
2 changed files with 267 additions and 0 deletions

View File

@ -0,0 +1,124 @@
#!/bin/sh
TARGETDIR=/srv/poky/autobuild-output
if [ "$1" = "/srv/poky/autobuild/full-shihtzu/build" ]; then
DISTRO="poky"
fi
if [ "$1" = "/srv/poky/autobuild/full-bleeding-shihtzu/build" ]; then
DISTRO="poky-bleeding"
fi
if [ "$1" = "/srv/poky/autobuild/toolchain-shihtzu/build" ]; then
DISTRO="toolchain"
fi
if [ "$1" = "/srv/poky/autobuild/incremental-shihtzu/build" ]; then
DISTRO="incremental"
fi
cd $1/build/tmp/deploy/
LASTREV=`tail images/svninfo | grep Revision | cut -f 2 -d ' '`
DEST=$TARGETDIR/$DISTRO/$LASTREV/
if [ -e $DEST ]; then
rm -Rf $DEST
fi
mkdir -p $DEST
COMPRESS_FILES=()
FILES=()
if [ "x$DISTRO" = "xpoky-bleeding" ]; then
COMPRESS_FILES=(
poky-image-sato-qemuarm-*.rootfs.ext2
)
FILES=(
images/svninfo
images/`readlink images/zImage-akita.bin`
images/`readlink images/zImage-qemuarm.bin`
images/updater.sh.akita
images/poky-image-sato-akita-*.rootfs.summary.jffs2
images/poky-image-sato-qemuarm-*.rootfs.tar.bz2
images/poky-image-sato-qemuarm-*.rootfs.ext2
)
fi
if [ "x$DISTRO" = "xtoolchain" ]; then
FILES=(
images/svninfo
sdk/poky-*-toolchain-*.tar.bz2
)
fi
if [ "x$DISTRO" = "xpoky" ]; then
COMPRESS_FILES=(
poky-image-sdk-qemuarm-*.rootfs.ext2
poky-image-sdk-qemux86-*.rootfs.ext2
poky-image-minimal-qemuarm-*.rootfs.ext2
poky-image-minimal-qemux86-*.rootfs.ext2
poky-image-sato-cd-*.iso
)
FILES=(
images/svninfo
`readlink -f images/zImage-akita.bin`
`readlink -f images/zImage-c7x0.bin`
`readlink -f images/zImage-qemuarm.bin`
`readlink -f images/zImage-spitz.bin`
`readlink -f images/zImage-nokia800.bin`
`readlink -f images/bzImage-qemux86.bin`
`readlink -f images/zImage-htcuniversal.bin`
`readlink -f images/zImage-mx31litekit.bin`
`readlink -f images/zImage-mx31ads.bin`
`readlink -f images/zImage-nokia770.bin`
`readlink -f images/zImage-zylonite.bin`
`readlink -f images/zImage-cm-x270.bin`
`readlink -f images/uImage-em-x270.bin`
`readlink -f images/uImage-mx31phy.bin`
`readlink -f images/uImage-neo1973-latest.bin`
`readlink -f images/uImage-fic-gta01.bin`
images/updater.sh.akita
images/updater.sh.c7x0
images/updater.sh.spitz
images/gnu-tar
images/poky-image-sato-akita-*.rootfs.summary.jffs2
images/poky-image-sato-c7x0-*.rootfs.jffs2
images/poky-image-sato-spitz-*.rootfs.tar.gz
images/poky-image-sdk-qemuarm-*.rootfs.tar.bz2
images/poky-image-sdk-qemux86-*.rootfs.tar.bz2
images/poky-image-sdk-qemuarm-*.rootfs.ext2
images/poky-image-sdk-qemux86-*.rootfs.ext2
images/poky-image-minimal-qemuarm-*.rootfs.tar.bz2
images/poky-image-minimal-qemux86-*.rootfs.tar.bz2
images/poky-image-minimal-qemuarm-*.rootfs.ext2
images/poky-image-minimal-qemux86-*.rootfs.ext2
images/poky-image-sdk-spitz-*.rootfs.tar.gz
images/poky-image-sdk-nokia800-*.rootfs.jffs2
images/poky-image-sato-nokia770-*.rootfs.jffs2
images/poky-image-sato-zylonite-*.rootfs.jffs2
images/poky-image-sato-cm-x270-*.rootfs.jffs2
images/poky-image-sato-em-x270-*.rootfs.jffs2
images/poky-image-sato-mx31litekit-*.rootfs.tar.gz
images/poky-image-sato-htcuniversal-*.rootfs.tar.gz
images/poky-image-sato-fic-gta01-*.rootfs.jffs2
images/poky-image-sato-cd-*.iso
images/poky-image-sato-mx31phy-*.jffs2
images/poky-image-sato-mx31ads-*.jffs2
`readlink -f images/updater-em-x270.ext2`
)
fi
for FILE in ${FILES[@]}; do
#echo "-i $KEY $FILE $DEST"
cp $FILE $DEST
done
for FILE in ${COMPRESS_FILES[@]}; do
bzip2 $DEST/$FILE
done
touch $DEST/complete
#chgrp -R backup $DEST
chmod a+w -R $DEST

143
scripts/pokyABConfig.py Normal file
View File

@ -0,0 +1,143 @@
import copy
builders = []
defaultenv = {}
defaultenv['POKYLIBC'] = 'glibc'
#defaultenv['PACKAGE_CLASSES'] = 'package_ipk package_deb'
#defaultenv['BB_NUMBER_THREADS'] = '4'
#defaultenv['DL_DIR'] = '/srv/poky/sources'
def runImage(factory, machine, image):
defaultenv['MACHINE'] = machine
factory.addStep(step.ShellCommand, description=["Building", machine, image], command=["./scripts/poky-autobuild", image], env=copy.copy(defaultenv), timeout=10000)
def runComplete(factory):
factory.addStep(step.ShellCommand, description=["Mark", "complete"], command=["./scripts/poky-autobuild", "complete"], timeout=600)
def runPreamble(factory):
factory.addStep(step.ShellCommand, description=["Run", "preamble"], command=["./scripts/poky-autobuild", "preamble"], timeout=30)
from buildbot.process import step, factory
f3 = factory.BuildFactory()
f3.addStep(step.SVN, svnurl="http://svn.o-hand.com/repos/poky/trunk", mode="copy", timeout=10000)
runPreamble(f3)
runImage(f3, 'qemuarm', 'poky-image-minimal')
runImage(f3, 'qemuarm', 'poky-image-sato')
runImage(f3, 'qemuarm', 'poky-image-sdk')
runImage(f3, 'spitz', 'poky-image-minimal')
runImage(f3, 'spitz', 'poky-image-sato')
runImage(f3, 'spitz', 'poky-image-sdk')
runImage(f3, 'akita', 'poky-image-minimal')
runImage(f3, 'akita', 'poky-image-sato')
runImage(f3, 'c7x0', 'poky-image-minimal')
runImage(f3, 'c7x0', 'poky-image-sato')
runImage(f3, 'cm-x270', 'poky-image-minimal')
runImage(f3, 'cm-x270', 'poky-image-sato')
runImage(f3, 'em-x270', 'poky-image-minimal')
runImage(f3, 'em-x270', 'poky-image-sato')
runImage(f3, 'htcuniversal', 'poky-image-minimal')
runImage(f3, 'htcuniversal', 'poky-image-sato')
runImage(f3, 'mx31litekit', 'poky-image-minimal')
runImage(f3, 'mx31litekit', 'poky-image-sato')
runImage(f3, 'mx31phy', 'poky-image-minimal')
runImage(f3, 'mx31phy', 'poky-image-sato')
runImage(f3, 'mx31ads', 'poky-image-minimal')
runImage(f3, 'mx31ads', 'poky-image-sato')
runImage(f3, 'zylonite', 'poky-image-minimal')
runImage(f3, 'zylonite', 'poky-image-sato')
runImage(f3, 'nokia770', 'poky-image-minimal')
runImage(f3, 'nokia770', 'poky-image-sato')
runImage(f3, 'nokia800', 'poky-image-minimal')
runImage(f3, 'nokia800', 'poky-image-sato')
runImage(f3, 'nokia800', 'poky-image-sdk')
runImage(f3, 'fic-gta01', 'poky-image-minimal')
runImage(f3, 'fic-gta01', 'poky-image-sato')
runImage(f3, 'qemux86', 'poky-image-minimal')
runImage(f3, 'qemux86', 'poky-image-sato')
runImage(f3, 'qemux86', 'poky-image-sdk')
runImage(f3, 'bootcdx86', 'poky-image-sato-cd')
defaultenv['POKYLIBC'] = 'uclibc'
runImage(f3, 'cm-x270', 'poky-image-minimal-mtdutils')
defaultenv['POKYLIBC'] = 'glibc'
runComplete(f3)
from buildbot.process import step, factory
f4 = factory.BuildFactory()
f4.addStep(step.SVN, svnurl="http://svn.o-hand.com/repos/poky/trunk", timeout=10000)
runPreamble(f4)
f4.addStep(step.ShellCommand, description=["Cleaning", "previous", "images"], command="/bin/rm build/tmp/deploy/images/poky-image* || /bin/true", timeout=600)
f4.addStep(step.ShellCommand, description=["Cleaning", "previous", "images", "step 2"], command="/bin/rm build/tmp/deploy/images/rootfs* || /bin/true", timeout=600)
runImage(f4, 'qemuarm', 'poky-image-sdk')
runImage(f4, 'qemuarm', 'world')
runImage(f4, 'qemux86', 'poky-image-sdk')
runImage(f4, 'qemux86', 'world')
runImage(f4, 'akita', 'poky-image-sato')
runImage(f4, 'mx31phy', 'poky-image-sato')
runImage(f4, 'em-x270', 'poky-image-sato')
runImage(f4, 'fic-gta01', 'poky-image-sato')
runComplete(f4)
from buildbot.process import step, factory
f5 = factory.BuildFactory()
f5.addStep(step.SVN, svnurl="http://svn.o-hand.com/repos/poky/trunk", mode="copy", timeout=10000)
runPreamble(f5)
defaultenv['DISTRO'] = 'poky-bleeding'
runImage(f5, 'akita', 'poky-image-sato')
runImage(f5, 'qemuarm', 'poky-image-sato')
runComplete(f5)
from buildbot.process import step, factory
f6 = factory.BuildFactory()
f6.addStep(step.SVN, svnurl="http://svn.o-hand.com/repos/poky/trunk", mode="copy", timeout=10000)
runPreamble(f6)
defaultenv['DISTRO'] = 'poky'
runImage(f6, 'qemuarm', 'meta-toolchain')
runImage(f6, 'qemuarm', 'meta-toolchain-sdk')
runImage(f6, 'qemux86', 'meta-toolchain')
runImage(f6, 'qemux86', 'meta-toolchain-sdk')
runComplete(f6)
#from buildbot.process import step, factory
#f7 = factory.BuildFactory()
#f7.addStep(step.SVN, svnurl="http://svn.o-hand.com/repos/poky/trunk", timeout=10000)
#runPreamble(f7)
#defaultenv['DISTRO'] = 'poky'
#runImage(f7, 'qemuarm', 'world')
#runImage(f7, 'qemux86', 'world')
#runComplete(f7)
b3 = {'name': "poky-full-shihtzu",
'slavename': "shihtzu-autobuild",
'builddir': "full-shihtzu",
'factory': f3,
}
b4 = {'name': "poky-incremental-shihtzu",
'slavename': "shihtzu-autobuild",
'builddir': "incremental-shihtzu",
'factory': f4
}
b5 = {'name': "poky-full-bleeding-shihtzu",
'slavename': "shihtzu-autobuild",
'builddir': "full-bleeding-shihtzu",
'factory': f5
}
b6 = {'name': "poky-toolchain-shihtzu",
'slavename': "shihtzu-autobuild",
'builddir': "toolchain-shihtzu",
'factory': f6
}
#b7 = {'name': "poky-incremental-world-shihtzu",
# 'slavename': "shihtzu-autobuild",
# 'builddir': "incremental-world-shihtzu",
# 'factory': f7
# }
poky_builders = [b3, b4, b5, b6]