blob: ec2f2609973b9c867ffd09fcb007eaaeee18c148 [file] [log] [blame]
Bin Mengd2e680f2019-10-27 05:19:48 -07001variables:
Tom Rini9e0c1312020-01-27 16:23:29 -05002 windows_vm: vs2017-win2016
Bin Mengbf275222019-10-28 07:25:03 -07003 ubuntu_vm: ubuntu-18.04
Tom Rini7b4116d2020-05-26 20:39:03 -04004 macos_vm: macOS-10.15
Tom Rini71490772020-09-02 09:22:29 -04005 ci_runner_image: trini/u-boot-gitlab-ci-runner:bionic-20200807-02Sep2020
Bin Mengbf275222019-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 Mengd2e680f2019-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)
Bin Mengd2e680f2019-10-27 05:19:48 -070017 steps:
Bin Meng437e70f2020-07-28 02:06:44 -070018 - powershell: |
19 (New-Object Net.WebClient).DownloadFile("https://github.com/msys2/msys2-installer/releases/download/2020-07-20/msys2-base-x86_64-20200720.sfx.exe", "sfx.exe")
Bin Mengd2e680f2019-10-27 05:19:48 -070020 displayName: 'Install MSYS2'
21 - script: |
Bin Meng437e70f2020-07-28 02:06:44 -070022 sfx.exe -y -o%CD:~0,2%\
Bin Mengf7faddf2020-07-28 02:06:42 -070023 %CD:~0,2%\msys64\usr\bin\bash -lc "pacman --noconfirm -Syyuu"
Bin Mengd2e680f2019-10-27 05:19:48 -070024 displayName: 'Update MSYS2'
25 - script: |
Bin Mengd126e3c2020-07-28 02:06:43 -070026 %CD:~0,2%\msys64\usr\bin\bash -lc "pacman --noconfirm --needed -S make gcc bison flex diffutils openssl-devel"
Bin Mengd2e680f2019-10-27 05:19:48 -070027 displayName: 'Install Toolchain'
28 - script: |
Bin Mengd2e680f2019-10-27 05:19:48 -070029 echo make tools-only_defconfig tools-only NO_SDL=1 > build-tools.sh
Bin Mengf7faddf2020-07-28 02:06:42 -070030 %CD:~0,2%\msys64\usr\bin\bash -lc "bash build-tools.sh"
Bin Mengd2e680f2019-10-27 05:19:48 -070031 displayName: 'Build Host Tools'
32 env:
33 # Tell MSYS2 we need a POSIX emulation layer
34 MSYSTEM: MSYS
35 # Tell MSYS2 not to ‘cd’ our startup directory to HOME
36 CHERE_INVOKING: yes
Bin Mengbf275222019-10-28 07:25:03 -070037
Tom Rini7b4116d2020-05-26 20:39:03 -040038 - job: tools_only_macOS
39 displayName: 'Ensure host tools build for macOS X'
40 pool:
41 vmImage: $(macos_vm)
42 steps:
43 - script: brew install make
44 displayName: Brew install dependencies
45 - script: |
46 gmake tools-only_config tools-only NO_SDL=1 \
47 HOSTCFLAGS="-I/usr/local/opt/openssl@1.1/include" \
48 HOSTLDFLAGS="-L/usr/local/opt/openssl@1.1/lib" \
49 -j$(sysctl -n hw.logicalcpu)
50 displayName: 'Perform tools-only build'
51
Bin Mengbf275222019-10-28 07:25:03 -070052 - job: cppcheck
53 displayName: 'Static code analysis with cppcheck'
54 pool:
55 vmImage: $(ubuntu_vm)
56 container:
57 image: $(ci_runner_image)
58 options: $(container_option)
59 steps:
Simon Glass4ee7f522020-04-05 14:35:43 -060060 - script: cppcheck -j$(nproc) --force --quiet --inline-suppr .
Bin Mengbf275222019-10-28 07:25:03 -070061
Heinrich Schuchardt4eb0fc92020-02-21 18:24:02 +010062 - job: htmldocs
63 displayName: 'Build HTML documentation'
64 pool:
65 vmImage: $(ubuntu_vm)
66 container:
67 image: $(ci_runner_image)
68 options: $(container_option)
69 steps:
Heinrich Schuchardt836049d2021-01-25 22:06:25 +010070 - script: |
71 virtualenv -p /usr/bin/python3 /tmp/venvhtml
72 . /tmp/venvhtml/bin/activate
73 pip install -r doc/sphinx/requirements.txt
74 make htmldocs
Heinrich Schuchardt4eb0fc92020-02-21 18:24:02 +010075
Bin Mengbf275222019-10-28 07:25:03 -070076 - job: todo
77 displayName: 'Search for TODO within source tree'
78 pool:
79 vmImage: $(ubuntu_vm)
80 container:
81 image: $(ci_runner_image)
82 options: $(container_option)
83 steps:
84 - script: grep -r TODO .
85 - script: grep -r FIXME .
86 - script: grep -r HACK . | grep -v HACKKIT
87
88 - job: sloccount
89 displayName: 'Some statistics about the code base'
90 pool:
91 vmImage: $(ubuntu_vm)
92 container:
93 image: $(ci_runner_image)
94 options: $(container_option)
95 steps:
96 - script: sloccount .
97
98 - job: maintainers
99 displayName: 'Ensure all configs have MAINTAINERS entries'
100 pool:
101 vmImage: $(ubuntu_vm)
102 container:
103 image: $(ci_runner_image)
104 options: $(container_option)
105 steps:
106 - script: |
107 if [ `./tools/genboardscfg.py -f 2>&1 | wc -l` -ne 0 ]; then exit 1; fi
108
109 - job: tools_only
110 displayName: 'Ensure host tools build'
111 pool:
112 vmImage: $(ubuntu_vm)
113 container:
114 image: $(ci_runner_image)
115 options: $(container_option)
116 steps:
117 - script: |
118 make tools-only_config tools-only -j$(nproc)
119
120 - job: envtools
121 displayName: 'Ensure env tools build'
122 pool:
123 vmImage: $(ubuntu_vm)
124 container:
125 image: $(ci_runner_image)
126 options: $(container_option)
127 steps:
128 - script: |
129 make tools-only_config envtools -j$(nproc)
130
131 - job: utils
Tom Rini72618332020-03-11 18:11:15 -0400132 displayName: 'Run binman, buildman, dtoc, Kconfig and patman testsuites'
Bin Mengbf275222019-10-28 07:25:03 -0700133 pool:
134 vmImage: $(ubuntu_vm)
135 steps:
136 - script: |
137 cat << EOF > build.sh
138 set -ex
139 cd ${WORK_DIR}
140 EOF
141 cat << "EOF" >> build.sh
142 git config --global user.name "Azure Pipelines"
143 git config --global user.email bmeng.cn@gmail.com
144 export USER=azure
Tom Rini26a426a2020-02-11 12:41:14 -0500145 virtualenv -p /usr/bin/python3 /tmp/venv
Bin Mengbf275222019-10-28 07:25:03 -0700146 . /tmp/venv/bin/activate
Simon Glassbd73bb42020-10-29 21:46:11 -0600147 pip install pyelftools pytest pygit2
Simon Glassbf0a8132020-03-18 09:42:50 -0600148 export UBOOT_TRAVIS_BUILD_DIR=/tmp/sandbox_spl
Bin Mengbf275222019-10-28 07:25:03 -0700149 export PYTHONPATH=${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt
150 export PATH=${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}
Simon Glassa0ac1d92021-03-22 08:22:53 +1300151 ./tools/buildman/buildman -T0 -o ${UBOOT_TRAVIS_BUILD_DIR} -w --board sandbox_spl
Bin Mengbf275222019-10-28 07:25:03 -0700152 ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test
153 ./tools/buildman/buildman -t
154 ./tools/dtoc/dtoc -t
Simon Glass6bb74de2020-07-05 21:41:55 -0600155 ./tools/patman/patman test
Tom Rini72618332020-03-11 18:11:15 -0400156 make O=${UBOOT_TRAVIS_BUILD_DIR} testconfig
Bin Mengbf275222019-10-28 07:25:03 -0700157 EOF
158 cat build.sh
159 # We cannot use "container" like other jobs above, as buildman
160 # seems to hang forever with pre-configured "container" environment
161 docker run -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/build.sh
162
Pali Rohár6cfd09d2020-05-17 14:38:22 +0200163 - job: nokia_rx51_test
164 displayName: 'Run tests for Nokia RX-51 (aka N900)'
165 pool:
166 vmImage: $(ubuntu_vm)
167 container:
168 image: $(ci_runner_image)
169 options: $(container_option)
170 steps:
171 - script: |
172 ./tools/buildman/buildman --fetch-arch arm
173 export PATH=~/.buildman-toolchains/gcc-9.2.0-nolibc/arm-linux-gnueabi/bin/:$PATH
174 test/nokia_rx51_test.sh
175
Bin Mengbf275222019-10-28 07:25:03 -0700176 - job: test_py
177 displayName: 'test.py'
178 pool:
179 vmImage: $(ubuntu_vm)
180 strategy:
181 matrix:
182 sandbox:
183 TEST_PY_BD: "sandbox"
Tom Rini0219d012019-11-06 19:30:47 -0500184 sandbox_clang:
185 TEST_PY_BD: "sandbox"
Tom Rinic8790be2020-04-10 18:28:04 -0400186 OVERRIDE: "-O clang-10"
Bin Mengbf275222019-10-28 07:25:03 -0700187 sandbox_spl:
188 TEST_PY_BD: "sandbox_spl"
Simon Glassafb26ba2020-10-25 20:38:36 -0600189 TEST_PY_TEST_SPEC: "test_ofplatdata or test_handoff or test_spl"
Simon Glass6c914e42021-03-15 17:25:34 +1300190 sandbox_noinst:
191 TEST_PY_BD: "sandbox_noinst"
192 TEST_PY_TEST_SPEC: "test_ofplatdata or test_handoff or test_spl"
Bin Mengbf275222019-10-28 07:25:03 -0700193 sandbox_flattree:
194 TEST_PY_BD: "sandbox_flattree"
Bin Mengbf275222019-10-28 07:25:03 -0700195 evb_ast2500:
196 TEST_PY_BD: "evb-ast2500"
197 TEST_PY_ID: "--id qemu"
Bin Mengbf275222019-10-28 07:25:03 -0700198 vexpress_ca15_tc2:
199 TEST_PY_BD: "vexpress_ca15_tc2"
200 TEST_PY_ID: "--id qemu"
Bin Mengbf275222019-10-28 07:25:03 -0700201 vexpress_ca9x4:
202 TEST_PY_BD: "vexpress_ca9x4"
203 TEST_PY_ID: "--id qemu"
Bin Mengbf275222019-10-28 07:25:03 -0700204 integratorcp_cm926ejs:
205 TEST_PY_BD: "integratorcp_cm926ejs"
206 TEST_PY_ID: "--id qemu"
207 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengbf275222019-10-28 07:25:03 -0700208 qemu_arm:
209 TEST_PY_BD: "qemu_arm"
210 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengbf275222019-10-28 07:25:03 -0700211 qemu_arm64:
212 TEST_PY_BD: "qemu_arm64"
213 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengbf275222019-10-28 07:25:03 -0700214 qemu_mips:
215 TEST_PY_BD: "qemu_mips"
216 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengbf275222019-10-28 07:25:03 -0700217 qemu_mipsel:
218 TEST_PY_BD: "qemu_mipsel"
219 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengbf275222019-10-28 07:25:03 -0700220 qemu_mips64:
221 TEST_PY_BD: "qemu_mips64"
222 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengbf275222019-10-28 07:25:03 -0700223 qemu_mips64el:
224 TEST_PY_BD: "qemu_mips64el"
225 TEST_PY_TEST_SPEC: "not sleep"
Daniel Schwierzecke35c2a82020-06-06 22:21:47 +0200226 qemu_malta:
227 TEST_PY_BD: "malta"
228 TEST_PY_ID: "--id qemu"
229 TEST_PY_TEST_SPEC: "not sleep and not efi"
230 qemu_maltael:
231 TEST_PY_BD: "maltael"
232 TEST_PY_ID: "--id qemu"
233 TEST_PY_TEST_SPEC: "not sleep and not efi"
234 qemu_malta64:
235 TEST_PY_BD: "malta64"
236 TEST_PY_ID: "--id qemu"
237 TEST_PY_TEST_SPEC: "not sleep and not efi"
238 qemu_malta64el:
239 TEST_PY_BD: "malta64el"
240 TEST_PY_ID: "--id qemu"
241 TEST_PY_TEST_SPEC: "not sleep and not efi"
Bin Mengbf275222019-10-28 07:25:03 -0700242 qemu_ppce500:
243 TEST_PY_BD: "qemu-ppce500"
244 TEST_PY_TEST_SPEC: "not sleep"
Bin Menga379d332020-03-28 07:25:27 -0700245 qemu_riscv32:
246 TEST_PY_BD: "qemu-riscv32"
247 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengbf275222019-10-28 07:25:03 -0700248 qemu_riscv64:
249 TEST_PY_BD: "qemu-riscv64"
250 TEST_PY_TEST_SPEC: "not sleep"
Bin Meng49fb28a2020-03-28 07:25:29 -0700251 qemu_riscv32_spl:
252 TEST_PY_BD: "qemu-riscv32_spl"
253 TEST_PY_TEST_SPEC: "not sleep"
Bin Meng49fb28a2020-03-28 07:25:29 -0700254 qemu_riscv64_spl:
255 TEST_PY_BD: "qemu-riscv64_spl"
256 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengbf275222019-10-28 07:25:03 -0700257 qemu_x86:
258 TEST_PY_BD: "qemu-x86"
259 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengbf275222019-10-28 07:25:03 -0700260 qemu_x86_64:
261 TEST_PY_BD: "qemu-x86_64"
262 TEST_PY_TEST_SPEC: "not sleep"
Marek Vasut0e125752020-09-14 21:55:58 +0200263 r2dplus_i82557c:
264 TEST_PY_BD: "r2dplus"
265 TEST_PY_ID: "--id i82557c_qemu"
266 r2dplus_pcnet:
267 TEST_PY_BD: "r2dplus"
268 TEST_PY_ID: "--id pcnet_qemu"
269 r2dplus_rtl8139:
270 TEST_PY_BD: "r2dplus"
271 TEST_PY_ID: "--id rtl8139_qemu"
272 r2dplus_tulip:
273 TEST_PY_BD: "r2dplus"
274 TEST_PY_ID: "--id tulip_qemu"
Michal Simekf7c6ee72020-02-13 15:03:29 +0100275 xilinx_zynq_virt:
276 TEST_PY_BD: "xilinx_zynq_virt"
Bin Mengbf275222019-10-28 07:25:03 -0700277 TEST_PY_ID: "--id qemu"
278 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengbf275222019-10-28 07:25:03 -0700279 xilinx_versal_virt:
280 TEST_PY_BD: "xilinx_versal_virt"
281 TEST_PY_ID: "--id qemu"
282 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengbf275222019-10-28 07:25:03 -0700283 xtfpga:
284 TEST_PY_BD: "xtfpga"
285 TEST_PY_ID: "--id qemu"
286 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengbf275222019-10-28 07:25:03 -0700287 steps:
288 - script: |
289 cat << EOF > test.sh
290 set -ex
291 # make environment variables available as tests are running inside a container
292 export WORK_DIR="${WORK_DIR}"
293 export TEST_PY_BD="${TEST_PY_BD}"
294 export TEST_PY_ID="${TEST_PY_ID}"
295 export TEST_PY_TEST_SPEC="${TEST_PY_TEST_SPEC}"
Tom Rini0219d012019-11-06 19:30:47 -0500296 export OVERRIDE="${OVERRIDE}"
Bin Mengbf275222019-10-28 07:25:03 -0700297 EOF
298 cat << "EOF" >> test.sh
299 # the below corresponds to .gitlab-ci.yml "before_script"
300 cd ${WORK_DIR}
Tom Rini85ae52b2021-02-24 17:05:04 -0500301 git clone --depth=1 https://source.denx.de/u-boot/u-boot-test-hooks /tmp/uboot-test-hooks
Bin Mengbf275222019-10-28 07:25:03 -0700302 ln -s travis-ci /tmp/uboot-test-hooks/bin/`hostname`
303 ln -s travis-ci /tmp/uboot-test-hooks/py/`hostname`
Bin Mengbf275222019-10-28 07:25:03 -0700304 grub-mkimage --prefix=\"\" -o ~/grub_x86.efi -O i386-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd
305 grub-mkimage --prefix=\"\" -o ~/grub_x64.efi -O x86_64-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd
Bin Meng49fb28a2020-03-28 07:25:29 -0700306 if [[ "${TEST_PY_BD}" == "qemu-riscv32_spl" ]]; then
Bin Mengd20d0a52020-07-19 20:52:23 -0700307 wget -O - https://github.com/riscv/opensbi/releases/download/v0.8/opensbi-0.8-rv-bin.tar.xz | tar -C /tmp -xJ;
308 export OPENSBI=/tmp/opensbi-0.8-rv-bin/share/opensbi/ilp32/generic/firmware/fw_dynamic.bin;
Bin Meng49fb28a2020-03-28 07:25:29 -0700309 fi
310 if [[ "${TEST_PY_BD}" == "qemu-riscv64_spl" ]]; then
Bin Mengd20d0a52020-07-19 20:52:23 -0700311 wget -O - https://github.com/riscv/opensbi/releases/download/v0.8/opensbi-0.8-rv-bin.tar.xz | tar -C /tmp -xJ;
312 export OPENSBI=/tmp/opensbi-0.8-rv-bin/share/opensbi/lp64/generic/firmware/fw_dynamic.bin;
Bin Meng49fb28a2020-03-28 07:25:29 -0700313 fi
Bin Mengbf275222019-10-28 07:25:03 -0700314 # the below corresponds to .gitlab-ci.yml "script"
315 cd ${WORK_DIR}
Simon Glass4e32fed2020-03-18 09:42:55 -0600316 export UBOOT_TRAVIS_BUILD_DIR=/tmp/${TEST_PY_BD};
Simon Glass7ec12552020-03-18 09:43:00 -0600317 tools/buildman/buildman -o ${UBOOT_TRAVIS_BUILD_DIR} -w -E -W -e --board ${TEST_PY_BD} ${OVERRIDE}
Heinrich Schuchardt9e0f5ea2020-07-14 00:40:19 +0200318 cp ~/grub_x86.efi ${UBOOT_TRAVIS_BUILD_DIR}/
319 cp ~/grub_x64.efi ${UBOOT_TRAVIS_BUILD_DIR}/
320 cp /opt/grub/grubriscv64.efi ${UBOOT_TRAVIS_BUILD_DIR}/grub_riscv64.efi
321 cp /opt/grub/grubriscv32.efi ${UBOOT_TRAVIS_BUILD_DIR}/grub_riscv32.efi
322 cp /opt/grub/grubaa64.efi ${UBOOT_TRAVIS_BUILD_DIR}/grub_arm64.efi
323 cp /opt/grub/grubarm.efi ${UBOOT_TRAVIS_BUILD_DIR}/grub_arm.efi
Tom Rini5d80a1a2019-10-31 10:45:03 -0400324 virtualenv -p /usr/bin/python3 /tmp/venv
325 . /tmp/venv/bin/activate
326 pip install -r test/py/requirements.txt
Tom Rini5d6f0532019-11-01 13:59:14 -0400327 export PATH=/opt/qemu/bin:/tmp/uboot-test-hooks/bin:${PATH};
Bin Mengbf275222019-10-28 07:25:03 -0700328 export PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci;
Simon Glass4080d092020-03-18 09:42:56 -0600329 # "${var:+"-k $var"}" expands to "" if $var is empty, "-k $var" if not
Heinrich Schuchardtf3092472020-07-10 22:04:40 +0200330 ./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 Mengbf275222019-10-28 07:25:03 -0700331 # the below corresponds to .gitlab-ci.yml "after_script"
Tom Rini6049d512020-02-07 11:45:55 -0500332 rm -rf /tmp/uboot-test-hooks /tmp/venv
Bin Mengbf275222019-10-28 07:25:03 -0700333 EOF
334 cat test.sh
335 # make current directory writeable to uboot user inside the container
336 # as sandbox testing need create files like spi flash images, etc.
337 # (TODO: clean up this in the future)
338 chmod 777 .
339 docker run -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/test.sh
340
341 - job: build_the_world
342 displayName: 'Build the World'
343 pool:
344 vmImage: $(ubuntu_vm)
345 strategy:
346 # Use almost the same target division in .travis.yml, only merged
347 # 4 small build jobs (arc/microblaze/nds32/xtensa) into one.
348 matrix:
349 arc_microblaze_nds32_xtensa:
350 BUILDMAN: "arc microblaze nds32 xtensa"
351 arm11_arm7_arm920t_arm946es:
352 BUILDMAN: "arm11 arm7 arm920t arm946es"
353 arm926ejs:
354 BUILDMAN: "arm926ejs -x freescale,siemens,at91,kirkwood,spear,omap"
355 at91_non_armv7:
356 BUILDMAN: "at91 -x armv7"
357 at91_non_arm926ejs:
358 BUILDMAN: "at91 -x arm926ejs"
359 boundary_engicam_toradex:
360 BUILDMAN: "boundary engicam toradex"
361 arm_bcm:
362 BUILDMAN: "bcm -x mips"
363 nxp_arm32:
Heiko Schocheraf771622019-11-22 11:17:29 +0100364 BUILDMAN: "freescale -x powerpc,m68k,aarch64,ls101,ls102,ls104,ls108,ls20,lx216"
365 nxp_ls101x:
366 BUILDMAN: "freescale&ls101"
367 nxp_ls102x:
368 BUILDMAN: "freescale&ls102"
369 nxp_ls104x:
370 BUILDMAN: "freescale&ls104"
371 nxp_ls108x:
372 BUILDMAN: "freescale&ls108"
373 nxp_ls20xx:
374 BUILDMAN: "freescale&ls20"
375 nxp_lx216x:
376 BUILDMAN: "freescale&lx216"
Bin Mengbf275222019-10-28 07:25:03 -0700377 imx6:
378 BUILDMAN: "mx6 -x boundary,engicam,freescale,technexion,toradex"
379 imx:
380 BUILDMAN: "mx -x mx6,freescale,technexion,toradex"
381 keystone2_keystone3:
382 BUILDMAN: "k2 k3"
383 samsung_socfpga:
384 BUILDMAN: "samsung socfpga"
385 spear:
386 BUILDMAN: "spear"
387 sun4i:
388 BUILDMAN: "sun4i"
389 sun5i:
390 BUILDMAN: "sun5i"
391 sun6i:
392 BUILDMAN: "sun6i"
393 sun7i:
394 BUILDMAN: "sun7i"
395 sun8i_32bit:
396 BUILDMAN: "sun8i&armv7"
397 sun8i_64bit:
398 BUILDMAN: "sun8i&aarch64"
399 sun9i:
400 BUILDMAN: "sun9i"
401 sun50i:
402 BUILDMAN: "sun50i"
403 arm_catch_all:
Tom Rini2d4cd122020-03-09 13:01:57 -0400404 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 Mengbf275222019-10-28 07:25:03 -0700405 sandbox_x86:
406 BUILDMAN: "sandbox x86"
407 technexion:
408 BUILDMAN: "technexion"
409 kirkwood:
410 BUILDMAN: "kirkwood"
411 mvebu:
412 BUILDMAN: "mvebu"
413 m68k:
414 BUILDMAN: "m68k"
415 mips:
416 BUILDMAN: "mips"
417 non_fsl_ppc:
418 BUILDMAN: "powerpc -x freescale"
419 mpc85xx_freescale:
420 BUILDMAN: "mpc85xx&freescale -x t208xrdb -x t4qds -x t102* -x p1_p2_rdb_pc -x p1010rdb -x corenet_ds -x b4860qds -x bsc91*"
421 t208xrdb_corenet_ds:
422 BUILDMAN: "t208xrdb corenet_ds"
423 fsl_ppc:
424 BUILDMAN: "t4qds b4860qds mpc83xx&freescale mpc86xx&freescale"
425 t102x:
426 BUILDMAN: "t102*"
427 p1_p2_rdb_pc:
428 BUILDMAN: "p1_p2_rdb_pc"
429 p1010rdb_bsc91:
430 BUILDMAN: "p1010rdb bsc91"
431 siemens:
432 BUILDMAN: "siemens"
433 tegra:
434 BUILDMAN: "tegra -x toradex"
435 am33xx_no_siemens:
436 BUILDMAN: "am33xx -x siemens"
437 omap:
438 BUILDMAN: "omap"
439 uniphier:
440 BUILDMAN: "uniphier"
441 aarch64_catch_all:
Tom Rini2d4cd122020-03-09 13:01:57 -0400442 BUILDMAN: "aarch64 -x bcm,k3,tegra,ls1,ls2,lx216,mvebu,uniphier,sunxi,samsung,socfpga,rk,versal,zynq"
Bin Mengbf275222019-10-28 07:25:03 -0700443 rockchip:
Tom Rini2d4cd122020-03-09 13:01:57 -0400444 BUILDMAN: "rk"
Bin Mengbf275222019-10-28 07:25:03 -0700445 sh:
446 BUILDMAN: "sh -x arm"
447 zynq:
448 BUILDMAN: "zynq&armv7"
449 zynqmp_versal:
450 BUILDMAN: "versal|zynqmp&aarch64"
451 riscv:
452 BUILDMAN: "riscv"
453 steps:
454 - script: |
455 cat << EOF > build.sh
456 set -ex
457 cd ${WORK_DIR}
458 # make environment variables available as tests are running inside a container
459 export BUILDMAN="${BUILDMAN}"
460 EOF
461 cat << "EOF" >> build.sh
462 if [[ "${BUILDMAN}" != "" ]]; then
463 ret=0;
Bin Mengaa8544e2021-01-31 16:38:35 +0800464 tools/buildman/buildman -o /tmp -P -E -W ${BUILDMAN} ${OVERRIDE} || ret=$?;
Simon Glassdd5c9542020-03-18 09:42:57 -0600465 if [[ $ret -ne 0 ]]; then
Simon Glassb52f5a12020-03-18 09:42:53 -0600466 tools/buildman/buildman -o /tmp -seP ${BUILDMAN};
Bin Mengbf275222019-10-28 07:25:03 -0700467 exit $ret;
468 fi;
469 fi
470 EOF
471 cat build.sh
472 docker run -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/build.sh