summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-05-09 15:27:25 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-05-09 15:28:17 +0100
commit62d37206681c3049c5ee7590cb9bce59e782ed15 (patch)
tree7b3b091e3c376b2350718c9f418020d1021a3acd /scripts
parent44a88198c129eff0aabd3fb20b999b4bef4aadde (diff)
downloadpoky-62d37206681c3049c5ee7590cb9bce59e782ed15.tar.gz
scripts: Remove autobuilder scripts
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/poky-autobuild97
-rwxr-xr-xscripts/poky-autobuild-moblin109
-rwxr-xr-xscripts/poky-autobuild-postprocess135
-rwxr-xr-xscripts/poky-autobuild-postprocess-moblin164
-rw-r--r--scripts/pokyABConfig.py172
5 files changed, 0 insertions, 677 deletions
diff --git a/scripts/poky-autobuild b/scripts/poky-autobuild
deleted file mode 100755
index a259493440..0000000000
--- a/scripts/poky-autobuild
+++ /dev/null
@@ -1,97 +0,0 @@
1#!/bin/sh
2
3# Poky Automated Build Server Enviroment Setup Script
4#
5# Copyright (C) 2006-2007 OpenedHand Ltd.
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
21TARGETDIR=/srv/poky/autobuild-output
22CURRDIR=`pwd`
23if [ "$CURRDIR" = "/srv/poky/autobuild/full-shihtzu/build" ]; then
24 ABTARGET="poky"
25elif [ "$CURRDIR" = "/srv/poky/autobuild/full-bleeding-shihtzu/build" ]; then
26 ABTARGET="poky-bleeding"
27elif [ "$CURRDIR" = "/srv/poky/autobuild/toolchain-shihtzu/build" ]; then
28 ABTARGET="toolchain"
29elif [ "$CURRDIR" = "/srv/poky/autobuild/incremental-shihtzu/build" ]; then
30 ABTARGET="incremental"
31elif [ "$CURRDIR" = "/srv/poky/autobuild/full-darwin-shihtzu/build" ]; then
32 ABTARGET="darwin"
33 if [ ! -d "$CURRDIR/meta-darwin" ]; then
34 svn co http://svn.o-hand.com/repos/poky/branches/experimental/meta-darwin $CURRDIR/meta-darwin
35 else
36 cd $CURRDIR/meta-darwin
37 svn up
38 cd $CURRDIR
39 fi
40fi
41
42if [ "xpreamble" = "x$1" ]; then
43 mkdir -p ./build/tmp/deploy/images
44 rm -f ./build/tmp/deploy/images/images-complete
45 svn info > ./build/tmp/deploy/images/svninfo
46 exit 0
47fi
48
49BDIR="build"
50. ./scripts/poky-env-internal
51POSTPROCESS=`which poky-autobuild-postprocess`
52
53if [ "xcomplete" = "x$1" ]; then
54 touch ./tmp/deploy/images/images-complete
55 chmod a+w ./tmp/deploy/images/images-complete
56 if [ "x$POSTPROCESS" != "x" ]; then
57 cd ..
58 $POSTPROCESS $ABTARGET $TARGETDIR
59 fi
60 exit 0
61fi
62
63CONFFILE="./conf/auto.conf"
64
65if [ ! -e "$CONFFILE" ]; then
66 if [ ! -d "./conf" ]; then
67 mkdir -p "./conf"
68 fi
69 echo 'PACKAGE_CLASSES = "package_ipk package_deb"' > "$CONFFILE"
70 echo 'BB_NUMBER_THREADS = "6"' >> "$CONFFILE"
71 echo 'PARALLEL_MAKE = "-j 6"' >> "$CONFFILE"
72 echo 'DL_DIR = "/srv/poky/sources"' >> "$CONFFILE"
73 echo 'INHERIT += "poky-autobuild-notifier"' >> "$CONFFILE"
74 if [ "$ABTARGET" = "darwin" ]; then
75 echo 'PACKAGE_CLASSES += "package_tar"' >> "$CONFFILE"
76 echo "BBFILES += \"$CURRDIR/meta-darwin/packages/*/*.bb\"" >> "./conf/local.conf"
77 echo 'POKYMODE = "darwin"' >> "$CONFFILE"
78 echo 'DARWINFILES = "file:///srv/poky/sources/"' >> "$CONFFILE"
79 echo 'INHERIT_INSANE = ""' >> "$CONFFILE"
80 echo "FILESPATH_append = \":$CURRDIR/meta-darwin/files\"" >> "$CONFFILE"
81 fi
82fi
83
84if [ "$ABTARGET" = "darwin" ]; then
85 BBPATH=$CURRDIR/meta-darwin:$BBPATH
86fi
87
88bitbake $@
89
90retval=$?
91
92if [ "x$POSTPROCESS" != "x" ]; then
93 cd ..
94 $POSTPROCESS $ABTARGET $TARGETDIR
95fi
96
97exit $retval
diff --git a/scripts/poky-autobuild-moblin b/scripts/poky-autobuild-moblin
deleted file mode 100755
index 025b7678b8..0000000000
--- a/scripts/poky-autobuild-moblin
+++ /dev/null
@@ -1,109 +0,0 @@
1#!/bin/sh
2
3# Poky Automated Build Server Enviroment Setup Script
4#
5# Copyright (C) 2008 Intel
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
21SRVWORKDIR=/home/rpurdie
22TARGETDIR=$SRVWORKDIR/httpd/autobuild-output
23CURRDIR=`pwd`
24if [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/full-shihtzu/build" ]; then
25 ABTARGET="poky"
26elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/full-bleeding-shihtzu/build" ]; then
27 ABTARGET="poky-bleeding"
28elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/toolchain-shihtzu/build" ]; then
29 ABTARGET="toolchain"
30elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/incremental-shihtzu/build" ]; then
31 ABTARGET="incremental"
32elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/moblin-incremental/build" ]; then
33 ABTARGET="moblin-incremental"
34elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/moblin-full/build" ]; then
35 ABTARGET="moblin-full"
36elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/moblin-uricheck/build" ]; then
37 ABTARGET="moblin-uricheck"
38elif [ "$CURRDIR" = "$SRVWORKDIR/poky-slave/full-darwin-shihtzu/build" ]; then
39 ABTARGET="darwin"
40 if [ ! -d "$CURRDIR/meta-darwin" ]; then
41 svn co http://svn.o-hand.com/repos/poky/branches/experimental/meta-darwin $CURRDIR/meta-darwin
42 else
43 cd $CURRDIR/meta-darwin
44 svn up
45 cd $CURRDIR
46 fi
47fi
48
49if [ "xpreamble" = "x$1" ]; then
50 mkdir -p ./build/tmp/deploy/images
51 rm -f ./build/tmp/deploy/images/images-complete
52 git log -1 > ./build/tmp/deploy/images/svninfo
53 exit 0
54fi
55
56BDIR="build"
57. ./scripts/poky-env-internal
58BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE"
59POSTPROCESS=`which poky-autobuild-postprocess-moblin`
60
61if [ "xcomplete" = "x$1" ]; then
62 touch ./tmp/deploy/images/images-complete
63 chmod a+w ./tmp/deploy/images/images-complete
64 if [ "x$POSTPROCESS" != "x" -a -x "$POSTPROCESS" ]; then
65 cd ..
66 $POSTPROCESS $ABTARGET $TARGETDIR $BASEDIR
67 fi
68 exit 0
69fi
70
71CONFFILE="./conf/auto.conf"
72
73if [ ! -e "$CONFFILE" ]; then
74 if [ ! -d "./conf" ]; then
75 mkdir -p "./conf"
76 fi
77 echo 'PACKAGE_CLASSES = "package_ipk package_deb package_rpm"' > "$CONFFILE"
78 echo 'BB_NUMBER_THREADS = "6"' >> "$CONFFILE"
79 echo 'PARALLEL_MAKE = "-j 6"' >> "$CONFFILE"
80 echo "DL_DIR = \"$SRVWORKDIR/httpd/sources\"" >> "$CONFFILE"
81 echo 'INHERIT += "rm_work"' >> "$CONFFILE"
82 #echo 'INHERIT += "poky-autobuild-notifier"' >> "$CONFFILE"
83 #echo 'INHERIT += "poky-moblin-autobuilder-proxy-config"' >> "$CONFFILE"
84 if [ "$ABTARGET" = "darwin" ]; then
85 echo 'PACKAGE_CLASSES += "package_tar"' >> "$CONFFILE"
86 echo "BBFILES += \"$CURRDIR/meta-darwin/packages/*/*.bb\"" >> "./conf/local.conf"
87 echo 'POKYMODE = "darwin"' >> "$CONFFILE"
88 echo 'DARWINFILES = "file:///srv/poky/sources/"' >> "$CONFFILE"
89 echo 'INHERIT_INSANE = ""' >> "$CONFFILE"
90 echo "FILESPATH_append = \":$CURRDIR/meta-darwin/files\"" >> "$CONFFILE"
91 fi
92fi
93
94BBPATH=$SRVWORKDIR/localmeta:$BBPATH
95
96if [ "$ABTARGET" = "darwin" ]; then
97 BBPATH=$CURRDIR/meta-darwin:$BBPATH
98fi
99
100bitbake $@
101
102retval=$?
103
104#if [ "x$POSTPROCESS" != "x" ]; then
105# cd ..
106# $POSTPROCESS $ABTARGET $TARGETDIR
107#fi
108
109exit $retval
diff --git a/scripts/poky-autobuild-postprocess b/scripts/poky-autobuild-postprocess
deleted file mode 100755
index cbe5203fb5..0000000000
--- a/scripts/poky-autobuild-postprocess
+++ /dev/null
@@ -1,135 +0,0 @@
1#!/bin/sh
2
3# Poky Automated Build Server Post Processing Script
4#
5# Copyright (C) 2006-2007 OpenedHand Ltd.
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
21ABTARGET=$1
22TARGETDIR=$2
23
24cd ./build/tmp/deploy/
25
26LASTREV=`tail images/svninfo | grep Revision | cut -f 2 -d ' '`
27DEST=$TARGETDIR/$ABTARGET/$LASTREV/
28
29mkdir -p $DEST
30
31COMPRESS_FILES=()
32FILES=()
33
34if [ "x$ABTARGET" = "xpoky-bleeding" ]; then
35 COMPRESS_FILES=(
36 poky-image-sato-qemuarm-*.rootfs.ext2
37 )
38
39 FILES=(
40 svninfo
41 `readlink images/zImage-akita.bin`
42 `readlink images/zImage-qemuarm.bin`
43 updater.sh.akita
44 poky-image-sato-akita-*.rootfs.summary.jffs2
45 poky-image-sato-qemuarm-*.rootfs.tar.bz2
46 )
47fi
48
49if [ "x$ABTARGET" = "xtoolchain" ]; then
50 FILES=(
51 svninfo
52 poky-*-toolchain-*.tar.bz2
53 )
54fi
55
56if [ "x$ABTARGET" = "xpoky" ]; then
57 COMPRESS_FILES=(
58 poky-image-sdk-qemuarm-*.rootfs.ext2
59 poky-image-sdk-qemux86-*.rootfs.ext2
60 poky-image-minimal-qemuarm-*.rootfs.ext2
61 poky-image-minimal-qemux86-*.rootfs.ext2
62 poky-image-sato-cd-*.iso
63 )
64
65 FILES=(
66 svninfo
67 `readlink images/zImage-akita.bin`
68 `readlink images/zImage-c7x0.bin`
69 `readlink images/zImage-qemuarm.bin`
70 `readlink images/zImage-spitz.bin`
71 `readlink images/zImage-nokia800.bin`
72 `readlink images/bzImage-qemux86.bin`
73 `readlink images/bzImage-netbook.bin`
74 `readlink images/zImage-htcuniversal.bin`
75 `readlink images/zImage-mx31litekit.bin`
76 `readlink images/zImage-mx31ads.bin`
77 `readlink images/zImage-nokia770.bin`
78 `readlink images/zImage-zylonite.bin`
79 `readlink images/zImage-cm-x270.bin`
80 `readlink images/uImage-em-x270.bin`
81 `readlink images/uImage-mx31phy.bin`
82 `readlink images/uImage-neo1973-latest.bin`
83 `readlink images/uImage-om-gta01.bin`
84 `readlink images/uImage-om-gta02.bin`
85 updater.sh.akita
86 updater.sh.c7x0
87 updater.sh.spitz
88 gnu-tar
89 poky-image-live-netbook-*.hddimg
90 poky-image-minimal-live-netbook-*.hddimg
91 poky-image-sato-akita-*.rootfs.summary.jffs2
92 poky-image-sato-c7x0-*.rootfs.jffs2
93 poky-image-sato-spitz-*.rootfs.tar.gz
94 poky-image-sdk-qemuarm-*.rootfs.tar.bz2
95 poky-image-sdk-qemux86-*.rootfs.tar.bz2
96 poky-image-minimal-qemuarm-*.rootfs.tar.bz2
97 poky-image-minimal-qemux86-*.rootfs.tar.bz2
98 poky-image-sdk-spitz-*.rootfs.tar.gz
99 poky-image-sdk-nokia800-*.rootfs.jffs2
100 poky-image-sato-nokia770-*.rootfs.jffs2
101 poky-image-sato-zylonite-*.rootfs.jffs2
102 poky-image-sato-cm-x270-*.rootfs.jffs2
103 poky-image-sato-em-x270-*.rootfs.jffs2
104 poky-image-sato-mx31litekit-*.rootfs.tar.gz
105 poky-image-sato-htcuniversal-*.rootfs.tar.gz
106 poky-image-sato-om-gta01-*.rootfs.jffs2
107 poky-image-sato-om-gta02-*.rootfs.jffs2
108 poky-image-sato-mx31phy-*.jffs2
109 poky-image-sato-mx31ads-*.jffs2
110 `readlink images/updater-em-x270.ext2`
111 )
112fi
113
114for FILE in ${FILES[@]}; do
115 for FILE2 in `find -name $FILE`; do
116 if [ ! -e "$DEST/$FILE2" ]; then
117 cp $FILE2 $DEST
118 fi
119 done
120done
121
122for FILE in ${COMPRESS_FILES[@]}; do
123 for FILE2 in `find -name $FILE`; do
124 if [ ! -e "$DEST/$FILE2.bz2" ]; then
125 bzip2 $FILE2
126 cp $FILE2.bz2 $DEST
127 fi
128 done
129done
130
131if [ -e ./images/images-complete ]; then
132 touch $DEST/complete
133fi
134chmod a+w -R $DEST 2> /dev/null || true
135
diff --git a/scripts/poky-autobuild-postprocess-moblin b/scripts/poky-autobuild-postprocess-moblin
deleted file mode 100755
index 4038055baf..0000000000
--- a/scripts/poky-autobuild-postprocess-moblin
+++ /dev/null
@@ -1,164 +0,0 @@
1#!/bin/sh
2
3# Poky Automated Build Server Post Processing Script
4#
5# Copyright (C) 2006-2007 OpenedHand Ltd.
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; if not, write to the Free Software
19# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
21ABTARGET=$1
22TARGETDIR=$2
23
24cd ./build/tmp/deploy/
25
26DEST=$TARGETDIR/$ABTARGET/
27BASE=`date +%Y%m%d`
28REV=1
29
30while [ -d "$DEST$FOO$BASE-$REV" ]
31do
32 REV=`expr $REV + 1`
33done
34
35DEST="$DEST$FOO$BASE-$REV"
36mkdir -p $DEST
37
38COMPRESS_FILES=()
39FILES=()
40
41if [ "x$ABTARGET" = "xpoky-bleeding" ]; then
42 COMPRESS_FILES=(
43 poky-image-sato-qemuarm-*.rootfs.ext2
44 )
45
46 FILES=(
47 gitinfo
48 `readlink images/zImage-akita.bin`
49 `readlink images/zImage-qemuarm.bin`
50 updater.sh.akita
51 poky-image-sato-akita-*.rootfs.summary.jffs2
52 poky-image-sato-qemuarm-*.rootfs.tar.bz2
53 )
54fi
55
56if [ "x$ABTARGET" = "xtoolchain" ]; then
57 FILES=(
58 gitinfo
59 poky-*-toolchain-*.tar.bz2
60 )
61fi
62
63if [ "x$ABTARGET" = "xpoky" ]; then
64 COMPRESS_FILES=(
65 poky-image-sdk-qemuarm-*.rootfs.ext2
66 poky-image-sdk-qemux86-*.rootfs.ext2
67 poky-image-minimal-qemuarm-*.rootfs.ext2
68 poky-image-minimal-qemux86-*.rootfs.ext2
69 poky-image-sato-cd-*.iso
70 )
71
72 FILES=(
73 gitinfo
74 `readlink images/zImage-akita.bin`
75 `readlink images/zImage-c7x0.bin`
76 `readlink images/zImage-qemuarm.bin`
77 `readlink images/zImage-spitz.bin`
78 `readlink images/zImage-nokia800.bin`
79 `readlink images/bzImage-qemux86.bin`
80 `readlink images/bzImage-netbook.bin`
81 `readlink images/zImage-htcuniversal.bin`
82 `readlink images/zImage-mx31litekit.bin`
83 `readlink images/zImage-mx31ads.bin`
84 `readlink images/zImage-nokia770.bin`
85 `readlink images/zImage-zylonite.bin`
86 `readlink images/zImage-cm-x270.bin`
87 `readlink images/uImage-em-x270.bin`
88 `readlink images/uImage-mx31phy.bin`
89 `readlink images/uImage-neo1973-latest.bin`
90 `readlink images/uImage-om-gta01.bin`
91 `readlink images/uImage-om-gta02.bin`
92 updater.sh.akita
93 updater.sh.c7x0
94 updater.sh.spitz
95 gnu-tar
96 poky-image-live-netbook-*.hddimg
97 poky-image-minimal-live-netbook-*.hddimg
98 poky-image-sato-akita-*.rootfs.summary.jffs2
99 poky-image-sato-c7x0-*.rootfs.jffs2
100 poky-image-sato-spitz-*.rootfs.tar.gz
101 poky-image-sdk-qemuarm-*.rootfs.tar.bz2
102 poky-image-sdk-qemux86-*.rootfs.tar.bz2
103 poky-image-minimal-qemuarm-*.rootfs.tar.bz2
104 poky-image-minimal-qemux86-*.rootfs.tar.bz2
105 poky-image-sdk-spitz-*.rootfs.tar.gz
106 poky-image-sdk-nokia800-*.rootfs.jffs2
107 poky-image-sato-nokia770-*.rootfs.jffs2
108 poky-image-sato-zylonite-*.rootfs.jffs2
109 poky-image-sato-cm-x270-*.rootfs.jffs2
110 poky-image-sato-em-x270-*.rootfs.jffs2
111 poky-image-sato-mx31litekit-*.rootfs.tar.gz
112 poky-image-sato-htcuniversal-*.rootfs.tar.gz
113 poky-image-sato-om-gta01-*.rootfs.jffs2
114 poky-image-sato-om-gta02-*.rootfs.jffs2
115 poky-image-sato-mx31phy-*.jffs2
116 poky-image-sato-mx31ads-*.jffs2
117 `readlink images/updater-em-x270.ext2`
118 )
119fi
120
121if [ "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/bzImage-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 moblin-*toolchain*tar.bz2
139 )
140fi
141
142
143for FILE in ${FILES[@]}; do
144 for FILE2 in `find -name $FILE`; do
145 if [ ! -e "$DEST/$FILE2" ]; then
146 cp $FILE2 $DEST
147 fi
148 done
149done
150
151for FILE in ${COMPRESS_FILES[@]}; do
152 for FILE2 in `find -name $FILE`; do
153 if [ ! -e "$DEST/$FILE2.bz2" ]; then
154 bzip2 $FILE2
155 cp $FILE2.bz2 $DEST
156 fi
157 done
158done
159
160if [ -e ./images/images-complete ]; then
161 touch $DEST/complete
162fi
163chmod a+w -R $DEST 2> /dev/null || true
164
diff --git a/scripts/pokyABConfig.py b/scripts/pokyABConfig.py
deleted file mode 100644
index 27fe5e6354..0000000000
--- a/scripts/pokyABConfig.py
+++ /dev/null
@@ -1,172 +0,0 @@
1
2import copy
3
4builders = []
5
6defaultenv = {}
7defaultenv['POKYLIBC'] = 'glibc'
8#defaultenv['PACKAGE_CLASSES'] = 'package_ipk package_deb'
9#defaultenv['BB_NUMBER_THREADS'] = '4'
10#defaultenv['DL_DIR'] = '/srv/poky/sources'
11
12def 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
16def runComplete(factory):
17 factory.addStep(step.ShellCommand, description=["Mark", "complete"], command=["./scripts/poky-autobuild", "complete"], timeout=600)
18
19def runPreamble(factory):
20 factory.addStep(step.ShellCommand, description=["Run", "preamble"], command=["./scripts/poky-autobuild", "preamble"], timeout=30)
21
22
23from buildbot.process import step, factory
24f3 = factory.BuildFactory()
25f3.addStep(step.SVN, svnurl="http://svn.o-hand.com/repos/poky/trunk", mode="copy", timeout=10000)
26runPreamble(f3)
27runImage(f3, 'qemuarm', 'poky-image-minimal')
28runImage(f3, 'qemuarm', 'poky-image-sato')
29runImage(f3, 'qemuarm', 'poky-image-sdk')
30runImage(f3, 'spitz', 'poky-image-minimal')
31runImage(f3, 'spitz', 'poky-image-sato')
32runImage(f3, 'spitz', 'poky-image-sdk')
33runImage(f3, 'akita', 'poky-image-minimal')
34runImage(f3, 'akita', 'poky-image-sato')
35runImage(f3, 'c7x0', 'poky-image-minimal')
36runImage(f3, 'c7x0', 'poky-image-sato')
37runImage(f3, 'cm-x270', 'poky-image-minimal')
38runImage(f3, 'cm-x270', 'poky-image-sato')
39runImage(f3, 'em-x270', 'poky-image-minimal')
40runImage(f3, 'em-x270', 'poky-image-sato')
41runImage(f3, 'htcuniversal', 'poky-image-minimal')
42runImage(f3, 'htcuniversal', 'poky-image-sato')
43runImage(f3, 'mx31litekit', 'poky-image-minimal')
44runImage(f3, 'mx31litekit', 'poky-image-sato')
45runImage(f3, 'mx31phy', 'poky-image-minimal')
46runImage(f3, 'mx31phy', 'poky-image-sato')
47runImage(f3, 'mx31ads', 'poky-image-minimal')
48runImage(f3, 'mx31ads', 'poky-image-sato')
49runImage(f3, 'zylonite', 'poky-image-minimal')
50runImage(f3, 'zylonite', 'poky-image-sato')
51runImage(f3, 'nokia770', 'poky-image-minimal')
52runImage(f3, 'nokia770', 'poky-image-sato')
53runImage(f3, 'nokia800', 'poky-image-minimal')
54runImage(f3, 'nokia800', 'poky-image-sato')
55runImage(f3, 'nokia800', 'poky-image-sdk')
56runImage(f3, 'om-gta01', 'poky-image-minimal')
57runImage(f3, 'om-gta01', 'poky-image-sato')
58runImage(f3, 'om-gta02', 'poky-image-minimal')
59runImage(f3, 'om-gta02', 'poky-image-sato')
60runImage(f3, 'omap-3430ldp', 'poky-image-minimal')
61runImage(f3, 'omap-3430ldp', 'poky-image-sato')
62runImage(f3, 'beagleboard', 'poky-image-minimal')
63runImage(f3, 'beagleboard', 'poky-image-sato')
64runImage(f3, 'qemux86', 'poky-image-minimal')
65runImage(f3, 'qemux86', 'poky-image-sato')
66runImage(f3, 'qemux86', 'poky-image-sdk')
67runImage(f3, 'netbook', 'poky-image-minimal')
68runImage(f3, 'netbook', 'poky-image-minimal-live')
69runImage(f3, 'netbook', 'poky-image-sato')
70runImage(f3, 'netbook', 'poky-image-sato-live')
71runImage(f3, 'netbook', 'poky-image-live')
72runImage(f3, 'netbook', 'poky-image-sdk')
73runImage(f3, 'bootcdx86', 'poky-image-sato-cd')
74defaultenv['POKYLIBC'] = 'uclibc'
75runImage(f3, 'cm-x270', 'poky-image-minimal-mtdutils')
76defaultenv['POKYLIBC'] = 'glibc'
77runComplete(f3)
78
79from buildbot.process import step, factory
80f4 = factory.BuildFactory()
81f4.addStep(step.SVN, svnurl="http://svn.o-hand.com/repos/poky/trunk", timeout=10000)
82runPreamble(f4)
83f4.addStep(step.ShellCommand, description=["Cleaning", "previous", "images"], command="/bin/rm build/tmp/deploy/images/poky-image* || /bin/true", timeout=600)
84f4.addStep(step.ShellCommand, description=["Cleaning", "previous", "images", "step 2"], command="/bin/rm build/tmp/deploy/images/rootfs* || /bin/true", timeout=600)
85runImage(f4, 'qemuarm', 'poky-image-sdk')
86runImage(f4, 'qemuarm', 'world')
87runImage(f4, 'qemux86', 'poky-image-sdk')
88runImage(f4, 'qemux86', 'world')
89runImage(f4, 'omap-3430ldp', 'poky-image-sato')
90runImage(f4, 'netbook', 'poky-image-sato-live')
91runComplete(f4)
92
93from buildbot.process import step, factory
94f5 = factory.BuildFactory()
95f5.addStep(step.SVN, svnurl="http://svn.o-hand.com/repos/poky/trunk", mode="copy", timeout=10000)
96runPreamble(f5)
97defaultenv['DISTRO'] = 'poky-bleeding'
98runImage(f5, 'akita', 'poky-image-sato')
99runImage(f5, 'qemuarm', 'poky-image-sato')
100runComplete(f5)
101
102from buildbot.process import step, factory
103f6 = factory.BuildFactory()
104f6.addStep(step.SVN, svnurl="http://svn.o-hand.com/repos/poky/trunk", mode="copy", timeout=10000)
105runPreamble(f6)
106defaultenv['DISTRO'] = 'poky'
107runImage(f6, 'qemuarm', 'meta-toolchain')
108runImage(f6, 'qemuarm', 'meta-toolchain-sdk')
109runImage(f6, 'qemux86', 'meta-toolchain')
110runImage(f6, 'qemux86', 'meta-toolchain-sdk')
111runImage(f6, 'qemuarm', 'world -c checkuriall')
112runComplete(f6)
113
114from buildbot.process import step, factory
115f7 = factory.BuildFactory()
116f7.addStep(step.SVN, svnurl="http://svn.o-hand.com/repos/poky/trunk", mode="copy", timeout=10000)
117runPreamble(f7)
118defaultenv['DISTRO'] = 'poky'
119defaultenv['POKYLIBC'] = 'dummy'
120runImage(f7, 'ipodtouch', 'meta-clutter')
121runImage(f7, 'ipodtouch', 'meta-toolchain')
122runImage(f7, 'ipodtouch', 'meta-toolchain-sdk')
123defaultenv['POKYLIBC'] = 'glibc'
124runComplete(f7)
125
126#from buildbot.process import step, factory
127#f7 = factory.BuildFactory()
128#f7.addStep(step.SVN, svnurl="http://svn.o-hand.com/repos/poky/trunk", timeout=10000)
129#runPreamble(f7)
130#defaultenv['DISTRO'] = 'poky'
131#runImage(f7, 'qemuarm', 'world')
132#runImage(f7, 'qemux86', 'world')
133#runComplete(f7)
134
135b3 = {'name': "poky-full-shihtzu",
136 'slavename': "shihtzu-autobuild",
137 'builddir': "full-shihtzu",
138 'factory': f3,
139 }
140
141b4 = {'name': "poky-incremental-shihtzu",
142 'slavename': "shihtzu-autobuild",
143 'builddir': "incremental-shihtzu",
144 'factory': f4
145 }
146
147b5 = {'name': "poky-full-bleeding-shihtzu",
148 'slavename': "shihtzu-autobuild",
149 'builddir': "full-bleeding-shihtzu",
150 'factory': f5
151 }
152
153b6 = {'name': "poky-toolchain-shihtzu",
154 'slavename': "shihtzu-autobuild",
155 'builddir': "toolchain-shihtzu",
156 'factory': f6
157 }
158
159b7 = {'name': "poky-full-darwin-shihtzu",
160 'slavename': "shihtzu-autobuild",
161 'builddir': "full-darwin-shihtzu",
162 'factory': f7
163 }
164
165#b7 = {'name': "poky-incremental-world-shihtzu",
166# 'slavename': "shihtzu-autobuild",
167# 'builddir': "incremental-world-shihtzu",
168# 'factory': f7
169# }
170
171poky_builders = [b3, b4, b5, b6, b7]
172