blob: b9f3abd0b950157b35bd38146d416c9f07473f93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
|
- job:
name: ubuntu-armhf-hwpacks
project-type: matrix
defaults: global
logrotate:
daysToKeep: 30
numToKeep: 30
properties:
- authorization:
anonymous:
- job-read
- job-extended-read
linaro:
- job-build
- job-cancel
disabled: false
node: build
display-name: 'Linaro Ubuntu hardware packs (armhf)'
axes:
- axis:
type: user-defined
name: hwpack
values:
- arndale
- arndale-be
- arndale-octa
- beaglebone
- lsk-arndale-be
- lsk-panda-be
- lsk-vexpress
- lsk-vexpress-be
- lsk-vexpress64
- lsk-vexpress64-be
- lt-vexpress64
- panda
- panda-be
- vexpress
- vexpress64
- vexpress64-be
- axis:
type: slave
name: label
values:
- build
execution-strategy:
sequential: true
touchstone:
expr: 'hwpack=="arndale"'
wrappers:
- timestamps
- matrix-tie-parent:
node: build
builders:
- linaro-publish-token
- copyartifact:
project: package-and-publish-linux-linaro
filter: 'out/*.deb'
target: artifacts
flatten: true
optional: true
- copyartifact:
project: package-and-publish-linux-linaro-stable
filter: 'out/*.deb'
target: artifacts
flatten: true
optional: true
- shell: |
#!/bin/bash
trap cleanup_exit INT TERM EXIT
cleanup_exit()
{
cd ${WORKSPACE}
sudo umount builddir
rm -rf artifacts
}
dpkg -s linaro-image-tools |grep '^Version'
rm -rf out *.txt
test -d builddir || mkdir builddir
sudo mount -t tmpfs -o size=2G tmpfs builddir
cd builddir
VERSION=`date +%Y%m%d`-${BUILD_NUMBER}
case "${hwpack}" in
arndale|arndale-octa|beaglebone|highbank|lsk-vexpress|midway|origen|panda|snowball|vexpress)
git clone git://git.linaro.org/hwpack/${hwpack}.git
linaro-hwpack-create --debug ${hwpack}/hwpacks/linaro-${hwpack} ${VERSION}
mv hwpack_linaro-${hwpack}* ${WORKSPACE}
mv *.txt ${WORKSPACE}
;;
lsk-vexpress64|lsk-vexpress64-be|vexpress64|vexpress64-be|lt-vexpress64)
git clone git://git.linaro.org/hwpack/vexpress64-rtsm.git
linaro-hwpack-create --debug vexpress64-rtsm/hwpacks/linaro-vexpress64-rtsm ${VERSION}
mv hwpack_linaro-vexpress64-rtsm_${VERSION}_arm64_supported.manifest.txt ${WORKSPACE}/hwpack_linaro-arm64_supported.manifest.txt
mv hwpack_linaro-vexpress64-rtsm_${VERSION}_arm64_supported.tar.gz ${WORKSPACE}/hwpack_linaro_arm64_supported.tar.gz
mv *.txt ${WORKSPACE}
;;
esac
cd ${WORKSPACE}
echo "distribution=ubuntu" > remote_directory_parameters
case "${hwpack}" in
lsk-arndale-be|arndale-be)
find artifacts -type f -name "linux-*-linaro-${hwpack}_*.deb" -exec mv -t ${WORKSPACE} {} +
rm -f hwpack_linaro_armhf_supported.tar.gz
export HWPACK_BUILD_NUMBER=`wget -q --no-check-certificate -O - https://ci.linaro.org/jenkins/job/ubuntu-armhf-hwpacks/hwpack=arndale,label=build/lastSuccessfulBuild/buildNumber`
export HWPACK_BUILD_TIMESTAMP=`wget -q --no-check-certificate -O - https://ci.linaro.org/jenkins/job/ubuntu-armhf-hwpacks/hwpack=arndale,label=build/lastSuccessfulBuild/buildTimestamp?format=yyyyMMdd`
export HWPACK_BUILD_URL="http://snapshots.linaro.org/ubuntu/hwpacks/arndale/${HWPACK_BUILD_NUMBER}/hwpack_linaro-arndale_${HWPACK_BUILD_TIMESTAMP}-${HWPACK_BUILD_NUMBER}_armhf_supported.tar.gz"
wget --progress=dot -e dotbytes=2M ${HWPACK_BUILD_URL} -O hwpack_linaro_armhf_supported.tar.gz
linaro-hwpack-replace -t hwpack_linaro_armhf_supported.tar.gz -p `ls linux-image-*-linaro-${hwpack}_*.deb` -r linux-image -d -i
linaro-hwpack-replace -t hwpack_linaro_armhf_supported.tar.gz -p `ls linux-headers-*-linaro-${hwpack}_*.deb` -r linux-headers -d -i
mv hwpack_linaro_armhf_supported.tar.gz ${WORKSPACE}/hwpack_linaro-${hwpack}_${VERSION}_armhf_supported.tar.gz
mv hwpack_linaro_armhf_supported.manifest.txt ${WORKSPACE}/hwpack_linaro-${hwpack}_${VERSION}_armhf_supported.manifest.txt
echo "distribution=openembedded" > remote_directory_parameters
;;
lsk-panda-be|panda-be)
[ "${hwpack}" = "panda-be" ] && omap=omap-be || true
[ "${hwpack}" = "lsk-panda-be" ] && omap=lsk-omap-be || true
find artifacts -type f -name "linux-*-linaro-${omap}_*.deb" -exec mv -t ${WORKSPACE} {} +
rm -f hwpack_linaro_armhf_supported.tar.gz
export HWPACK_BUILD_NUMBER=`wget -q --no-check-certificate -O - https://ci.linaro.org/jenkins/job/ubuntu-armhf-hwpacks/hwpack=panda,label=build/lastSuccessfulBuild/buildNumber`
export HWPACK_BUILD_TIMESTAMP=`wget -q --no-check-certificate -O - https://ci.linaro.org/jenkins/job/ubuntu-armhf-hwpacks/hwpack=panda,label=build/lastSuccessfulBuild/buildTimestamp?format=yyyyMMdd`
export HWPACK_BUILD_URL="http://snapshots.linaro.org/ubuntu/hwpacks/panda/${HWPACK_BUILD_NUMBER}/hwpack_linaro-panda_${HWPACK_BUILD_TIMESTAMP}-${HWPACK_BUILD_NUMBER}_armhf_supported.tar.gz"
wget --progress=dot -e dotbytes=2M ${HWPACK_BUILD_URL} -O hwpack_linaro_armhf_supported.tar.gz
linaro-hwpack-replace -t hwpack_linaro_armhf_supported.tar.gz -p `ls linux-image-*-linaro-${omap}_*.deb` -r linux-image -d -i
linaro-hwpack-replace -t hwpack_linaro_armhf_supported.tar.gz -p `ls linux-headers-*-linaro-${omap}_*.deb` -r linux-headers -d -i
mv hwpack_linaro_armhf_supported.tar.gz ${WORKSPACE}/hwpack_linaro-${hwpack}_${VERSION}_armhf_supported.tar.gz
mv hwpack_linaro_armhf_supported.manifest.txt ${WORKSPACE}/hwpack_linaro-${hwpack}_${VERSION}_armhf_supported.manifest.txt
echo "distribution=openembedded" > remote_directory_parameters
;;
lsk-vexpress-be|vexpress-be)
find artifacts -type f -name "linux-*-linaro-${hwpack}_*.deb" -exec mv -t ${WORKSPACE} {} +
rm -f hwpack_linaro_armhf_supported.tar.gz
export HWPACK_BUILD_NUMBER=`wget -q --no-check-certificate -O - https://ci.linaro.org/jenkins/job/ubuntu-armhf-hwpacks/hwpack=vexpress,label=build/lastSuccessfulBuild/buildNumber`
export HWPACK_BUILD_TIMESTAMP=`wget -q --no-check-certificate -O - https://ci.linaro.org/jenkins/job/ubuntu-armhf-hwpacks/hwpack=vexpress,label=build/lastSuccessfulBuild/buildTimestamp?format=yyyyMMdd`
export HWPACK_BUILD_URL="http://snapshots.linaro.org/ubuntu/hwpacks/vexpress/${HWPACK_BUILD_NUMBER}/hwpack_linaro-vexpress_${HWPACK_BUILD_TIMESTAMP}-${HWPACK_BUILD_NUMBER}_armhf_supported.tar.gz"
wget --progress=dot -e dotbytes=2M ${HWPACK_BUILD_URL} -O hwpack_linaro_armhf_supported.tar.gz
linaro-hwpack-replace -t hwpack_linaro_armhf_supported.tar.gz -p `ls linux-image-*-linaro-${hwpack}_*.deb` -r linux-image -d -i
linaro-hwpack-replace -t hwpack_linaro_armhf_supported.tar.gz -p `ls linux-headers-*-linaro-${hwpack}_*.deb` -r linux-headers -d -i
mv hwpack_linaro_armhf_supported.tar.gz ${WORKSPACE}/hwpack_linaro-${hwpack}_${VERSION}_armhf_supported.tar.gz
mv hwpack_linaro_armhf_supported.manifest.txt ${WORKSPACE}/hwpack_linaro-${hwpack}_${VERSION}_armhf_supported.manifest.txt
echo "distribution=openembedded" > remote_directory_parameters
;;
lsk-vexpress64|lsk-vexpress64-be|vexpress64|vexpress64-be|lt-vexpress64)
find artifacts -type f -name "linux-*-linaro-${hwpack}_*.deb" -exec mv -t ${WORKSPACE} {} +
rm -f hwpack_linaro-${hwpack}-rtsm_*_arm64_supported.tar.gz
linaro-hwpack-replace -t hwpack_linaro_arm64_supported.tar.gz -p `ls linux-image-*-linaro-${hwpack}_*.deb` -r linux-image -d -i
linaro-hwpack-replace -t hwpack_linaro_arm64_supported.tar.gz -p `ls linux-headers-*-linaro-${hwpack}_*.deb` -r linux-headers -d -i
mv hwpack_linaro_arm64_supported.tar.gz ${WORKSPACE}/hwpack_linaro-${hwpack}-rtsm_${VERSION}_arm64_supported.tar.gz
mv hwpack_linaro_arm64_supported.manifest.txt ${WORKSPACE}/hwpack_linaro-${hwpack}-rtsm_${VERSION}_arm64_supported.manifest.txt
echo "distribution=openembedded" > remote_directory_parameters
;;
esac
echo "HWPACK_JOB_NAME=${JOB_NAME}" > post_build_lava_parameters
echo "HWPACK_BUILD_NUMBER=${BUILD_NUMBER}" >> post_build_lava_parameters
echo "HWPACK_FILE_NAME=`ls hwpack_linaro-${hwpack}*.tar.gz`" >> post_build_lava_parameters
case "${hwpack}" in
arndale|highbank|panda)
echo "DEVICE_TYPE=${hwpack}" >> post_build_lava_parameters
;;
snowball)
echo "DEVICE_TYPE=snowball_sd" >> post_build_lava_parameters
# XXX workaround until BUILD.INFO.txt is fixed
rm -f BUILD-INFO.txt
touch EULA.txt
;;
lsk-vexpress|vexpress)
echo "DEVICE_TYPE=vexpress-a9" >> post_build_lava_parameters
;;
arndale-be|arndale-octa|beaglebone|lsk-arndale-be|lsk-panda-be|lsk-vexpress-be|lsk-vexpress64|lsk-vexpress64-be|midway|panda-be|vexpress64|vexpress64-be|lt-vexpress64)
echo "Skip DEVICE_TYPE for ${hwpack}"
;;
esac
- inject:
properties-file: remote_directory_parameters
- shell: |
mkdir out
mv hwpack_linaro-${hwpack}* out
${HOME}/bin/linaro-cp out ${distribution}/hwpacks/${hwpack}/${BUILD_NUMBER}
- trigger-builds:
- project: 'post-build-lava'
property-file: post_build_lava_parameters
publishers:
- archive:
artifacts: 'out/*'
latest-only: true
- email:
recipients: 'fathi.boudra@linaro.org riku.voipio@linaro.org'
|