Merge lp:~linaro-infrastructure/cbuild/cbuild-lava into lp:cbuild

Proposed by Stevan Radaković
Status: Rejected
Rejected by: Данило Шеган
Proposed branch: lp:~linaro-infrastructure/cbuild/cbuild-lava
Merge into: lp:cbuild
Diff against target: 468 lines (+362/-3)
17 files modified
README (+3/-1)
lib/fetch.mk (+2/-1)
lib/gcc.mk (+3/-1)
slaves/lava-build/README (+64/-0)
slaves/lava-build/cbuild-gcc-mockbuild.yaml (+49/-0)
slaves/lava-build/cbuild-gcc-panda-mockbuild.json (+28/-0)
slaves/lava-build/cbuild-gcc-panda.json (+22/-0)
slaves/lava-build/cbuild-gcc-panda.json.prebuilt (+21/-0)
slaves/lava-build/cbuild-gcc-panda.json.scheduler (+29/-0)
slaves/lava-build/cbuild-gcc-prod.yaml (+23/-0)
slaves/lava-build/cbuild-gcc-qemu-mockbuild.json (+27/-0)
slaves/lava-build/cbuild-gcc-qemu.json (+21/-0)
slaves/lava-build/cbuild-gcc.yaml (+23/-0)
slaves/lava-build/init.sh (+7/-0)
slaves/lava-build/local.mk (+5/-0)
slaves/lava-build/make-build-img.sh (+20/-0)
slaves/lava-build/workaround-multiarch.sh (+15/-0)
To merge this branch: bzr merge lp:~linaro-infrastructure/cbuild/cbuild-lava
Reviewer Review Type Date Requested Status
Linaro Infrastructure Pending
Review via email: mp+142340@code.launchpad.net

Description of the change

This branch contains all the changes on the CBuild build scripts for the CBuild/LAVA integration.
Materials in the branch include: changes to CBuild makefiles to make them more suitable for development/testing (like, more verbose output), scripts to bootstrap local devel environment, LAVA job definition and scripts, instructions and notes.

To post a comment you must log in.
Revision history for this message
Milo Casagrande (milo) wrote :

I'm going through the code, also to get to know it, one small suggestion:

431 +ROOTFS_URL=http://releases.linaro.org/12.02/ubuntu/oneiric-images/nano/linaro-o-nano-tar-20120221-0.tar.gz
432 +ROOTFS=$(basename $ROOTFS_URL)
433 +HWPACK_URL=http://releases.linaro.org/12.02/ubuntu/oneiric-images/nano/hwpack_linaro-lt-panda_20120221-1_armel_supported.tar.gz
434 +HWPACK=$(basename $HWPACK_URL)

Why not extract also the release number (12.10) and the date (20120221) and set two variables for those? Might be easier in the future to just update that and might give a little bit of meaning to the URLs.

Revision history for this message
Milo Casagrande (milo) wrote :

I saw also that there are commented parts that are still included: should those be cleaned up as well or do we want to keep them for reference?

Revision history for this message
Stevan Radaković (stevanr) wrote :

> I'm going through the code, also to get to know it, one small suggestion:
>
> 431 +ROOTFS_URL=http://releases.linaro.org/12.02/ubuntu/oneiric-
> images/nano/linaro-o-nano-tar-20120221-0.tar.gz
> 432 +ROOTFS=$(basename $ROOTFS_URL)
> 433 +HWPACK_URL=http://releases.linaro.org/12.02/ubuntu/oneiric-
> images/nano/hwpack_linaro-lt-panda_20120221-1_armel_supported.tar.gz
> 434 +HWPACK=$(basename $HWPACK_URL)
>
> Why not extract also the release number (12.10) and the date (20120221) and
> set two variables for those? Might be easier in the future to just update that
> and might give a little bit of meaning to the URLs.

Good suggestion. Please feel free to add the variables :)

Revision history for this message
Stevan Radaković (stevanr) wrote :

> I saw also that there are commented parts that are still included: should
> those be cleaned up as well or do we want to keep them for reference?

Yes, let's keep them in for now, and clean up in the last iteration before handing over the MP's to tcwg team.

424. By Milo Casagrande

Defined two variables, for release and date, to be used in URLs.

Revision history for this message
Milo Casagrande (milo) wrote :

On Wed, Jan 9, 2013 at 4:35 PM, Stevan Radaković
<email address hidden> wrote:
>
> Good suggestion. Please feel free to add the variables :)

That's done.

--
Milo Casagrande | Infrastructure Team
Linaro.org <www.linaro.org> │ Open source software for ARM SoCs

Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

Sorry guys, I should have looked thru this earlier to avoid doing unneeded work on this...

This was a first repo to be worked on, and by the end of milestone of 1, there was just too many hacks/support tools so I decided to commit it as is to share with James. Most of this content is clearly not suitable for merging upstream. Basicly, there're 2 upstream-useful changes in here:

1. lava build slave support config/utils in slaves/lava-build/ (local.mk, workaround-multiarch.sh , but not most of other changes) - these clearly should land in upstream
2. cbuild makefiles patches to make build process more verbose - these wouldn't be needed for perfect-running production, but we're far from it, instead we're getting build lockups now, so it's hell to debug stuff w/o these.

So, it probably makes sense to start from scratch and extract just needed changes to a fresh branch. Let me do this (I'll inlude "2." changes based on the above). The rest of stuff still may be useful, but not in upstream (leaving it in this branch is ok; probably doesn't need to spend time on refactoring it).

Revision history for this message
Paul Sokolovsky (pfalcon) wrote :

Ok, new branch is at https://code.launchpad.net/~linaro-infrastructure/cbuild/cbuild-lava2

Rest of branches were updated to use it, lava-panda-mock was tested to work ok.

Going to close this review and submit new one for TCWG.

Unmerged revisions

424. By Milo Casagrande

Defined two variables, for release and date, to be used in URLs.

423. By Stevan Radaković

Merge from upstream.

422. By Paul Sokolovsky

[merge] Merge from upstream.

421. By Paul Sokolovsky

Wrap line to easy reading/copy-pasting.

420. By Paul Sokolovsky

Typo fix.

419. By Paul Sokolovsky

Add jobdefs for mock build, for local and prod LAVA.

418. By Paul Sokolovsky

Autoselect mock tarball location for QEMU/real builds.

This is done by checking for Beagle hw and not thus not 100% reliable.

417. By Paul Sokolovsky

Re-enable error handling.

416. By Paul Sokolovsky

More debugging.

415. By Paul Sokolovsky

Shuffle to make it "pass" on production.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'README'
2--- README 2012-11-11 21:10:10 +0000
3+++ README 2013-01-09 16:07:23 +0000
4@@ -20,7 +20,9 @@
5 * libnet-ssleay-perl
6
7 Or, as one line:
8- sudo apt-get install time python-irclib wget gnupg ccrypt rsync coreutils sendemail bzr xdelta3 xz-utils unzip openssh-client libio-socket-ssl-perl libnet-ssleay-perl
9+ sudo apt-get install time python-irclib wget gnupg ccrypt rsync \
10+ coreutils sendemail bzr xdelta3 xz-utils unzip openssh-client \
11+ libio-socket-ssl-perl libnet-ssleay-perl
12
13 Build dependencies:
14 * gcc
15
16=== modified file 'lib/fetch.mk'
17--- lib/fetch.mk 2012-12-11 02:53:15 +0000
18+++ lib/fetch.mk 2013-01-09 16:07:23 +0000
19@@ -16,7 +16,8 @@
20 fetch: $(F)
21
22 %.tar:
23- $(MAKE) $(SILENT) -f $(THIS) $@-spawn 2>&1 | grep -v '^make\['
24+# $(MAKE) $(SILENT) -f $(THIS) $@-spawn 2>&1 | grep -v '^make\['
25+ $(MAKE) $(SILENT) -f $(THIS) $@-spawn
26
27 %.tar.xz.cpt %.tar.bz2.cpt::
28 $(MAKE) $(SILENT) -f $(THIS) $@-get-top 2>&1 | grep -v '^make\['
29
30=== modified file 'lib/gcc.mk'
31--- lib/gcc.mk 2012-12-16 23:57:18 +0000
32+++ lib/gcc.mk 2013-01-09 16:07:23 +0000
33@@ -80,7 +80,9 @@
34 (cd $(VBUILD)/build && ../../gcc-*4.*/configure $(CONFIGURE_FLAGS)) >> $(STEP).txt 2>&1
35
36 build:
37- make -k $(PARALLEL) -C $(VBUILD)/build $(BUILDTARGET) $(GCC_BUILD_FLAGS) > $(STEP).txt 2>&1
38+# make -k $(PARALLEL) -C $(VBUILD)/build $(BUILDTARGET) $(GCC_BUILD_FLAGS) > $(STEP).txt 2>&1
39+ make -k $(PARALLEL) -C $(VBUILD)/build $(BUILDTARGET) $(GCC_BUILD_FLAGS) 2>&1 | tee $(STEP).txt
40+
41
42 post-archive:
43 make -f $(LIBDIR)/publish.mk SUITE=$(B) binary-only
44
45=== added directory 'slaves/lava-build'
46=== added file 'slaves/lava-build/README'
47--- slaves/lava-build/README 1970-01-01 00:00:00 +0000
48+++ slaves/lava-build/README 2013-01-09 16:07:23 +0000
49@@ -0,0 +1,64 @@
50+1. Install lava-dispatcher per instructions at
51+http://lava-dispatcher.readthedocs.org/en/latest/standalonesetup.html
52+except use "LAVA_IMAGE_TMPDIR = /tmp/lava".
53+
54+Update .venv/etc/lava-dispatcher/lava-dispatcher.conf so LAVA_SERVER_IP
55+matches the IP address of your development machine.
56+
57+2. Configure Pandaboard for lava-dispatcher per instructions at
58+http://lava.readthedocs.org/en/latest/lava-image-creation.html ,
59+except that use following partitions sizes to generate master image:
60+
61+./lava-create-master --rootfs-size 5G --userdata-size 1G panda
62+
63+(at least 8Gb card is required).
64+
65+Note that as we are working in a virtualenv, the path to panda01.conf is:
66+.venv/etc/lava-dispatcher/devices/panda01.conf
67+
68+3. Create build image:
69+
70+In the directory lava-build-slave/slaves/lava-build
71+./make-build-img.sh
72+
73+3. Run "init.sh" in this directory to setup directory structure.
74+
75+4. Set up a web server, serving files in /tmp/lava such that the variable
76+LAVA_IMAGE_URL in .venv/etc/lava-dispatcher/lava-dispatcher.conf points to
77+the running server.
78+
79+For example, you can run a Node.js static server:
80+-------------------------------------------------------------------------------
81+var http = require('http'),
82+ static = require('node-static');
83+
84+// Create a node-static server instance to serve static files.
85+var file = new(static.Server)('/tmp/lava');
86+
87+require('http').createServer(function (request, response)
88+{
89+ request.addListener('end', function ()
90+ {
91+ // Serve files!
92+ file.serve(request, response);
93+ });
94+
95+}).listen(10101);
96+-------------------------------------------------------------------------------
97+And set: LAVA_IMAGE_URL = http://%(LAVA_SERVER_IP)s:10101/
98+
99+Or set up Apache:
100+-------------------------------------------------------------------------------
101+Alias /images/tmp /tmp/lava
102+<Directory /tmp/lava>
103+ Options Indexes FollowSymLinks
104+</Directory>
105+-------------------------------------------------------------------------------
106+And set: LAVA_IMAGE_URL = http://%(LAVA_SERVER_IP)s/images/tmp
107+
108+5. Switch back to lava-dispatcher, and as root (with virtualenv active) run:
109+
110+This will not work using sudo, you need a root prompt and to then re-source
111+the virtualenv set up scripts.
112+
113+./lava-dispatch /tmp/lava/cbuild-gcc-panda.json.prebuilt
114
115=== added file 'slaves/lava-build/cbuild-gcc-mockbuild.yaml'
116--- slaves/lava-build/cbuild-gcc-mockbuild.yaml 1970-01-01 00:00:00 +0000
117+++ slaves/lava-build/cbuild-gcc-mockbuild.yaml 2013-01-09 16:07:23 +0000
118@@ -0,0 +1,49 @@
119+metadata:
120+ format: "Lava-Test Test Definition 1.0"
121+ name: "cbuild-gcc"
122+
123+install:
124+ bzr-repos:
125+ - lp:~linaro-infrastructure/cbuild/lava-build-slave
126+ steps:
127+ - echo In Install
128+ #- "apt-get update"
129+ #- "apt-get install -y build-essential gdb lsb-release time python-irclib wget gnupg ccrypt rsync coreutils sendemail bzr xdelta3 xz-utils unzip openssh-client libio-socket-ssl-perl libnet-ssleay-perl"
130+ #- "apt-get install -y build-essential gdb lsb-release time wget coreutils bzr xz-utils unzip openssh-client"
131+ # LAVA Debugging
132+ #- apt-get install -y openssh-server
133+ # - "apt-get build-dep -y gcc gcc-4.5 gdb eglibc"
134+ #- "apt-get build-dep -y gcc gcc-4.5"
135+ #- "cd lava-build-slave/slaves/lava-build"
136+ #- "./workaround-multiarch.sh"
137+ - cd lava-build-slave/slaves/lava-build
138+ - apt-get install -y wget
139+ - if grep -q Beagle /proc/cpuinfo; then
140+ - " # if it's supposed QEMU, download from local server"
141+ - url="http://10.0.2.2/images/tmp/gcc-linaro-4.6-2012.09-results.tar.gz"
142+ - else
143+ - url="http://people.linaro.org/~pfalcon/cbuild-lava/gcc-linaro-4.6-2012.09-results.tar.gz"
144+ - fi
145+ - wget -q -O- $url | gzip -d -c | tar -x
146+run:
147+ steps:
148+ - set -x
149+# - set +e
150+ - echo In run
151+ - "cd lava-build-slave/slaves/lava-build"
152+ #- "make -f ../../lib/build.mk final/gcc-linaro-4.6-2012.09.stamp"
153+ - cat `which lava-test-case`
154+ - lava-test-case gcc-configure --result pass
155+ - lava-test-case gcc-build --result pass
156+ - lava-test-case gcc-install --result pass
157+ - lava-test-case cbuild-global --result pass
158+# - echo "some log" >log.txt
159+ - lava-test-case-attach gcc-configure results/build/*/logs/*/gcc-configure.txt
160+ - lava-test-case-attach gcc-build results/build/*/logs/*/gcc-build.txt
161+ - lava-test-case-attach gcc-install results/build/*/logs/*/gcc-install.txt
162+ - lava-test-case-attach cbuild-global results/build/*/logs/*/gcc-build.time
163+ - lava-test-case-attach cbuild-global results/build/*/logs/*/gcc-archive.time
164+ - lava-test-case-attach cbuild-global results/build/*/logs/*/host.txt
165+ - lava-test-case-attach cbuild-global results/build/*/logs/*/md5sums.txt
166+ - lava-test-case-attach cbuild-global results/build/*/logs/*/finished.txt
167+ - echo after recording testcase
168
169=== added file 'slaves/lava-build/cbuild-gcc-panda-mockbuild.json'
170--- slaves/lava-build/cbuild-gcc-panda-mockbuild.json 1970-01-01 00:00:00 +0000
171+++ slaves/lava-build/cbuild-gcc-panda-mockbuild.json 2013-01-09 16:07:23 +0000
172@@ -0,0 +1,28 @@
173+{
174+ "timeout": 1800,
175+ "job_name": "cbuild-test",
176+ "device_type": "panda",
177+ "actions": [
178+ {
179+ "command": "deploy_linaro_image",
180+ "parameters": {
181+ "rootfs": "http://releases.linaro.org/12.02/ubuntu/oneiric-images/nano/linaro-o-nano-tar-20120221-0.tar.gz",
182+ "hwpack": "http://releases.linaro.org/12.02/ubuntu/oneiric-images/nano/hwpack_linaro-lt-panda_20120221-1_armel_supported.tar.gz"
183+ }
184+ },
185+ {
186+ "command": "lava_test_shell",
187+ "parameters": {
188+ "testdef_urls": ["http://bazaar.launchpad.net/~linaro-infrastructure/cbuild/lava-build-slave/download/head:/cbuildgccmockbuild.y-20121203143817-4nl23ftkflqqeu9d-1/cbuild-gcc-mockbuild.yaml"],
189+ "timeout": 36000
190+ }
191+ },
192+ {
193+ "command": "submit_results",
194+ "parameters": {
195+ "stream": "/anonymous/cbuild/",
196+ "server": "http://validation.linaro.org/lava-server/RPC2/"
197+ }
198+ }
199+ ]
200+}
201
202=== added file 'slaves/lava-build/cbuild-gcc-panda.json'
203--- slaves/lava-build/cbuild-gcc-panda.json 1970-01-01 00:00:00 +0000
204+++ slaves/lava-build/cbuild-gcc-panda.json 2013-01-09 16:07:23 +0000
205@@ -0,0 +1,22 @@
206+{
207+ "timeout": 1800,
208+ "job_name": "cbuild-test",
209+ "target" : "panda01",
210+ "actions": [
211+ {
212+ "command": "deploy_linaro_image",
213+ "parameters": {
214+ "rootfs": "http://releases.linaro.org/12.02/ubuntu/oneiric-images/nano/linaro-o-nano-tar-20120221-0.tar.gz",
215+ "hwpack": "http://releases.linaro.org/12.02/ubuntu/oneiric-images/nano/hwpack_linaro-lt-panda_20120221-1_armel_supported.tar.gz"
216+ }
217+ },
218+ {
219+ "command": "lava_test_shell",
220+ "parameters": {
221+ "testdef_urls": ["file:///tmp/lava/cbuild-gcc.yaml"],
222+ "timeout": 36000
223+ }
224+ }
225+ ]
226+}
227+
228
229=== added file 'slaves/lava-build/cbuild-gcc-panda.json.prebuilt'
230--- slaves/lava-build/cbuild-gcc-panda.json.prebuilt 1970-01-01 00:00:00 +0000
231+++ slaves/lava-build/cbuild-gcc-panda.json.prebuilt 2013-01-09 16:07:23 +0000
232@@ -0,0 +1,21 @@
233+{
234+ "timeout": 1800,
235+ "job_name": "cbuild-test",
236+ "target" : "panda01",
237+ "actions": [
238+ {
239+ "command": "deploy_linaro_image",
240+ "parameters": {
241+ "image": "file:///tmp/lava/cbuild.img.gz"
242+ }
243+ },
244+ {
245+ "command": "lava_test_shell",
246+ "parameters": {
247+ "testdef_urls": ["file:///tmp/lava/cbuild-gcc.yaml"],
248+ "timeout": 36000
249+ }
250+ }
251+ ]
252+}
253+
254
255=== added file 'slaves/lava-build/cbuild-gcc-panda.json.scheduler'
256--- slaves/lava-build/cbuild-gcc-panda.json.scheduler 1970-01-01 00:00:00 +0000
257+++ slaves/lava-build/cbuild-gcc-panda.json.scheduler 2013-01-09 16:07:23 +0000
258@@ -0,0 +1,29 @@
259+{
260+ "timeout": 1800,
261+ "job_name": "cbuild-test",
262+ "device_type": "panda",
263+ "_target" : "panda01",
264+ "actions": [
265+ {
266+ "command": "deploy_linaro_image",
267+ "parameters": {
268+ "rootfs": "http://releases.linaro.org/12.02/ubuntu/oneiric-images/nano/linaro-o-nano-tar-20120221-0.tar.gz",
269+ "hwpack": "http://releases.linaro.org/12.02/ubuntu/oneiric-images/nano/hwpack_linaro-lt-panda_20120221-1_armel_supported.tar.gz"
270+ }
271+ },
272+ {
273+ "command": "lava_test_shell",
274+ "parameters": {
275+ "testdef_urls": ["http://bazaar.launchpad.net/~linaro-infrastructure/cbuild/lava-build-slave/download/head:/cbuildgcc.yaml-20121119214634-8f2eh0mv446fgtmj-4/cbuild-gcc.yaml"],
276+ "timeout": 36000
277+ }
278+ },
279+ {
280+ "command": "submit_results",
281+ "parameters": {
282+ "stream": "/anonymous/cbuild/",
283+ "server": "http://validation.linaro.org/lava-server/RPC2/"
284+ }
285+ }
286+ ]
287+}
288
289=== added file 'slaves/lava-build/cbuild-gcc-prod.yaml'
290--- slaves/lava-build/cbuild-gcc-prod.yaml 1970-01-01 00:00:00 +0000
291+++ slaves/lava-build/cbuild-gcc-prod.yaml 2013-01-09 16:07:23 +0000
292@@ -0,0 +1,23 @@
293+metadata:
294+ format: "Lava-Test Test Definition 1.0"
295+ name: "cbuild-gcc"
296+
297+install:
298+ bzr-repos:
299+ - lp:~linaro-infrastructure/cbuild/lava-build-slave
300+ steps:
301+ #- "apt-get update"
302+ #- "apt-get install -y build-essential gdb lsb-release time python-irclib wget gnupg ccrypt rsync coreutils sendemail bzr xdelta3 xz-utils unzip openssh-client libio-socket-ssl-perl libnet-ssleay-perl"
303+ #- "apt-get install -y build-essential gdb lsb-release time wget coreutils bzr xz-utils unzip openssh-client"
304+ # LAVA Debugging
305+ - apt-get install -y openssh-server
306+ # - "apt-get build-dep -y gcc gcc-4.5 gdb eglibc"
307+ #- "apt-get build-dep -y gcc gcc-4.5"
308+ #- "cd lava-build-slave/slaves/lava-build"
309+ #- "./workaround-multiarch.sh"
310+run:
311+ steps:
312+ - "cd lava-build-slave/slaves/lava-build"
313+ - "make -f ../../lib/build.mk final/gcc-linaro-4.6-2012.09.stamp"
314+
315+parse:
316
317=== added file 'slaves/lava-build/cbuild-gcc-qemu-mockbuild.json'
318--- slaves/lava-build/cbuild-gcc-qemu-mockbuild.json 1970-01-01 00:00:00 +0000
319+++ slaves/lava-build/cbuild-gcc-qemu-mockbuild.json 2013-01-09 16:07:23 +0000
320@@ -0,0 +1,27 @@
321+{
322+ "timeout": 1800,
323+ "job_name": "cbuild-test",
324+ "device_type": "qemu",
325+ "actions": [
326+ {
327+ "command": "deploy_linaro_image",
328+ "parameters": {
329+ "image": "file:///tmp/lava/beagle-nano.img.gz"
330+ }
331+ },
332+ {
333+ "command": "lava_test_shell",
334+ "parameters": {
335+ "testdef_urls": ["file:///tmp/lava/cbuild-gcc-mockbuild.yaml"],
336+ "timeout": 36000
337+ }
338+ },
339+ {
340+ "command": "submit_results",
341+ "parameters": {
342+ "stream": "/anonymous/cbuild/",
343+ "server": "http://localhost/cbuild/RPC2/"
344+ }
345+ }
346+ ]
347+}
348
349=== added file 'slaves/lava-build/cbuild-gcc-qemu.json'
350--- slaves/lava-build/cbuild-gcc-qemu.json 1970-01-01 00:00:00 +0000
351+++ slaves/lava-build/cbuild-gcc-qemu.json 2013-01-09 16:07:23 +0000
352@@ -0,0 +1,21 @@
353+{
354+ "timeout": 1800,
355+ "job_name": "qemutest",
356+ "target" : "qemu01",
357+ "actions": [
358+ {
359+ "command": "deploy_linaro_image",
360+ "parameters": {
361+ "image": "file:///home/pfalcon/devel/linaro/lava/beagle-nano_.img"
362+ }
363+ },
364+ {
365+ "command": "lava_test_shell",
366+ "parameters": {
367+ "testdef_urls": ["file:///tmp/lava/cbuild-gcc.yaml"],
368+ "timeout": 36000
369+ }
370+ }
371+ ]
372+}
373+
374
375=== added file 'slaves/lava-build/cbuild-gcc.yaml'
376--- slaves/lava-build/cbuild-gcc.yaml 1970-01-01 00:00:00 +0000
377+++ slaves/lava-build/cbuild-gcc.yaml 2013-01-09 16:07:23 +0000
378@@ -0,0 +1,23 @@
379+metadata:
380+ format: "Lava-Test Test Definition 1.0"
381+ name: "cbuild-gcc"
382+
383+install:
384+ bzr-repos:
385+ - lp:~linaro-infrastructure/cbuild/lava-build-slave
386+ steps:
387+ - "apt-get update"
388+ #- "apt-get install -y build-essential gdb lsb-release time python-irclib wget gnupg ccrypt rsync coreutils sendemail bzr xdelta3 xz-utils unzip openssh-client libio-socket-ssl-perl libnet-ssleay-perl"
389+ - "apt-get install -y build-essential gdb lsb-release time wget coreutils bzr xz-utils unzip openssh-client"
390+ # LAVA Debugging
391+ - apt-get install -y openssh-server
392+ # - "apt-get build-dep -y gcc gcc-4.5 gdb eglibc"
393+ - "apt-get build-dep -y gcc gcc-4.5"
394+ - "cd lava-build-slave/slaves/lava-build"
395+ - "./workaround-multiarch.sh"
396+run:
397+ steps:
398+ - "cd lava-build-slave/slaves/lava-build"
399+ - "make -f ../../lib/build.mk final/gcc-linaro-4.6-2012.09.stamp"
400+
401+parse:
402
403=== added file 'slaves/lava-build/init.sh'
404--- slaves/lava-build/init.sh 1970-01-01 00:00:00 +0000
405+++ slaves/lava-build/init.sh 2013-01-09 16:07:23 +0000
406@@ -0,0 +1,7 @@
407+#!/bin/sh
408+set -x
409+
410+mkdir -p /tmp/lava
411+
412+ln -s $PWD/cbuild-gcc* /tmp/lava
413+ln -s $PWD/cbuild.img.gz /tmp/lava
414
415=== added file 'slaves/lava-build/local.mk'
416--- slaves/lava-build/local.mk 1970-01-01 00:00:00 +0000
417+++ slaves/lava-build/local.mk 2013-01-09 16:07:23 +0000
418@@ -0,0 +1,5 @@
419+TOPDIR=../..
420+SCHEDULER_API=http://localhost/dev/null
421+PUBLISH_URL=local
422+NOTIFY=paul.sokolovsky@linaro.org
423+PING_STEP=true
424
425=== added file 'slaves/lava-build/make-build-img.sh'
426--- slaves/lava-build/make-build-img.sh 1970-01-01 00:00:00 +0000
427+++ slaves/lava-build/make-build-img.sh 2013-01-09 16:07:23 +0000
428@@ -0,0 +1,20 @@
429+#!/bin/sh
430+
431+RELEASE='12.02'
432+RELEASE_DATE='20120221'
433+
434+ROOTFS_URL=http://releases.linaro.org/$RELEASE/ubuntu/oneiric-images/nano/linaro-o-nano-tar-$RELEASE_DATE-0.tar.gz
435+ROOTFS=$(basename $ROOTFS_URL)
436+HWPACK_URL=http://releases.linaro.org/$RELEASE/ubuntu/oneiric-images/nano/hwpack_linaro-lt-panda_$RELEASE_DATE-1_armel_supported.tar.gz
437+HWPACK=$(basename $HWPACK_URL)
438+
439+wget -nc $ROOTFS_URL
440+wget -nc $HWPACK_URL
441+
442+linaro-media-create --hwpack-force-yes --dev panda \
443+--image-file cbuild.img \
444+--binary $ROOTFS \
445+--hwpack $HWPACK \
446+--image-size 3G
447+
448+gzip -9 cbuild.img
449
450=== added file 'slaves/lava-build/workaround-multiarch.sh'
451--- slaves/lava-build/workaround-multiarch.sh 1970-01-01 00:00:00 +0000
452+++ slaves/lava-build/workaround-multiarch.sh 2013-01-09 16:07:23 +0000
453@@ -0,0 +1,15 @@
454+#!/bin/bash
455+#
456+# See https://wiki.linaro.org/MichaelHope/Sandbox/MultiarchWorkarounds
457+#
458+
459+multi=`dpkg-architecture -qDEB_HOST_MULTIARCH`
460+
461+cd /usr/lib
462+ls $multi/*crt*.o | xargs -L 1 ln -sf
463+
464+cd /usr/include
465+for i in asm gnu bits sys; do
466+ rm -rf $i
467+ ln -sf $multi/$i
468+done

Subscribers

People subscribed via source and target branches