summaryrefslogtreecommitdiffstats
path: root/scripts/pokyABConfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/pokyABConfig.py')
-rw-r--r--scripts/pokyABConfig.py143
1 files changed, 143 insertions, 0 deletions
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
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, 'fic-gta01', 'poky-image-minimal')
57runImage(f3, 'fic-gta01', 'poky-image-sato')
58runImage(f3, 'qemux86', 'poky-image-minimal')
59runImage(f3, 'qemux86', 'poky-image-sato')
60runImage(f3, 'qemux86', 'poky-image-sdk')
61runImage(f3, 'bootcdx86', 'poky-image-sato-cd')
62defaultenv['POKYLIBC'] = 'uclibc'
63runImage(f3, 'cm-x270', 'poky-image-minimal-mtdutils')
64defaultenv['POKYLIBC'] = 'glibc'
65runComplete(f3)
66
67from buildbot.process import step, factory
68f4 = factory.BuildFactory()
69f4.addStep(step.SVN, svnurl="http://svn.o-hand.com/repos/poky/trunk", timeout=10000)
70runPreamble(f4)
71f4.addStep(step.ShellCommand, description=["Cleaning", "previous", "images"], command="/bin/rm build/tmp/deploy/images/poky-image* || /bin/true", timeout=600)
72f4.addStep(step.ShellCommand, description=["Cleaning", "previous", "images", "step 2"], command="/bin/rm build/tmp/deploy/images/rootfs* || /bin/true", timeout=600)
73runImage(f4, 'qemuarm', 'poky-image-sdk')
74runImage(f4, 'qemuarm', 'world')
75runImage(f4, 'qemux86', 'poky-image-sdk')
76runImage(f4, 'qemux86', 'world')
77runImage(f4, 'akita', 'poky-image-sato')
78runImage(f4, 'mx31phy', 'poky-image-sato')
79runImage(f4, 'em-x270', 'poky-image-sato')
80runImage(f4, 'fic-gta01', 'poky-image-sato')
81runComplete(f4)
82
83from buildbot.process import step, factory
84f5 = factory.BuildFactory()
85f5.addStep(step.SVN, svnurl="http://svn.o-hand.com/repos/poky/trunk", mode="copy", timeout=10000)
86runPreamble(f5)
87defaultenv['DISTRO'] = 'poky-bleeding'
88runImage(f5, 'akita', 'poky-image-sato')
89runImage(f5, 'qemuarm', 'poky-image-sato')
90runComplete(f5)
91
92from buildbot.process import step, factory
93f6 = factory.BuildFactory()
94f6.addStep(step.SVN, svnurl="http://svn.o-hand.com/repos/poky/trunk", mode="copy", timeout=10000)
95runPreamble(f6)
96defaultenv['DISTRO'] = 'poky'
97runImage(f6, 'qemuarm', 'meta-toolchain')
98runImage(f6, 'qemuarm', 'meta-toolchain-sdk')
99runImage(f6, 'qemux86', 'meta-toolchain')
100runImage(f6, 'qemux86', 'meta-toolchain-sdk')
101runComplete(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
112b3 = {'name': "poky-full-shihtzu",
113 'slavename': "shihtzu-autobuild",
114 'builddir': "full-shihtzu",
115 'factory': f3,
116 }
117
118b4 = {'name': "poky-incremental-shihtzu",
119 'slavename': "shihtzu-autobuild",
120 'builddir': "incremental-shihtzu",
121 'factory': f4
122 }
123
124b5 = {'name': "poky-full-bleeding-shihtzu",
125 'slavename': "shihtzu-autobuild",
126 'builddir': "full-bleeding-shihtzu",
127 'factory': f5
128 }
129
130b6 = {'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
142poky_builders = [b3, b4, b5, b6]
143