travis: Build GRUB image for RISC-V 32-bit and 64-bit
[oweals/u-boot.git] / .travis.yml
1 # SPDX-License-Identifier: GPL-2.0+
2 # Copyright Roger Meier <r.meier@siemens.com>
3
4 # build U-Boot on Travis CI - https://travis-ci.org/
5
6 sudo: required
7 dist: bionic
8
9 language: c
10
11 addons:
12   apt:
13     sources:
14     - ubuntu-toolchain-r-test
15     - llvm-toolchain-bionic-7
16     packages:
17     - autopoint
18     - cppcheck
19     - sloccount
20     - sparse
21     - bc
22     - build-essential
23     - libsdl2-dev
24     - python
25     - python-pyelftools
26     - python3-sphinx
27     - python3-virtualenv
28     - python3-pip
29     - swig
30     - libpython-dev
31     - iasl
32     - grub-efi-ia32-bin
33     - grub-efi-amd64-bin
34     - rpm2cpio
35     - wget
36     - device-tree-compiler
37     - lzop
38     - liblz4-tool
39     - lzma-alone
40     - libisl15
41     - clang-7
42     - srecord
43     - graphviz
44
45 install:
46  # Clone uboot-test-hooks
47  - git clone --depth=1 git://github.com/swarren/uboot-test-hooks.git /tmp/uboot-test-hooks
48  - ln -s travis-ci /tmp/uboot-test-hooks/bin/`hostname`
49  - ln -s travis-ci /tmp/uboot-test-hooks/py/`hostname`
50  # prepare buildman environment
51  - echo -e "[toolchain]\nroot = /usr" > ~/.buildman
52  - echo -e "arc = /tmp/arc_gnu_2018.09_prebuilt_uclibc_le_archs_linux_install" >> ~/.buildman
53  - echo -e "\n[toolchain-alias]\nsh = sh2" >> ~/.buildman
54  - echo -e "x86 = i386" >> ~/.buildman;
55  - echo -e "riscv = riscv64" >> ~/.buildman;
56  - cat ~/.buildman
57  - grub-mkimage --prefix="" -o ~/grub_x86.efi -O i386-efi normal  echo lsefimmap lsefi lsefisystab efinet tftp minicmd
58  - grub-mkimage --prefix="" -o ~/grub_x64.efi -O x86_64-efi normal  echo lsefimmap lsefi lsefisystab efinet tftp minicmd
59  - wget http://mirrors.kernel.org/ubuntu/pool/main/m/mpfr4/libmpfr4_3.1.4-1_amd64.deb && sudo dpkg -i libmpfr4_3.1.4-1_amd64.deb && rm libmpfr4_3.1.4-1_amd64.deb
60
61 env:
62   global:
63     - PATH=/tmp/qemu-install/bin:/tmp/uboot-test-hooks/bin:/usr/bin:/bin:/usr/local/bin
64     - PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci
65     - BUILD_DIR=build
66     - HOSTCC="cc"
67     - HOSTCXX="c++"
68     - QEMU_VERSION="v4.2.0"
69
70 before_script:
71   # install toolchains based on TOOLCHAIN} variable
72   - if [[ "${TOOLCHAIN}" == *m68k* ]]; then ./tools/buildman/buildman --fetch-arch m68k ; fi
73   - if [[ "${TOOLCHAIN}" == *microblaze* ]]; then ./tools/buildman/buildman --fetch-arch microblaze ; fi
74   - if [[ "${TOOLCHAIN}" == *mips* ]]; then ./tools/buildman/buildman --fetch-arch mips ; fi
75   - if [[ "${TOOLCHAIN}" == *sh* ]]; then ./tools/buildman/buildman --fetch-arch sh2 ; fi
76   - if [[ "${TOOLCHAIN}" == *i386* ]]; then
77       ./tools/buildman/buildman --fetch-arch i386;
78     fi
79   - if [[ "${TOOLCHAIN}" == arc ]]; then
80        wget https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/download/arc-2018.09-release/arc_gnu_2018.09_prebuilt_uclibc_le_archs_linux_install.tar.gz &&
81        tar -C /tmp -xf arc_gnu_2018.09_prebuilt_uclibc_le_archs_linux_install.tar.gz;
82     fi
83   - if [[ "${TOOLCHAIN}" == "nds32" ]]; then
84        wget https://github.com/vincentzwc/prebuilt-nds32-toolchain/releases/download/20180521/nds32le-linux-glibc-v3-upstream.tar.gz &&
85        tar -C /tmp -xf nds32le-linux-glibc-v3-upstream.tar.gz &&
86        echo -e "\n[toolchain-prefix]\nnds32 = /tmp/nds32le-linux-glibc-v3-upstream/bin/nds32le-linux-" >> ~/.buildman;
87     fi
88   - if [[ "${TOOLCHAIN}" == *xtensa* ]]; then
89        wget https://github.com/foss-xtensa/toolchain/releases/download/2018.02/x86_64-2018.02-${TOOLCHAIN}.tar.gz &&
90        tar -C /tmp -xf x86_64-2018.02-${TOOLCHAIN}.tar.gz &&
91        echo -e "\n[toolchain-prefix]\nxtensa = /tmp/2018.02/${TOOLCHAIN}/bin/${TOOLCHAIN}-" >> ~/.buildman;
92     fi
93   # If TOOLCHAIN is unset, we're on some flavour of ARM.
94   - if [[ "${TOOLCHAIN}" == "" ]]; then
95        ./tools/buildman/buildman --fetch-arch arm &&
96        ./tools/buildman/buildman --fetch-arch aarch64;
97     fi
98   - if [[ "${TOOLCHAIN}" == "powerpc" ]]; then ./tools/buildman/buildman --fetch-arch powerpc; fi
99   - if [[ "${TOOLCHAIN}" == "riscv" ]]; then
100        ./tools/buildman/buildman --fetch-arch riscv32 &&
101        ./tools/buildman/buildman --fetch-arch riscv64;
102     fi
103   - if [[ "${QEMU_TARGET}" != "" ]]; then
104        git clone git://git.qemu.org/qemu.git /tmp/qemu;
105        pushd /tmp/qemu;
106        git submodule update --init dtc &&
107        git checkout ${QEMU_VERSION} &&
108        ./configure --prefix=/tmp/qemu-install --target-list=${QEMU_TARGET} &&
109        make -j4 all install;
110        popd;
111     fi
112
113   # Build GRUB UEFI targets
114   - if [[ "${QEMU_TARGET}" == "arm-softmmu" ]]; then
115        git clone git://git.savannah.gnu.org/grub.git /tmp/grub &&
116        pushd /tmp/grub &&
117        git checkout grub-2.04 &&
118        ./bootstrap &&
119        ./configure --target=arm --with-platform=efi
120        CC=gcc
121        TARGET_CC=~/.buildman-toolchains/gcc-7.3.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-gcc
122        TARGET_OBJCOPY=~/.buildman-toolchains/gcc-7.3.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-objcopy
123        TARGET_STRIP=~/.buildman-toolchains/gcc-7.3.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-strip
124        TARGET_NM=~/.buildman-toolchains/gcc-7.3.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-nm
125        TARGET_RANLIB=~/.buildman-toolchains/gcc-7.3.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-ranlib &&
126        make -j4 &&
127        ./grub-mkimage -O arm-efi -o ~/grub_arm.efi --prefix= -d
128        grub-core cat chain configfile echo efinet ext2 fat halt help linux
129        lsefisystab loadenv lvm minicmd normal part_msdos part_gpt reboot
130        search search_fs_file search_fs_uuid search_label serial sleep test
131        true &&
132        popd;
133     fi
134   - if [[ "${QEMU_TARGET}" == "aarch64-softmmu" ]]; then
135        git clone git://git.savannah.gnu.org/grub.git /tmp/grub &&
136        pushd /tmp/grub &&
137        git checkout grub-2.04 &&
138        ./bootstrap &&
139        ./configure --target=aarch64 --with-platform=efi
140        CC=gcc
141        TARGET_CC=~/.buildman-toolchains/gcc-7.3.0-nolibc/aarch64-linux/bin/aarch64-linux-gcc
142        TARGET_OBJCOPY=~/.buildman-toolchains/gcc-7.3.0-nolibc/aarch64-linux/bin/aarch64-linux-objcopy
143        TARGET_STRIP=~/.buildman-toolchains/gcc-7.3.0-nolibc/aarch64-linux/bin/aarch64-linux-strip
144        TARGET_NM=~/.buildman-toolchains/gcc-7.3.0-nolibc/aarch64-linux/bin/aarch64-linux-nm
145        TARGET_RANLIB=~/.buildman-toolchains/gcc-7.3.0-nolibc/aarch64-linux/bin/aarch64-linux-ranlib &&
146        make -j4 &&
147        ./grub-mkimage -O arm64-efi -o ~/grub_arm64.efi --prefix= -d
148        grub-core cat chain configfile echo efinet ext2 fat halt help linux
149        lsefisystab loadenv lvm minicmd normal part_msdos part_gpt reboot
150        search search_fs_file search_fs_uuid search_label serial sleep test
151        true &&
152        popd;
153     fi
154   - if [[ "${QEMU_TARGET}" == "riscv32-softmmu" ]]; then
155        git clone git://git.savannah.gnu.org/grub.git /tmp/grub &&
156        pushd /tmp/grub &&
157        git checkout grub-2.04 &&
158        ./bootstrap &&
159        ./configure --target=riscv32 --with-platform=efi
160        CC=gcc
161        TARGET_CC=~/.buildman-toolchains/gcc-7.3.0-nolibc/riscv32-linux/bin/riscv32-linux-gcc
162        TARGET_OBJCOPY=~/.buildman-toolchains/gcc-7.3.0-nolibc/riscv32-linux/bin/riscv32-linux-objcopy
163        TARGET_STRIP=~/.buildman-toolchains/gcc-7.3.0-nolibc/riscv32-linux/bin/riscv32-linux-strip
164        TARGET_NM=~/.buildman-toolchains/gcc-7.3.0-nolibc/riscv32-linux/bin/riscv32-linux-nm
165        TARGET_RANLIB=~/.buildman-toolchains/gcc-7.3.0-nolibc/riscv32-linux/bin/riscv32-linux-ranlib &&
166        make -j4 &&
167        ./grub-mkimage -O riscv32-efi -o ~/grub_riscv32.efi --prefix= -d
168        grub-core cat chain configfile echo efinet ext2 fat halt help linux
169        lsefisystab loadenv lvm minicmd normal part_msdos part_gpt reboot
170        search search_fs_file search_fs_uuid search_label serial sleep test
171        true &&
172        popd;
173     fi
174   - if [[ "${QEMU_TARGET}" == "riscv64-softmmu" ]]; then
175        git clone git://git.savannah.gnu.org/grub.git /tmp/grub &&
176        pushd /tmp/grub &&
177        git checkout grub-2.04 &&
178        ./bootstrap &&
179        ./configure --target=riscv64 --with-platform=efi
180        CC=gcc
181        TARGET_CC=~/.buildman-toolchains/gcc-7.3.0-nolibc/riscv64-linux/bin/riscv64-linux-gcc
182        TARGET_OBJCOPY=~/.buildman-toolchains/gcc-7.3.0-nolibc/riscv64-linux/bin/riscv64-linux-objcopy
183        TARGET_STRIP=~/.buildman-toolchains/gcc-7.3.0-nolibc/riscv64-linux/bin/riscv64-linux-strip
184        TARGET_NM=~/.buildman-toolchains/gcc-7.3.0-nolibc/riscv64-linux/bin/riscv64-linux-nm
185        TARGET_RANLIB=~/.buildman-toolchains/gcc-7.3.0-nolibc/riscv64-linux/bin/riscv64-linux-ranlib &&
186        make -j4 &&
187        ./grub-mkimage -O riscv64-efi -o ~/grub_riscv64.efi --prefix= -d
188        grub-core cat chain configfile echo efinet ext2 fat halt help linux
189        lsefisystab loadenv lvm minicmd normal part_msdos part_gpt reboot
190        search search_fs_file search_fs_uuid search_label serial sleep test
191        true &&
192        popd;
193     fi
194
195 script:
196  # Comments must be outside the command strings below, or the Travis parser
197  # will get confused.
198  #
199  # From buildman, exit code 129 means warnings only.  If we've been asked to
200  # use clang only do one configuration.
201  - if [[ "${BUILDMAN}" != "" ]]; then
202      ret=0;
203      tools/buildman/buildman -P -E ${BUILDMAN} ${OVERRIDE}|| ret=$?;
204      if [[ $ret -ne 0 && $ret -ne 129 ]]; then
205        tools/buildman/buildman -sdeP ${BUILDMAN};
206        exit $ret;
207      fi;
208    fi
209  # "not a_test_which_does_not_exist" is a dummy -k parameter which will
210  # never prevent any test from running. That way, we can always pass
211  # "-k something" even when $TEST_PY_TEST_SPEC doesnt need a custom
212  # value.
213  - export UBOOT_TRAVIS_BUILD_DIR=`cd .. && pwd`/.bm-work/${TEST_PY_BD};
214    cp ~/grub_x86.efi $UBOOT_TRAVIS_BUILD_DIR/;
215    cp ~/grub_x64.efi $UBOOT_TRAVIS_BUILD_DIR/;
216    if [[ -e ~/grub_arm.efi ]]; then
217      cp ~/grub_arm.efi $UBOOT_TRAVIS_BUILD_DIR/;
218    fi;
219    if [[ -e ~/grub_arm64.efi ]]; then
220      cp ~/grub_arm64.efi $UBOOT_TRAVIS_BUILD_DIR/;
221    fi;
222    if [[ -e ~/grub_riscv32.efi ]]; then
223      cp ~/grub_riscv32.efi $UBOOT_TRAVIS_BUILD_DIR/;
224    fi;
225    if [[ -e ~/grub_riscv64.efi ]]; then
226      cp ~/grub_riscv64.efi $UBOOT_TRAVIS_BUILD_DIR/;
227    fi;
228    if [[ "${TEST_PY_BD}" != "" ]]; then
229      virtualenv -p /usr/bin/python3 /tmp/venv;
230      . /tmp/venv/bin/activate;
231      pip install -r test/py/requirements.txt;
232      ./test/py/test.py --bd ${TEST_PY_BD} ${TEST_PY_ID}
233        -k "${TEST_PY_TEST_SPEC:-not a_test_which_does_not_exist}"
234        --build-dir "$UBOOT_TRAVIS_BUILD_DIR";
235      ret=$?;
236      if [[ $ret -ne 0 ]]; then
237        exit $ret;
238      fi;
239      if [[ -n "${TEST_PY_TOOLS}" ]]; then
240        export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt";
241        export PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}";
242        ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test &&
243        ./tools/patman/patman --test &&
244        ./tools/buildman/buildman -t &&
245        ./tools/dtoc/dtoc -t &&
246        make testconfig;
247      fi;
248    fi
249
250 matrix:
251   include:
252   # we need to build by vendor due to 50min time limit for builds
253   # each env setting here is a dedicated build
254     - name: "buildman arc"
255       env:
256         - BUILDMAN="arc"
257           TOOLCHAIN="arc"
258     - name: "buildman arm11 arm7 arm920t arm946es"
259       env:
260         - BUILDMAN="arm11 arm7 arm920t arm946es"
261     - name: "buildman arm926ejs (non-NXP,siemens,at91,kirkwood,spear)"
262       env:
263         - JOB="arm926ejs"
264           BUILDMAN="arm926ejs -x freescale,siemens,at91,kirkwood,spear,omap"
265     - name: "buildman at91 (non arm v7)"
266       env:
267         - BUILDMAN="at91 -x armv7"
268     - name: "buildman at91 (non arm926ejs)"
269       env:
270         - BUILDMAN="at91 -x arm926ejs"
271     - name: "buildman boundary engicam toradex"
272       env:
273         - BUILDMAN="boundary engicam toradex"
274     - name: "buildman ARM bcm"
275       env:
276         - BUILDMAN="bcm -x mips"
277     - name: "buildman NXP ARM32 (catch-all)"
278       env:
279         - BUILDMAN="freescale -x powerpc,m68k,aarch64,ls101,ls102,ls104,ls108,ls20,lx216"
280     - name: "buildman NXP LS101x"
281       env:
282         - BUILDMAN="freescale&ls101"
283     - name: "buildman NXP LS102x"
284       env:
285         - BUILDMAN="freescale&ls102"
286     - name: "buildman NXP LS104x"
287       env:
288         - BUILDMAN="freescale&ls104"
289     - name: "buildman NXP LS108x"
290       env:
291         - BUILDMAN="freescale&ls108"
292     - name: "buildman NXP LS20xx"
293       env:
294         - BUILDMAN="freescale&ls20"
295     - name: "buildman NXP LX216x"
296       env:
297         - BUILDMAN="freescale&lx216"
298     - name: "buildman i.MX6 tqc"
299       env:
300         - BUILDMAN="mx6&tqc"
301     - name: "buildman i.MX6 (catch-all)"
302       env:
303         - BUILDMAN="mx6 -x boundary,engicam,freescale,technexion,toradex,tqc"
304     - name: "buildman i.MX (non-i.MX6 catch-all)"
305       env:
306         - BUILDMAN="mx -x freescale,mx6,toradex,technexion"
307     - name: "buildman keystone 2/3"
308       env:
309         - BUILDMAN="k2 k3"
310     - name: "buildman samsung socfpga"
311       env:
312         - BUILDMAN="samsung socfpga"
313     - name: "buildman spear"
314       env:
315         - BUILDMAN="spear"
316     - name: "buildman sun4i"
317       env:
318         - BUILDMAN="sun4i"
319     - name: "buildman sun5i"
320       env:
321         - BUILDMAN="sun5i"
322     - name: "buildman sun6i"
323       env:
324         - BUILDMAN="sun6i"
325     - name: "buildman sun7i"
326       env:
327         - BUILDMAN="sun7i"
328     - name: "buildman 64bit sun8i"
329       env:
330         - BUILDMAN="sun8i&aarch64 -x orangepi"
331     - name: "buildman 32bit sun8i"
332       env:
333         - BUILDMAN="sun8i&armv7 -x orangepi"
334     - name: "buildman sun9i"
335       env:
336         - BUILDMAN="sun9i"
337     - name: "buildman sun50i"
338       env:
339         - BUILDMAN="sun50i -x orangepi"
340     - name: "buildman catch-all ARM"
341       env:
342         - 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"
343     - name: "buildman sandbox x86"
344       env:
345         - BUILDMAN="sandbox x86"
346           TOOLCHAIN="i386"
347     - name: "buildman technexion"
348       env:
349         - BUILDMAN="technexion"
350     - name: "buildman kirkwood"
351       env:
352         - BUILDMAN="kirkwood"
353     - name: "buildman mvebu"
354       env:
355         - BUILDMAN="mvebu"
356     - name: "buildman m68k"
357       env:
358         - BUILDMAN="m68k"
359           TOOLCHAIN="m68k"
360     - name: "buildman microblaze"
361       env:
362         - BUILDMAN="microblaze"
363           TOOLCHAIN="microblaze"
364     - name: "buildman mips"
365       env:
366         - BUILDMAN="mips"
367           TOOLCHAIN="mips"
368     - name: "buildman non-Freescale PowerPC"
369       env:
370         - BUILDMAN="powerpc -x freescale"
371           TOOLCHAIN="powerpc"
372     - name: "buildman mpc85xx&freescale (excluding many)"
373       env:
374         - BUILDMAN="mpc85xx&freescale -x t208xrdb -x t4qds -x t102* -x p1_p2_rdb_pc -x p1010rdb -x corenet_ds -x b4860qds -x bsc91*"
375           TOOLCHAIN="powerpc"
376     - name: "buildman t208xrdb corenet_ds"
377       env:
378         - BUILDMAN="t208xrdb corenet_ds"
379           TOOLCHAIN="powerpc"
380     - name: "buildman Freescale PowerPC"
381       env:
382         - BUILDMAN="t4qds b4860qds mpc83xx&freescale mpc86xx&freescale"
383           TOOLCHAIN="powerpc"
384     - name: "buildman t102*"
385       env:
386         - BUILDMAN="t102*"
387           TOOLCHAIN="powerpc"
388     - name: "buildman p1_p2_rdb_pc"
389       env:
390         - BUILDMAN="p1_p2_rdb_pc"
391           TOOLCHAIN="powerpc"
392     - name: "buildman p1010rdb bsc91"
393       env:
394         - BUILDMAN="p1010rdb bsc91"
395           TOOLCHAIN="powerpc"
396     - name: "buildman siemens"
397       env:
398         - BUILDMAN="siemens"
399     - name: "buildman tegra"
400       env:
401         - BUILDMAN="tegra -x toradex"
402     - name: "buildman am33xx (no siemens)"
403       env:
404         - BUILDMAN="am33xx -x siemens"
405     - name: "buildman omap"
406       env:
407         - BUILDMAN="omap"
408     - name: "buildman orangepi"
409       env:
410         - BUILDMAN="orangepi"
411     - name: "buildman uniphier"
412       env:
413         - BUILDMAN="uniphier"
414     - name: "buildman catch-all AArch64"
415       env:
416         - BUILDMAN="aarch64 -x bcm,k3,tegra,ls1,ls2,lx216,mvebu,uniphier,sunxi,samsung,socfpga,rk,versal,zynq"
417     - name: "buildman rockchip"
418       env:
419         - BUILDMAN="rk -x orangepi"
420     - name: "buildman sh"
421       env:
422         - BUILDMAN="sh -x arm"
423           TOOLCHAIN="sh"
424     - name: "buildman Zynq* (ARMv7)"
425       env:
426         - BUILDMAN="zynq&armv7"
427     - name: "buildman ZynqMP and Versal"
428       env:
429         - BUILDMAN="versal|zynqmp&aarch64"
430     - name: "buildman xtensa"
431       env:
432         - BUILDMAN="xtensa"
433           TOOLCHAIN="xtensa-dc233c-elf"
434     - name: "buildman riscv"
435       env:
436         - BUILDMAN="riscv"
437           TOOLCHAIN="riscv"
438     - name: "buildman nds32"
439       env:
440         - BUILDMAN="nds32"
441           TOOLCHAIN="nds32"
442
443     # QA jobs for code analytics
444     # static code analysis with cppcheck (we can add --enable=all later)
445     - name: "cppcheck"
446       script:
447         - cppcheck --force --quiet --inline-suppr .
448     # build HTML documentation
449     - name: "htmldocs"
450       script:
451         - make htmldocs
452     # search for TODO within source tree
453     - name: "grep TODO"
454       script:
455         - grep -r TODO .
456     # search for FIXME within source tree
457     - name: "grep FIXME HACK"
458       script:
459         - grep -r FIXME .
460     # search for HACK within source tree and ignore HACKKIT board
461       script:
462         - grep -r HACK . | grep -v HACKKIT
463     # some statistics about the code base
464     - name: "sloccount"
465       script:
466         - sloccount .
467     # ensure all configs have MAINTAINERS entries
468     - name: "Check for configs without MAINTAINERS entry"
469       script:
470         - if [ `./tools/genboardscfg.py -f 2>&1 | wc -l` -ne 0 ]; then exit 1; fi
471     # Ensure host tools build
472     - name: "Build tools-only"
473       script:
474         - make tools-only_config tools-only -j$(nproc)
475     # Ensure env tools build
476     - name: "Build envtools"
477       script:
478         - make tools-only_config envtools -j$(nproc)
479
480     # test/py
481     - name: "test/py sandbox"
482       env:
483         - TEST_PY_BD="sandbox"
484           BUILDMAN="^sandbox$"
485           TOOLCHAIN="i386"
486     - name: "test/py sandbox with clang"
487       env:
488         - TEST_PY_BD="sandbox"
489           BUILDMAN="^sandbox$"
490           OVERRIDE="-O clang-7"
491     - name: "test/py sandbox_spl"
492       env:
493         - TEST_PY_BD="sandbox_spl"
494           TEST_PY_TEST_SPEC="test_ofplatdata"
495           BUILDMAN="^sandbox$"
496           TOOLCHAIN="i386"
497           TEST_PY_TOOLS="yes"
498     - name: "test/py sandbox_flattree"
499       env:
500         - TEST_PY_BD="sandbox_flattree"
501           BUILDMAN="^sandbox_flattree$"
502           TOOLCHAIN="i386"
503     - name: "test/py evb-ast2500"
504       env:
505         - TEST_PY_BD="evb-ast2500"
506           TEST_PY_ID="--id qemu"
507           QEMU_TARGET="arm-softmmu"
508           BUILDMAN="^evb-ast2500$"
509     - name: "test/py vexpress_ca15_tc2"
510       env:
511         - TEST_PY_BD="vexpress_ca15_tc2"
512           TEST_PY_ID="--id qemu"
513           QEMU_TARGET="arm-softmmu"
514           BUILDMAN="^vexpress_ca15_tc2$"
515     - name: "test/py vexpress_ca9x4"
516       env:
517         - TEST_PY_BD="vexpress_ca9x4"
518           TEST_PY_ID="--id qemu"
519           QEMU_TARGET="arm-softmmu"
520           BUILDMAN="^vexpress_ca9x4$"
521     - name: "test/py integratorcp_cm926ejs"
522       env:
523         - TEST_PY_BD="integratorcp_cm926ejs"
524           TEST_PY_TEST_SPEC="not sleep"
525           TEST_PY_ID="--id qemu"
526           QEMU_TARGET="arm-softmmu"
527           BUILDMAN="^integratorcp_cm926ejs$"
528     - name: "test/py qemu_arm"
529       env:
530         - TEST_PY_BD="qemu_arm"
531           TEST_PY_TEST_SPEC="not sleep"
532           QEMU_TARGET="arm-softmmu"
533           BUILDMAN="^qemu_arm$"
534     - name: "test/py qemu_arm64"
535       env:
536         - TEST_PY_BD="qemu_arm64"
537           TEST_PY_TEST_SPEC="not sleep"
538           QEMU_TARGET="aarch64-softmmu"
539           BUILDMAN="^qemu_arm64$"
540     - name: "test/py qemu_mips"
541       env:
542         - TEST_PY_BD="qemu_mips"
543           TEST_PY_TEST_SPEC="not sleep"
544           QEMU_TARGET="mips-softmmu"
545           BUILDMAN="^qemu_mips$"
546           TOOLCHAIN="mips"
547     - name: "test/py qemu_mipsel"
548       env:
549         - TEST_PY_BD="qemu_mipsel"
550           TEST_PY_TEST_SPEC="not sleep"
551           QEMU_TARGET="mipsel-softmmu"
552           BUILDMAN="^qemu_mipsel$"
553           TOOLCHAIN="mips"
554     - name: "test/py qemu_mips64"
555       env:
556         - TEST_PY_BD="qemu_mips64"
557           TEST_PY_TEST_SPEC="not sleep"
558           QEMU_TARGET="mips64-softmmu"
559           BUILDMAN="^qemu_mips64$"
560           TOOLCHAIN="mips"
561     - name: "test/py qemu_mips64el"
562       env:
563         - TEST_PY_BD="qemu_mips64el"
564           TEST_PY_TEST_SPEC="not sleep"
565           QEMU_TARGET="mips64el-softmmu"
566           BUILDMAN="^qemu_mips64el$"
567           TOOLCHAIN="mips"
568     - name: "test/py qemu-ppce500"
569       env:
570         - TEST_PY_BD="qemu-ppce500"
571           TEST_PY_TEST_SPEC="not sleep"
572           QEMU_TARGET="ppc-softmmu"
573           BUILDMAN="^qemu-ppce500$"
574           TOOLCHAIN="powerpc"
575     - name: "test/py qemu-riscv64"
576       env:
577         - TEST_PY_BD="qemu-riscv64"
578           TEST_PY_TEST_SPEC="not sleep"
579           QEMU_TARGET="riscv64-softmmu"
580           BUILDMAN="^qemu-riscv64$"
581           TOOLCHAIN="riscv"
582     - name: "test/py qemu-x86"
583       env:
584         - TEST_PY_BD="qemu-x86"
585           TEST_PY_TEST_SPEC="not sleep"
586           QEMU_TARGET="i386-softmmu"
587           BUILDMAN="^qemu-x86$"
588           TOOLCHAIN="i386"
589           BUILD_ROM="yes"
590     - name: "test/py qemu-x86_64"
591       env:
592         - TEST_PY_BD="qemu-x86_64"
593           TEST_PY_TEST_SPEC="not sleep"
594           QEMU_TARGET="x86_64-softmmu"
595           BUILDMAN="^qemu-x86_64$"
596           TOOLCHAIN="i386"
597           BUILD_ROM="yes"
598     - name: "test/py xilinx_zynq_virt"
599       env:
600         - TEST_PY_BD="xilinx_zynq_virt"
601           TEST_PY_TEST_SPEC="not sleep"
602           QEMU_TARGET="arm-softmmu"
603           TEST_PY_ID="--id qemu"
604           BUILDMAN="^xilinx_zynq_virt$"
605     - name: "test/py xilinx_versal_virt"
606       env:
607         - TEST_PY_BD="xilinx_versal_virt"
608           TEST_PY_TEST_SPEC="not sleep"
609           QEMU_TARGET="aarch64-softmmu"
610           TEST_PY_ID="--id qemu"
611           BUILDMAN="^xilinx_versal_virt$"
612     - name: "test/py xtfpga"
613       env:
614         - TEST_PY_BD="xtfpga"
615           TEST_PY_TEST_SPEC="not sleep"
616           QEMU_TARGET="xtensa-softmmu"
617           TEST_PY_ID="--id qemu"
618           BUILDMAN="^xtfpga$"
619           TOOLCHAIN="xtensa-dc233c-elf"
620
621 # TODO make it perfect ;-r