blob: 303857c1fc746853909d9e215ab9fdcdc06fb2b7 [file] [log] [blame]
Bin Mengc7072d12019-10-27 05:19:48 -07001variables:
Tom Rinid7c8e592020-01-27 16:23:29 -05002 windows_vm: vs2017-win2016
Bin Mengddaa6b12019-10-28 07:25:03 -07003 ubuntu_vm: ubuntu-18.04
Tom Riniab1e85b2020-05-26 20:39:03 -04004 macos_vm: macOS-10.15
Tom Riniaab1cd62020-06-18 13:51:39 -04005 ci_runner_image: trini/u-boot-gitlab-ci-runner:bionic-20200526-18Jun2020
Bin Mengddaa6b12019-10-28 07:25:03 -07006 # Add '-u 0' options for Azure pipelines, otherwise we get "permission
7 # denied" error when it tries to "useradd -m -u 1001 vsts_azpcontainer",
8 # since our $(ci_runner_image) user is not root.
9 container_option: -u 0
10 work_dir: /u
Bin Mengc7072d12019-10-27 05:19:48 -070011
12jobs:
13 - job: tools_only_windows
14 displayName: 'Ensure host tools build for Windows'
15 pool:
16 vmImage: $(windows_vm)
17 strategy:
18 matrix:
19 i686:
20 MSYS_DIR: msys32
21 BASE_REPO: msys2-ci-base-i686
22 x86_64:
23 MSYS_DIR: msys64
24 BASE_REPO: msys2-ci-base
25 steps:
26 - script: |
27 git clone https://github.com/msys2/$(BASE_REPO).git %CD:~0,2%\$(MSYS_DIR)
28 displayName: 'Install MSYS2'
29 - script: |
30 set PATH=%CD:~0,2%\$(MSYS_DIR)\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
31 %CD:~0,2%\$(MSYS_DIR)\usr\bin\pacman --noconfirm -Syyuu
32 displayName: 'Update MSYS2'
33 - script: |
34 set PATH=%CD:~0,2%\$(MSYS_DIR)\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
35 %CD:~0,2%\$(MSYS_DIR)\usr\bin\pacman --noconfirm --needed -S make gcc bison diffutils openssl-devel
36 displayName: 'Install Toolchain'
37 - script: |
38 set PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
39 echo make tools-only_defconfig tools-only NO_SDL=1 > build-tools.sh
40 %CD:~0,2%\$(MSYS_DIR)\usr\bin\bash -lc "bash build-tools.sh"
41 displayName: 'Build Host Tools'
42 env:
43 # Tell MSYS2 we need a POSIX emulation layer
44 MSYSTEM: MSYS
45 # Tell MSYS2 not to ‘cd’ our startup directory to HOME
46 CHERE_INVOKING: yes
Bin Mengddaa6b12019-10-28 07:25:03 -070047
Tom Riniab1e85b2020-05-26 20:39:03 -040048 - job: tools_only_macOS
49 displayName: 'Ensure host tools build for macOS X'
50 pool:
51 vmImage: $(macos_vm)
52 steps:
53 - script: brew install make
54 displayName: Brew install dependencies
55 - script: |
56 gmake tools-only_config tools-only NO_SDL=1 \
57 HOSTCFLAGS="-I/usr/local/opt/openssl@1.1/include" \
58 HOSTLDFLAGS="-L/usr/local/opt/openssl@1.1/lib" \
59 -j$(sysctl -n hw.logicalcpu)
60 displayName: 'Perform tools-only build'
61
Bin Mengddaa6b12019-10-28 07:25:03 -070062 - job: cppcheck
63 displayName: 'Static code analysis with cppcheck'
64 pool:
65 vmImage: $(ubuntu_vm)
66 container:
67 image: $(ci_runner_image)
68 options: $(container_option)
69 steps:
Simon Glasscd1ccfa2020-04-05 14:35:43 -060070 - script: cppcheck -j$(nproc) --force --quiet --inline-suppr .
Bin Mengddaa6b12019-10-28 07:25:03 -070071
Heinrich Schuchardtfbf2bf92020-02-21 18:24:02 +010072 - job: htmldocs
73 displayName: 'Build HTML documentation'
74 pool:
75 vmImage: $(ubuntu_vm)
76 container:
77 image: $(ci_runner_image)
78 options: $(container_option)
79 steps:
80 - script: make htmldocs
81
Bin Mengddaa6b12019-10-28 07:25:03 -070082 - job: todo
83 displayName: 'Search for TODO within source tree'
84 pool:
85 vmImage: $(ubuntu_vm)
86 container:
87 image: $(ci_runner_image)
88 options: $(container_option)
89 steps:
90 - script: grep -r TODO .
91 - script: grep -r FIXME .
92 - script: grep -r HACK . | grep -v HACKKIT
93
94 - job: sloccount
95 displayName: 'Some statistics about the code base'
96 pool:
97 vmImage: $(ubuntu_vm)
98 container:
99 image: $(ci_runner_image)
100 options: $(container_option)
101 steps:
102 - script: sloccount .
103
104 - job: maintainers
105 displayName: 'Ensure all configs have MAINTAINERS entries'
106 pool:
107 vmImage: $(ubuntu_vm)
108 container:
109 image: $(ci_runner_image)
110 options: $(container_option)
111 steps:
112 - script: |
113 if [ `./tools/genboardscfg.py -f 2>&1 | wc -l` -ne 0 ]; then exit 1; fi
114
115 - job: tools_only
116 displayName: 'Ensure host tools build'
117 pool:
118 vmImage: $(ubuntu_vm)
119 container:
120 image: $(ci_runner_image)
121 options: $(container_option)
122 steps:
123 - script: |
124 make tools-only_config tools-only -j$(nproc)
125
126 - job: envtools
127 displayName: 'Ensure env tools build'
128 pool:
129 vmImage: $(ubuntu_vm)
130 container:
131 image: $(ci_runner_image)
132 options: $(container_option)
133 steps:
134 - script: |
135 make tools-only_config envtools -j$(nproc)
136
137 - job: utils
Tom Rini0b3e0c42020-03-11 18:11:15 -0400138 displayName: 'Run binman, buildman, dtoc, Kconfig and patman testsuites'
Bin Mengddaa6b12019-10-28 07:25:03 -0700139 pool:
140 vmImage: $(ubuntu_vm)
141 steps:
142 - script: |
143 cat << EOF > build.sh
144 set -ex
145 cd ${WORK_DIR}
146 EOF
147 cat << "EOF" >> build.sh
148 git config --global user.name "Azure Pipelines"
149 git config --global user.email bmeng.cn@gmail.com
150 export USER=azure
Tom Rini6c883102020-02-11 12:41:14 -0500151 virtualenv -p /usr/bin/python3 /tmp/venv
Bin Mengddaa6b12019-10-28 07:25:03 -0700152 . /tmp/venv/bin/activate
Tom Rini0b3e0c42020-03-11 18:11:15 -0400153 pip install pyelftools pytest
Simon Glass9e589c02020-03-18 09:42:50 -0600154 export UBOOT_TRAVIS_BUILD_DIR=/tmp/sandbox_spl
Bin Mengddaa6b12019-10-28 07:25:03 -0700155 export PYTHONPATH=${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt
156 export PATH=${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}
Simon Glass9e589c02020-03-18 09:42:50 -0600157 ./tools/buildman/buildman -o ${UBOOT_TRAVIS_BUILD_DIR} -w sandbox_spl
Bin Mengddaa6b12019-10-28 07:25:03 -0700158 ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test
159 ./tools/buildman/buildman -t
160 ./tools/dtoc/dtoc -t
Tom Rini5a9ecb22020-07-24 08:42:06 -0400161 ./tools/patman/patman --test
Tom Rini0b3e0c42020-03-11 18:11:15 -0400162 make O=${UBOOT_TRAVIS_BUILD_DIR} testconfig
Bin Mengddaa6b12019-10-28 07:25:03 -0700163 EOF
164 cat build.sh
165 # We cannot use "container" like other jobs above, as buildman
166 # seems to hang forever with pre-configured "container" environment
167 docker run -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/build.sh
168
Pali Rohár80ad67b2020-05-17 14:38:22 +0200169 - job: nokia_rx51_test
170 displayName: 'Run tests for Nokia RX-51 (aka N900)'
171 pool:
172 vmImage: $(ubuntu_vm)
173 container:
174 image: $(ci_runner_image)
175 options: $(container_option)
176 steps:
177 - script: |
178 ./tools/buildman/buildman --fetch-arch arm
179 export PATH=~/.buildman-toolchains/gcc-9.2.0-nolibc/arm-linux-gnueabi/bin/:$PATH
180 test/nokia_rx51_test.sh
181
Bin Mengddaa6b12019-10-28 07:25:03 -0700182 - job: test_py
183 displayName: 'test.py'
184 pool:
185 vmImage: $(ubuntu_vm)
186 strategy:
187 matrix:
188 sandbox:
189 TEST_PY_BD: "sandbox"
Tom Rini99a1bb32019-11-06 19:30:47 -0500190 sandbox_clang:
191 TEST_PY_BD: "sandbox"
Tom Rinib4febf52020-04-10 18:28:04 -0400192 OVERRIDE: "-O clang-10"
Bin Mengddaa6b12019-10-28 07:25:03 -0700193 sandbox_spl:
194 TEST_PY_BD: "sandbox_spl"
Simon Glass132a9bf2020-03-18 09:42:58 -0600195 TEST_PY_TEST_SPEC: "test_ofplatdata or test_handoff"
Bin Mengddaa6b12019-10-28 07:25:03 -0700196 sandbox_flattree:
197 TEST_PY_BD: "sandbox_flattree"
Bin Mengddaa6b12019-10-28 07:25:03 -0700198 evb_ast2500:
199 TEST_PY_BD: "evb-ast2500"
200 TEST_PY_ID: "--id qemu"
Bin Mengddaa6b12019-10-28 07:25:03 -0700201 vexpress_ca15_tc2:
202 TEST_PY_BD: "vexpress_ca15_tc2"
203 TEST_PY_ID: "--id qemu"
Bin Mengddaa6b12019-10-28 07:25:03 -0700204 vexpress_ca9x4:
205 TEST_PY_BD: "vexpress_ca9x4"
206 TEST_PY_ID: "--id qemu"
Bin Mengddaa6b12019-10-28 07:25:03 -0700207 integratorcp_cm926ejs:
208 TEST_PY_BD: "integratorcp_cm926ejs"
209 TEST_PY_ID: "--id qemu"
210 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengddaa6b12019-10-28 07:25:03 -0700211 qemu_arm:
212 TEST_PY_BD: "qemu_arm"
213 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengddaa6b12019-10-28 07:25:03 -0700214 qemu_arm64:
215 TEST_PY_BD: "qemu_arm64"
216 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengddaa6b12019-10-28 07:25:03 -0700217 qemu_mips:
218 TEST_PY_BD: "qemu_mips"
219 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengddaa6b12019-10-28 07:25:03 -0700220 qemu_mipsel:
221 TEST_PY_BD: "qemu_mipsel"
222 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengddaa6b12019-10-28 07:25:03 -0700223 qemu_mips64:
224 TEST_PY_BD: "qemu_mips64"
225 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengddaa6b12019-10-28 07:25:03 -0700226 qemu_mips64el:
227 TEST_PY_BD: "qemu_mips64el"
228 TEST_PY_TEST_SPEC: "not sleep"
Daniel Schwierzeck879bc742020-06-06 22:21:47 +0200229 qemu_malta:
230 TEST_PY_BD: "malta"
231 TEST_PY_ID: "--id qemu"
232 TEST_PY_TEST_SPEC: "not sleep and not efi"
233 qemu_maltael:
234 TEST_PY_BD: "maltael"
235 TEST_PY_ID: "--id qemu"
236 TEST_PY_TEST_SPEC: "not sleep and not efi"
237 qemu_malta64:
238 TEST_PY_BD: "malta64"
239 TEST_PY_ID: "--id qemu"
240 TEST_PY_TEST_SPEC: "not sleep and not efi"
241 qemu_malta64el:
242 TEST_PY_BD: "malta64el"
243 TEST_PY_ID: "--id qemu"
244 TEST_PY_TEST_SPEC: "not sleep and not efi"
Bin Mengddaa6b12019-10-28 07:25:03 -0700245 qemu_ppce500:
246 TEST_PY_BD: "qemu-ppce500"
247 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengaeb3ea42020-03-28 07:25:27 -0700248 qemu_riscv32:
249 TEST_PY_BD: "qemu-riscv32"
250 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengddaa6b12019-10-28 07:25:03 -0700251 qemu_riscv64:
252 TEST_PY_BD: "qemu-riscv64"
253 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengb68d9d62020-03-28 07:25:29 -0700254 qemu_riscv32_spl:
255 TEST_PY_BD: "qemu-riscv32_spl"
256 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengb68d9d62020-03-28 07:25:29 -0700257 qemu_riscv64_spl:
258 TEST_PY_BD: "qemu-riscv64_spl"
259 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengddaa6b12019-10-28 07:25:03 -0700260 qemu_x86:
261 TEST_PY_BD: "qemu-x86"
262 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengddaa6b12019-10-28 07:25:03 -0700263 qemu_x86_64:
264 TEST_PY_BD: "qemu-x86_64"
265 TEST_PY_TEST_SPEC: "not sleep"
Michal Simekf8834fd2020-02-13 15:03:29 +0100266 xilinx_zynq_virt:
267 TEST_PY_BD: "xilinx_zynq_virt"
Bin Mengddaa6b12019-10-28 07:25:03 -0700268 TEST_PY_ID: "--id qemu"
269 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengddaa6b12019-10-28 07:25:03 -0700270 xilinx_versal_virt:
271 TEST_PY_BD: "xilinx_versal_virt"
272 TEST_PY_ID: "--id qemu"
273 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengddaa6b12019-10-28 07:25:03 -0700274 xtfpga:
275 TEST_PY_BD: "xtfpga"
276 TEST_PY_ID: "--id qemu"
277 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengddaa6b12019-10-28 07:25:03 -0700278 steps:
279 - script: |
280 cat << EOF > test.sh
281 set -ex
282 # make environment variables available as tests are running inside a container
283 export WORK_DIR="${WORK_DIR}"
284 export TEST_PY_BD="${TEST_PY_BD}"
285 export TEST_PY_ID="${TEST_PY_ID}"
286 export TEST_PY_TEST_SPEC="${TEST_PY_TEST_SPEC}"
Tom Rini99a1bb32019-11-06 19:30:47 -0500287 export OVERRIDE="${OVERRIDE}"
Bin Mengddaa6b12019-10-28 07:25:03 -0700288 EOF
289 cat << "EOF" >> test.sh
290 # the below corresponds to .gitlab-ci.yml "before_script"
291 cd ${WORK_DIR}
292 git clone --depth=1 git://github.com/swarren/uboot-test-hooks.git /tmp/uboot-test-hooks
293 ln -s travis-ci /tmp/uboot-test-hooks/bin/`hostname`
294 ln -s travis-ci /tmp/uboot-test-hooks/py/`hostname`
Bin Mengddaa6b12019-10-28 07:25:03 -0700295 grub-mkimage --prefix=\"\" -o ~/grub_x86.efi -O i386-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd
296 grub-mkimage --prefix=\"\" -o ~/grub_x64.efi -O x86_64-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd
Bin Mengb68d9d62020-03-28 07:25:29 -0700297 if [[ "${TEST_PY_BD}" == "qemu-riscv32_spl" ]]; then
Bin Mengf36d3d72020-07-19 20:52:23 -0700298 wget -O - https://github.com/riscv/opensbi/releases/download/v0.8/opensbi-0.8-rv-bin.tar.xz | tar -C /tmp -xJ;
299 export OPENSBI=/tmp/opensbi-0.8-rv-bin/share/opensbi/ilp32/generic/firmware/fw_dynamic.bin;
Bin Mengb68d9d62020-03-28 07:25:29 -0700300 fi
301 if [[ "${TEST_PY_BD}" == "qemu-riscv64_spl" ]]; then
Bin Mengf36d3d72020-07-19 20:52:23 -0700302 wget -O - https://github.com/riscv/opensbi/releases/download/v0.8/opensbi-0.8-rv-bin.tar.xz | tar -C /tmp -xJ;
303 export OPENSBI=/tmp/opensbi-0.8-rv-bin/share/opensbi/lp64/generic/firmware/fw_dynamic.bin;
Bin Mengb68d9d62020-03-28 07:25:29 -0700304 fi
Bin Mengddaa6b12019-10-28 07:25:03 -0700305 # the below corresponds to .gitlab-ci.yml "script"
306 cd ${WORK_DIR}
Simon Glass28d83e72020-03-18 09:42:55 -0600307 export UBOOT_TRAVIS_BUILD_DIR=/tmp/${TEST_PY_BD};
Simon Glass87c80462020-03-18 09:43:00 -0600308 tools/buildman/buildman -o ${UBOOT_TRAVIS_BUILD_DIR} -w -E -W -e --board ${TEST_PY_BD} ${OVERRIDE}
Heinrich Schuchardt0c9fdd02020-07-14 00:40:19 +0200309 cp ~/grub_x86.efi ${UBOOT_TRAVIS_BUILD_DIR}/
310 cp ~/grub_x64.efi ${UBOOT_TRAVIS_BUILD_DIR}/
311 cp /opt/grub/grubriscv64.efi ${UBOOT_TRAVIS_BUILD_DIR}/grub_riscv64.efi
312 cp /opt/grub/grubriscv32.efi ${UBOOT_TRAVIS_BUILD_DIR}/grub_riscv32.efi
313 cp /opt/grub/grubaa64.efi ${UBOOT_TRAVIS_BUILD_DIR}/grub_arm64.efi
314 cp /opt/grub/grubarm.efi ${UBOOT_TRAVIS_BUILD_DIR}/grub_arm.efi
Tom Rini17e41f22019-10-31 10:45:03 -0400315 virtualenv -p /usr/bin/python3 /tmp/venv
316 . /tmp/venv/bin/activate
317 pip install -r test/py/requirements.txt
Tom Rini528facb2019-11-01 13:59:14 -0400318 export PATH=/opt/qemu/bin:/tmp/uboot-test-hooks/bin:${PATH};
Bin Mengddaa6b12019-10-28 07:25:03 -0700319 export PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci;
Simon Glass2600f7e2020-03-18 09:42:56 -0600320 # "${var:+"-k $var"}" expands to "" if $var is empty, "-k $var" if not
Heinrich Schuchardt2a3ec0a2020-07-10 22:04:40 +0200321 ./test/py/test.py -ra --bd ${TEST_PY_BD} ${TEST_PY_ID} ${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"} --build-dir "$UBOOT_TRAVIS_BUILD_DIR";
Bin Mengddaa6b12019-10-28 07:25:03 -0700322 # the below corresponds to .gitlab-ci.yml "after_script"
Tom Rini6d4656b2020-02-07 11:45:55 -0500323 rm -rf /tmp/uboot-test-hooks /tmp/venv
Bin Mengddaa6b12019-10-28 07:25:03 -0700324 EOF
325 cat test.sh
326 # make current directory writeable to uboot user inside the container
327 # as sandbox testing need create files like spi flash images, etc.
328 # (TODO: clean up this in the future)
329 chmod 777 .
330 docker run -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/test.sh
331
332 - job: build_the_world
333 displayName: 'Build the World'
334 pool:
335 vmImage: $(ubuntu_vm)
336 strategy:
337 # Use almost the same target division in .travis.yml, only merged
338 # 4 small build jobs (arc/microblaze/nds32/xtensa) into one.
339 matrix:
340 arc_microblaze_nds32_xtensa:
341 BUILDMAN: "arc microblaze nds32 xtensa"
342 arm11_arm7_arm920t_arm946es:
343 BUILDMAN: "arm11 arm7 arm920t arm946es"
344 arm926ejs:
345 BUILDMAN: "arm926ejs -x freescale,siemens,at91,kirkwood,spear,omap"
346 at91_non_armv7:
347 BUILDMAN: "at91 -x armv7"
348 at91_non_arm926ejs:
349 BUILDMAN: "at91 -x arm926ejs"
350 boundary_engicam_toradex:
351 BUILDMAN: "boundary engicam toradex"
352 arm_bcm:
353 BUILDMAN: "bcm -x mips"
354 nxp_arm32:
Heiko Schocher56b9b312019-11-22 11:17:29 +0100355 BUILDMAN: "freescale -x powerpc,m68k,aarch64,ls101,ls102,ls104,ls108,ls20,lx216"
356 nxp_ls101x:
357 BUILDMAN: "freescale&ls101"
358 nxp_ls102x:
359 BUILDMAN: "freescale&ls102"
360 nxp_ls104x:
361 BUILDMAN: "freescale&ls104"
362 nxp_ls108x:
363 BUILDMAN: "freescale&ls108"
364 nxp_ls20xx:
365 BUILDMAN: "freescale&ls20"
366 nxp_lx216x:
367 BUILDMAN: "freescale&lx216"
Bin Mengddaa6b12019-10-28 07:25:03 -0700368 imx6:
369 BUILDMAN: "mx6 -x boundary,engicam,freescale,technexion,toradex"
370 imx:
371 BUILDMAN: "mx -x mx6,freescale,technexion,toradex"
372 keystone2_keystone3:
373 BUILDMAN: "k2 k3"
374 samsung_socfpga:
375 BUILDMAN: "samsung socfpga"
376 spear:
377 BUILDMAN: "spear"
378 sun4i:
379 BUILDMAN: "sun4i"
380 sun5i:
381 BUILDMAN: "sun5i"
382 sun6i:
383 BUILDMAN: "sun6i"
384 sun7i:
385 BUILDMAN: "sun7i"
386 sun8i_32bit:
387 BUILDMAN: "sun8i&armv7"
388 sun8i_64bit:
389 BUILDMAN: "sun8i&aarch64"
390 sun9i:
391 BUILDMAN: "sun9i"
392 sun50i:
393 BUILDMAN: "sun50i"
394 arm_catch_all:
Tom Rinie289a162020-03-09 13:01:57 -0400395 BUILDMAN: "arm -x arm11,arm7,arm9,aarch64,at91,bcm,freescale,kirkwood,mvebu,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,rk,toradex,socfpga,k2,k3,zynq"
Bin Mengddaa6b12019-10-28 07:25:03 -0700396 sandbox_x86:
397 BUILDMAN: "sandbox x86"
398 technexion:
399 BUILDMAN: "technexion"
400 kirkwood:
401 BUILDMAN: "kirkwood"
402 mvebu:
403 BUILDMAN: "mvebu"
404 m68k:
405 BUILDMAN: "m68k"
406 mips:
407 BUILDMAN: "mips"
408 non_fsl_ppc:
409 BUILDMAN: "powerpc -x freescale"
410 mpc85xx_freescale:
411 BUILDMAN: "mpc85xx&freescale -x t208xrdb -x t4qds -x t102* -x p1_p2_rdb_pc -x p1010rdb -x corenet_ds -x b4860qds -x bsc91*"
412 t208xrdb_corenet_ds:
413 BUILDMAN: "t208xrdb corenet_ds"
414 fsl_ppc:
415 BUILDMAN: "t4qds b4860qds mpc83xx&freescale mpc86xx&freescale"
416 t102x:
417 BUILDMAN: "t102*"
418 p1_p2_rdb_pc:
419 BUILDMAN: "p1_p2_rdb_pc"
420 p1010rdb_bsc91:
421 BUILDMAN: "p1010rdb bsc91"
422 siemens:
423 BUILDMAN: "siemens"
424 tegra:
425 BUILDMAN: "tegra -x toradex"
426 am33xx_no_siemens:
427 BUILDMAN: "am33xx -x siemens"
428 omap:
429 BUILDMAN: "omap"
430 uniphier:
431 BUILDMAN: "uniphier"
432 aarch64_catch_all:
Tom Rinie289a162020-03-09 13:01:57 -0400433 BUILDMAN: "aarch64 -x bcm,k3,tegra,ls1,ls2,lx216,mvebu,uniphier,sunxi,samsung,socfpga,rk,versal,zynq"
Bin Mengddaa6b12019-10-28 07:25:03 -0700434 rockchip:
Tom Rinie289a162020-03-09 13:01:57 -0400435 BUILDMAN: "rk"
Bin Mengddaa6b12019-10-28 07:25:03 -0700436 sh:
437 BUILDMAN: "sh -x arm"
438 zynq:
439 BUILDMAN: "zynq&armv7"
440 zynqmp_versal:
441 BUILDMAN: "versal|zynqmp&aarch64"
442 riscv:
443 BUILDMAN: "riscv"
444 steps:
445 - script: |
446 cat << EOF > build.sh
447 set -ex
448 cd ${WORK_DIR}
449 # make environment variables available as tests are running inside a container
450 export BUILDMAN="${BUILDMAN}"
451 EOF
452 cat << "EOF" >> build.sh
453 if [[ "${BUILDMAN}" != "" ]]; then
454 ret=0;
Simon Glassda499352020-03-18 09:42:57 -0600455 tools/buildman/buildman -o /tmp -P -W ${BUILDMAN} ${OVERRIDE} || ret=$?;
456 if [[ $ret -ne 0 ]]; then
Simon Glassad8eaed2020-03-18 09:42:53 -0600457 tools/buildman/buildman -o /tmp -seP ${BUILDMAN};
Bin Mengddaa6b12019-10-28 07:25:03 -0700458 exit $ret;
459 fi;
460 fi
461 EOF
462 cat build.sh
463 docker run -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/build.sh