blob: 55a984f5d822e0d76b9ede48abaeb584a3fd66d4 [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 Rini18375b22021-09-11 12:06:14 -04005 ci_runner_image: trini/u-boot-gitlab-ci-runner:focal-20210827-11Sep2021
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)
Bin Mengc7072d12019-10-27 05:19:48 -070017 steps:
Bin Meng31c3bce2020-07-28 02:06:44 -070018 - powershell: |
Bin Mengbd97b0d2021-06-22 07:33:21 +080019 (New-Object Net.WebClient).DownloadFile("https://github.com/msys2/msys2-installer/releases/download/2021-06-04/msys2-base-x86_64-20210604.sfx.exe", "sfx.exe")
Bin Mengc7072d12019-10-27 05:19:48 -070020 displayName: 'Install MSYS2'
21 - script: |
Bin Meng31c3bce2020-07-28 02:06:44 -070022 sfx.exe -y -o%CD:~0,2%\
Bin Meng8c655152020-07-28 02:06:42 -070023 %CD:~0,2%\msys64\usr\bin\bash -lc "pacman --noconfirm -Syyuu"
Bin Mengc7072d12019-10-27 05:19:48 -070024 displayName: 'Update MSYS2'
25 - script: |
Tom Rinia66021b2021-03-26 15:14:14 -040026 %CD:~0,2%\msys64\usr\bin\bash -lc "pacman --noconfirm --needed -Sy make gcc bison flex diffutils openssl-devel"
Bin Mengc7072d12019-10-27 05:19:48 -070027 displayName: 'Install Toolchain'
28 - script: |
Bin Mengc7072d12019-10-27 05:19:48 -070029 echo make tools-only_defconfig tools-only NO_SDL=1 > build-tools.sh
Bin Meng8c655152020-07-28 02:06:42 -070030 %CD:~0,2%\msys64\usr\bin\bash -lc "bash build-tools.sh"
Bin Mengc7072d12019-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 Mengddaa6b12019-10-28 07:25:03 -070037
Tom Riniab1e85b2020-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 Mengddaa6b12019-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 Glasscd1ccfa2020-04-05 14:35:43 -060060 - script: cppcheck -j$(nproc) --force --quiet --inline-suppr .
Bin Mengddaa6b12019-10-28 07:25:03 -070061
Heinrich Schuchardtfbf2bf92020-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 Schuchardt846abe42021-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 Schuchardtfbf2bf92020-02-21 18:24:02 +010075
Bin Mengddaa6b12019-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 Rini0b3e0c42020-03-11 18:11:15 -0400132 displayName: 'Run binman, buildman, dtoc, Kconfig and patman testsuites'
Bin Mengddaa6b12019-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 Rini6c883102020-02-11 12:41:14 -0500145 virtualenv -p /usr/bin/python3 /tmp/venv
Bin Mengddaa6b12019-10-28 07:25:03 -0700146 . /tmp/venv/bin/activate
Tom Rini70c66dd2021-02-26 07:52:29 -0500147 pip install -r test/py/requirements.txt
Simon Glass9e589c02020-03-18 09:42:50 -0600148 export UBOOT_TRAVIS_BUILD_DIR=/tmp/sandbox_spl
Bin Mengddaa6b12019-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 Glassa26d8fe2021-03-22 08:22:53 +1300151 ./tools/buildman/buildman -T0 -o ${UBOOT_TRAVIS_BUILD_DIR} -w --board sandbox_spl
Bin Mengddaa6b12019-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 Glass109e84e2020-07-05 21:41:55 -0600155 ./tools/patman/patman test
Tom Rini0b3e0c42020-03-11 18:11:15 -0400156 make O=${UBOOT_TRAVIS_BUILD_DIR} testconfig
Bin Mengddaa6b12019-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ár80ad67b2020-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 Mengddaa6b12019-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 Rini99a1bb32019-11-06 19:30:47 -0500184 sandbox_clang:
185 TEST_PY_BD: "sandbox"
Tom Rinid776e8f2021-07-15 14:24:25 -0400186 OVERRIDE: "-O clang-12"
Bin Mengddaa6b12019-10-28 07:25:03 -0700187 sandbox_spl:
188 TEST_PY_BD: "sandbox_spl"
Simon Glass36a69e12020-10-25 20:38:36 -0600189 TEST_PY_TEST_SPEC: "test_ofplatdata or test_handoff or test_spl"
Simon Glass492f0b02021-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 Mengddaa6b12019-10-28 07:25:03 -0700193 sandbox_flattree:
194 TEST_PY_BD: "sandbox_flattree"
Bin Mengddaa6b12019-10-28 07:25:03 -0700195 evb_ast2500:
196 TEST_PY_BD: "evb-ast2500"
197 TEST_PY_ID: "--id qemu"
Bin Mengddaa6b12019-10-28 07:25:03 -0700198 integratorcp_cm926ejs:
199 TEST_PY_BD: "integratorcp_cm926ejs"
200 TEST_PY_ID: "--id qemu"
201 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengddaa6b12019-10-28 07:25:03 -0700202 qemu_arm:
203 TEST_PY_BD: "qemu_arm"
204 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengddaa6b12019-10-28 07:25:03 -0700205 qemu_arm64:
206 TEST_PY_BD: "qemu_arm64"
207 TEST_PY_TEST_SPEC: "not sleep"
Daniel Schwierzeck879bc742020-06-06 22:21:47 +0200208 qemu_malta:
209 TEST_PY_BD: "malta"
210 TEST_PY_ID: "--id qemu"
211 TEST_PY_TEST_SPEC: "not sleep and not efi"
212 qemu_maltael:
213 TEST_PY_BD: "maltael"
214 TEST_PY_ID: "--id qemu"
215 TEST_PY_TEST_SPEC: "not sleep and not efi"
216 qemu_malta64:
217 TEST_PY_BD: "malta64"
218 TEST_PY_ID: "--id qemu"
219 TEST_PY_TEST_SPEC: "not sleep and not efi"
220 qemu_malta64el:
221 TEST_PY_BD: "malta64el"
222 TEST_PY_ID: "--id qemu"
223 TEST_PY_TEST_SPEC: "not sleep and not efi"
Bin Mengddaa6b12019-10-28 07:25:03 -0700224 qemu_ppce500:
225 TEST_PY_BD: "qemu-ppce500"
226 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengaeb3ea42020-03-28 07:25:27 -0700227 qemu_riscv32:
228 TEST_PY_BD: "qemu-riscv32"
229 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengddaa6b12019-10-28 07:25:03 -0700230 qemu_riscv64:
231 TEST_PY_BD: "qemu-riscv64"
232 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengb68d9d62020-03-28 07:25:29 -0700233 qemu_riscv32_spl:
234 TEST_PY_BD: "qemu-riscv32_spl"
235 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengb68d9d62020-03-28 07:25:29 -0700236 qemu_riscv64_spl:
237 TEST_PY_BD: "qemu-riscv64_spl"
238 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengddaa6b12019-10-28 07:25:03 -0700239 qemu_x86:
240 TEST_PY_BD: "qemu-x86"
241 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengddaa6b12019-10-28 07:25:03 -0700242 qemu_x86_64:
243 TEST_PY_BD: "qemu-x86_64"
244 TEST_PY_TEST_SPEC: "not sleep"
Marek Vasutfc5a9d72020-09-14 21:55:58 +0200245 r2dplus_i82557c:
246 TEST_PY_BD: "r2dplus"
247 TEST_PY_ID: "--id i82557c_qemu"
248 r2dplus_pcnet:
249 TEST_PY_BD: "r2dplus"
250 TEST_PY_ID: "--id pcnet_qemu"
251 r2dplus_rtl8139:
252 TEST_PY_BD: "r2dplus"
253 TEST_PY_ID: "--id rtl8139_qemu"
254 r2dplus_tulip:
255 TEST_PY_BD: "r2dplus"
256 TEST_PY_ID: "--id tulip_qemu"
Bin Meng0ae41062021-08-26 23:33:35 +0800257 sifive_unleashed_sdcard:
258 TEST_PY_BD: "sifive_unleashed"
259 TEST_PY_ID: "--id sdcard_qemu"
260 sifive_unleashed_spi-nor:
261 TEST_PY_BD: "sifive_unleashed"
262 TEST_PY_ID: "--id spi-nor_qemu"
Michal Simekf8834fd2020-02-13 15:03:29 +0100263 xilinx_zynq_virt:
264 TEST_PY_BD: "xilinx_zynq_virt"
Bin Mengddaa6b12019-10-28 07:25:03 -0700265 TEST_PY_ID: "--id qemu"
266 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengddaa6b12019-10-28 07:25:03 -0700267 xilinx_versal_virt:
268 TEST_PY_BD: "xilinx_versal_virt"
269 TEST_PY_ID: "--id qemu"
270 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengddaa6b12019-10-28 07:25:03 -0700271 xtfpga:
272 TEST_PY_BD: "xtfpga"
273 TEST_PY_ID: "--id qemu"
274 TEST_PY_TEST_SPEC: "not sleep"
Bin Mengddaa6b12019-10-28 07:25:03 -0700275 steps:
276 - script: |
277 cat << EOF > test.sh
278 set -ex
279 # make environment variables available as tests are running inside a container
280 export WORK_DIR="${WORK_DIR}"
281 export TEST_PY_BD="${TEST_PY_BD}"
282 export TEST_PY_ID="${TEST_PY_ID}"
283 export TEST_PY_TEST_SPEC="${TEST_PY_TEST_SPEC}"
Tom Rini99a1bb32019-11-06 19:30:47 -0500284 export OVERRIDE="${OVERRIDE}"
Bin Mengddaa6b12019-10-28 07:25:03 -0700285 EOF
286 cat << "EOF" >> test.sh
287 # the below corresponds to .gitlab-ci.yml "before_script"
288 cd ${WORK_DIR}
Tom Rini2a1df582021-02-24 17:05:04 -0500289 git clone --depth=1 https://source.denx.de/u-boot/u-boot-test-hooks /tmp/uboot-test-hooks
Bin Mengddaa6b12019-10-28 07:25:03 -0700290 ln -s travis-ci /tmp/uboot-test-hooks/bin/`hostname`
291 ln -s travis-ci /tmp/uboot-test-hooks/py/`hostname`
Bin Mengddaa6b12019-10-28 07:25:03 -0700292 grub-mkimage --prefix=\"\" -o ~/grub_x86.efi -O i386-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd
293 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 -0700294 if [[ "${TEST_PY_BD}" == "qemu-riscv32_spl" ]]; then
Heinrich Schuchardtac1b4002021-04-02 11:42:01 +0200295 wget -O - https://github.com/riscv/opensbi/releases/download/v0.9/opensbi-0.9-rv-bin.tar.xz | tar -C /tmp -xJ;
296 export OPENSBI=/tmp/opensbi-0.9-rv-bin/share/opensbi/ilp32/generic/firmware/fw_dynamic.bin;
Bin Mengb68d9d62020-03-28 07:25:29 -0700297 fi
Bin Meng0ae41062021-08-26 23:33:35 +0800298 if [[ "${TEST_PY_BD}" == "qemu-riscv64_spl" ]] || [[ "${TEST_PY_BD}" == "sifive_unleashed" ]]; then
Heinrich Schuchardtac1b4002021-04-02 11:42:01 +0200299 wget -O - https://github.com/riscv/opensbi/releases/download/v0.9/opensbi-0.9-rv-bin.tar.xz | tar -C /tmp -xJ;
300 export OPENSBI=/tmp/opensbi-0.9-rv-bin/share/opensbi/lp64/generic/firmware/fw_dynamic.bin;
Bin Mengb68d9d62020-03-28 07:25:29 -0700301 fi
Bin Mengddaa6b12019-10-28 07:25:03 -0700302 # the below corresponds to .gitlab-ci.yml "script"
303 cd ${WORK_DIR}
Simon Glass28d83e72020-03-18 09:42:55 -0600304 export UBOOT_TRAVIS_BUILD_DIR=/tmp/${TEST_PY_BD};
Simon Glass87c80462020-03-18 09:43:00 -0600305 tools/buildman/buildman -o ${UBOOT_TRAVIS_BUILD_DIR} -w -E -W -e --board ${TEST_PY_BD} ${OVERRIDE}
Heinrich Schuchardt0c9fdd02020-07-14 00:40:19 +0200306 cp ~/grub_x86.efi ${UBOOT_TRAVIS_BUILD_DIR}/
307 cp ~/grub_x64.efi ${UBOOT_TRAVIS_BUILD_DIR}/
308 cp /opt/grub/grubriscv64.efi ${UBOOT_TRAVIS_BUILD_DIR}/grub_riscv64.efi
Heinrich Schuchardt0c9fdd02020-07-14 00:40:19 +0200309 cp /opt/grub/grubaa64.efi ${UBOOT_TRAVIS_BUILD_DIR}/grub_arm64.efi
310 cp /opt/grub/grubarm.efi ${UBOOT_TRAVIS_BUILD_DIR}/grub_arm.efi
Bin Meng0ae41062021-08-26 23:33:35 +0800311 # create sdcard / spi-nor images for sifive unleashed using genimage
312 if [[ "${TEST_PY_BD}" == "sifive_unleashed" ]]; then
313 mkdir -p root;
314 cp ${UBOOT_TRAVIS_BUILD_DIR}/spl/u-boot-spl.bin .;
315 cp ${UBOOT_TRAVIS_BUILD_DIR}/u-boot.itb .;
316 rm -rf tmp;
317 genimage --inputpath . --config board/sifive/unleashed/genimage_sdcard.cfg;
318 cp images/sdcard.img ${UBOOT_TRAVIS_BUILD_DIR}/;
319 rm -rf tmp;
320 genimage --inputpath . --config board/sifive/unleashed/genimage_spi-nor.cfg;
321 cp images/spi-nor.img ${UBOOT_TRAVIS_BUILD_DIR}/;
322 fi
Tom Rini17e41f22019-10-31 10:45:03 -0400323 virtualenv -p /usr/bin/python3 /tmp/venv
324 . /tmp/venv/bin/activate
325 pip install -r test/py/requirements.txt
Tom Rini528facb2019-11-01 13:59:14 -0400326 export PATH=/opt/qemu/bin:/tmp/uboot-test-hooks/bin:${PATH};
Bin Mengddaa6b12019-10-28 07:25:03 -0700327 export PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci;
Simon Glass2600f7e2020-03-18 09:42:56 -0600328 # "${var:+"-k $var"}" expands to "" if $var is empty, "-k $var" if not
Heinrich Schuchardt2a3ec0a2020-07-10 22:04:40 +0200329 ./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 -0700330 # the below corresponds to .gitlab-ci.yml "after_script"
Tom Rini6d4656b2020-02-07 11:45:55 -0500331 rm -rf /tmp/uboot-test-hooks /tmp/venv
Bin Mengddaa6b12019-10-28 07:25:03 -0700332 EOF
333 cat test.sh
334 # make current directory writeable to uboot user inside the container
335 # as sandbox testing need create files like spi flash images, etc.
336 # (TODO: clean up this in the future)
337 chmod 777 .
Alper Nebi Yasakc6d25c12021-06-21 21:51:56 +0300338 # Filesystem tests need extra docker args to run
339 set --
340 if [[ "${TEST_PY_BD}" == "sandbox" ]]; then
341 # mount -o loop needs the loop devices
342 if modprobe loop; then
343 for d in $(find /dev -maxdepth 1 -name 'loop*'); do
344 set -- "$@" --device $d:$d
345 done
346 fi
347 # Needed for mount syscall (for guestmount as well)
348 set -- "$@" --cap-add SYS_ADMIN
349 # Default apparmor profile denies mounts
350 set -- "$@" --security-opt apparmor=unconfined
351 fi
Alper Nebi Yasak6fb91f62021-06-21 21:51:55 +0300352 # Some tests using libguestfs-tools need the fuse device to run
Alper Nebi Yasakc6d25c12021-06-21 21:51:56 +0300353 docker run "$@" --device /dev/fuse:/dev/fuse -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/test.sh
Bin Mengddaa6b12019-10-28 07:25:03 -0700354
355 - job: build_the_world
356 displayName: 'Build the World'
357 pool:
358 vmImage: $(ubuntu_vm)
359 strategy:
360 # Use almost the same target division in .travis.yml, only merged
361 # 4 small build jobs (arc/microblaze/nds32/xtensa) into one.
362 matrix:
363 arc_microblaze_nds32_xtensa:
364 BUILDMAN: "arc microblaze nds32 xtensa"
365 arm11_arm7_arm920t_arm946es:
366 BUILDMAN: "arm11 arm7 arm920t arm946es"
367 arm926ejs:
Tom Rinif5376452021-07-08 07:50:08 -0400368 BUILDMAN: "arm926ejs -x freescale,siemens,at91,kirkwood,omap"
Bin Mengddaa6b12019-10-28 07:25:03 -0700369 at91_non_armv7:
370 BUILDMAN: "at91 -x armv7"
371 at91_non_arm926ejs:
372 BUILDMAN: "at91 -x arm926ejs"
373 boundary_engicam_toradex:
374 BUILDMAN: "boundary engicam toradex"
375 arm_bcm:
376 BUILDMAN: "bcm -x mips"
377 nxp_arm32:
Heiko Schocher56b9b312019-11-22 11:17:29 +0100378 BUILDMAN: "freescale -x powerpc,m68k,aarch64,ls101,ls102,ls104,ls108,ls20,lx216"
379 nxp_ls101x:
380 BUILDMAN: "freescale&ls101"
381 nxp_ls102x:
382 BUILDMAN: "freescale&ls102"
383 nxp_ls104x:
384 BUILDMAN: "freescale&ls104"
385 nxp_ls108x:
386 BUILDMAN: "freescale&ls108"
387 nxp_ls20xx:
388 BUILDMAN: "freescale&ls20"
389 nxp_lx216x:
390 BUILDMAN: "freescale&lx216"
Bin Mengddaa6b12019-10-28 07:25:03 -0700391 imx6:
392 BUILDMAN: "mx6 -x boundary,engicam,freescale,technexion,toradex"
393 imx:
394 BUILDMAN: "mx -x mx6,freescale,technexion,toradex"
Tom Rini45b49bc2021-07-27 17:01:28 -0400395 imx8:
396 BUILDMAN: "imx8"
Bin Mengddaa6b12019-10-28 07:25:03 -0700397 keystone2_keystone3:
398 BUILDMAN: "k2 k3"
399 samsung_socfpga:
400 BUILDMAN: "samsung socfpga"
Bin Mengddaa6b12019-10-28 07:25:03 -0700401 sun4i:
402 BUILDMAN: "sun4i"
403 sun5i:
404 BUILDMAN: "sun5i"
405 sun6i:
406 BUILDMAN: "sun6i"
407 sun7i:
408 BUILDMAN: "sun7i"
409 sun8i_32bit:
410 BUILDMAN: "sun8i&armv7"
411 sun8i_64bit:
412 BUILDMAN: "sun8i&aarch64"
413 sun9i:
414 BUILDMAN: "sun9i"
415 sun50i:
416 BUILDMAN: "sun50i"
417 arm_catch_all:
Tom Rinif04bde52021-02-15 10:52:19 -0500418 BUILDMAN: "arm -x arm11,arm7,arm9,aarch64,at91,bcm,freescale,kirkwood,mvebu,renesas,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,rk,toradex,socfpga,k2,k3,zynq"
Bin Mengddaa6b12019-10-28 07:25:03 -0700419 sandbox_x86:
420 BUILDMAN: "sandbox x86"
421 technexion:
422 BUILDMAN: "technexion"
423 kirkwood:
424 BUILDMAN: "kirkwood"
425 mvebu:
426 BUILDMAN: "mvebu"
427 m68k:
428 BUILDMAN: "m68k"
429 mips:
430 BUILDMAN: "mips"
431 non_fsl_ppc:
432 BUILDMAN: "powerpc -x freescale"
433 mpc85xx_freescale:
Simon Glass88b8c4d2021-08-01 18:54:42 -0600434 BUILDMAN: "mpc85xx&freescale -x t208xrdb -x t102* -x p1_p2_rdb_pc -x p1010rdb -x corenet_ds -x bsc91*"
Bin Mengddaa6b12019-10-28 07:25:03 -0700435 t208xrdb_corenet_ds:
436 BUILDMAN: "t208xrdb corenet_ds"
437 fsl_ppc:
Simon Glass88b8c4d2021-08-01 18:54:42 -0600438 BUILDMAN: "mpc83xx&freescale"
Bin Mengddaa6b12019-10-28 07:25:03 -0700439 t102x:
440 BUILDMAN: "t102*"
441 p1_p2_rdb_pc:
442 BUILDMAN: "p1_p2_rdb_pc"
443 p1010rdb_bsc91:
444 BUILDMAN: "p1010rdb bsc91"
445 siemens:
446 BUILDMAN: "siemens"
447 tegra:
448 BUILDMAN: "tegra -x toradex"
449 am33xx_no_siemens:
450 BUILDMAN: "am33xx -x siemens"
451 omap:
452 BUILDMAN: "omap"
453 uniphier:
454 BUILDMAN: "uniphier"
455 aarch64_catch_all:
Tom Rini45b49bc2021-07-27 17:01:28 -0400456 BUILDMAN: "aarch64 -x bcm,imx8,k3,tegra,ls1,ls2,lx216,mvebu,uniphier,renesas,sunxi,samsung,socfpga,rk,versal,zynq"
Bin Mengddaa6b12019-10-28 07:25:03 -0700457 rockchip:
Tom Rinie289a162020-03-09 13:01:57 -0400458 BUILDMAN: "rk"
Tom Rinif04bde52021-02-15 10:52:19 -0500459 renesas:
460 BUILDMAN: "renesas"
Bin Mengddaa6b12019-10-28 07:25:03 -0700461 zynq:
462 BUILDMAN: "zynq&armv7"
463 zynqmp_versal:
464 BUILDMAN: "versal|zynqmp&aarch64"
465 riscv:
466 BUILDMAN: "riscv"
467 steps:
468 - script: |
469 cat << EOF > build.sh
470 set -ex
471 cd ${WORK_DIR}
472 # make environment variables available as tests are running inside a container
473 export BUILDMAN="${BUILDMAN}"
474 EOF
475 cat << "EOF" >> build.sh
476 if [[ "${BUILDMAN}" != "" ]]; then
477 ret=0;
Bin Meng8ba3d242021-01-31 16:38:35 +0800478 tools/buildman/buildman -o /tmp -P -E -W ${BUILDMAN} ${OVERRIDE} || ret=$?;
Simon Glassda499352020-03-18 09:42:57 -0600479 if [[ $ret -ne 0 ]]; then
Simon Glassad8eaed2020-03-18 09:42:53 -0600480 tools/buildman/buildman -o /tmp -seP ${BUILDMAN};
Bin Mengddaa6b12019-10-28 07:25:03 -0700481 exit $ret;
482 fi;
483 fi
484 EOF
485 cat build.sh
486 docker run -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/build.sh