Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 2 | # Copyright Roger Meier <r.meier@siemens.com> |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 3 | |
| 4 | # build U-Boot on Travis CI - https://travis-ci.org/ |
| 5 | |
Tom Rini | 2bb76f3 | 2016-10-20 11:03:19 -0400 | [diff] [blame] | 6 | sudo: required |
Tom Rini | 8b13e9b | 2019-10-08 08:39:26 -0400 | [diff] [blame] | 7 | dist: bionic |
Stephen Warren | e4c1b4d | 2016-02-03 10:41:34 -0700 | [diff] [blame] | 8 | |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 9 | language: c |
| 10 | |
Roger Meier | 050c756 | 2016-01-25 20:22:41 +0100 | [diff] [blame] | 11 | addons: |
| 12 | apt: |
Tom Rini | 4030f16 | 2018-10-07 14:20:30 -0400 | [diff] [blame] | 13 | sources: |
| 14 | - ubuntu-toolchain-r-test |
Tom Rini | 8b13e9b | 2019-10-08 08:39:26 -0400 | [diff] [blame] | 15 | - llvm-toolchain-bionic-7 |
Roger Meier | 050c756 | 2016-01-25 20:22:41 +0100 | [diff] [blame] | 16 | packages: |
Bin Meng | 091b48e | 2020-03-28 07:25:25 -0700 | [diff] [blame] | 17 | - autopoint |
Roger Meier | 050c756 | 2016-01-25 20:22:41 +0100 | [diff] [blame] | 18 | - cppcheck |
| 19 | - sloccount |
| 20 | - sparse |
| 21 | - bc |
| 22 | - build-essential |
Simon Glass | 96d0cd4 | 2020-02-03 07:36:12 -0700 | [diff] [blame] | 23 | - libsdl2-dev |
Stephen Warren | 07bf212 | 2016-02-08 18:23:35 -0700 | [diff] [blame] | 24 | - python |
Tom Rini | 085b897 | 2019-10-24 11:59:27 -0400 | [diff] [blame] | 25 | - python-pyelftools |
Tom Rini | f36f15b | 2020-02-24 15:10:36 -0500 | [diff] [blame] | 26 | - python3-sphinx |
Tom Rini | 085b897 | 2019-10-24 11:59:27 -0400 | [diff] [blame] | 27 | - python3-virtualenv |
| 28 | - python3-pip |
Tom Rini | f2b0c00 | 2017-01-23 17:40:22 -0500 | [diff] [blame] | 29 | - swig |
| 30 | - libpython-dev |
Tom Rini | cd402e0 | 2016-10-20 11:08:26 -0400 | [diff] [blame] | 31 | - iasl |
Alexander Graf | 0e4e38a | 2016-11-18 13:18:00 +0100 | [diff] [blame] | 32 | - grub-efi-ia32-bin |
Bin Meng | 66a3a9c | 2018-10-13 20:52:12 -0700 | [diff] [blame] | 33 | - grub-efi-amd64-bin |
Alexander Graf | 0e4e38a | 2016-11-18 13:18:00 +0100 | [diff] [blame] | 34 | - rpm2cpio |
| 35 | - wget |
Tom Rini | 36dd5f1 | 2017-09-23 13:00:57 -0400 | [diff] [blame] | 36 | - device-tree-compiler |
Tom Rini | 706f077 | 2018-03-14 14:02:49 -0400 | [diff] [blame] | 37 | - lzop |
Simon Glass | 83d73c2 | 2018-09-14 04:57:26 -0600 | [diff] [blame] | 38 | - liblz4-tool |
Simon Glass | 4997a7e | 2019-07-08 13:18:52 -0600 | [diff] [blame] | 39 | - lzma-alone |
Tom Rini | 4030f16 | 2018-10-07 14:20:30 -0400 | [diff] [blame] | 40 | - libisl15 |
| 41 | - clang-7 |
Marek Vasut | aa2e9c9 | 2019-03-14 01:01:24 +0100 | [diff] [blame] | 42 | - srecord |
Heinrich Schuchardt | bb9a76e | 2020-02-21 18:24:00 +0100 | [diff] [blame] | 43 | - graphviz |
AKASHI Takahiro | 5bf1ea6 | 2020-04-14 11:51:53 +0900 | [diff] [blame] | 44 | - coreutils |
| 45 | - util-linux |
| 46 | - dosfstools |
| 47 | - gdisk |
| 48 | - mount |
| 49 | - mtools |
| 50 | - openssl |
| 51 | - sbsigntool |
Daniel Schwierzeck | 4c58d27 | 2018-05-10 07:15:53 -0400 | [diff] [blame] | 52 | |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 53 | install: |
Tom Rini | 5ac5861 | 2016-10-20 11:26:40 -0400 | [diff] [blame] | 54 | # Clone uboot-test-hooks |
| 55 | - git clone --depth=1 git://github.com/swarren/uboot-test-hooks.git /tmp/uboot-test-hooks |
| 56 | - ln -s travis-ci /tmp/uboot-test-hooks/bin/`hostname` |
| 57 | - ln -s travis-ci /tmp/uboot-test-hooks/py/`hostname` |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 58 | # prepare buildman environment |
Stephen Warren | 43a68e4 | 2016-10-26 11:05:31 -0600 | [diff] [blame] | 59 | - echo -e "[toolchain]\nroot = /usr" > ~/.buildman |
Alexey Brodkin | f0d964f | 2018-12-03 17:09:13 +0300 | [diff] [blame] | 60 | - echo -e "arc = /tmp/arc_gnu_2018.09_prebuilt_uclibc_le_archs_linux_install" >> ~/.buildman |
Tom Rini | 14d39c9 | 2019-11-05 10:44:16 -0500 | [diff] [blame] | 61 | - echo -e "\n[toolchain-alias]\nsh = sh2" >> ~/.buildman |
| 62 | - echo -e "x86 = i386" >> ~/.buildman; |
| 63 | - echo -e "riscv = riscv64" >> ~/.buildman; |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 64 | - cat ~/.buildman |
Tom Rini | 8b13e9b | 2019-10-08 08:39:26 -0400 | [diff] [blame] | 65 | - grub-mkimage --prefix="" -o ~/grub_x86.efi -O i386-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd |
| 66 | - grub-mkimage --prefix="" -o ~/grub_x64.efi -O x86_64-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd |
Tom Rini | 8b13e9b | 2019-10-08 08:39:26 -0400 | [diff] [blame] | 67 | - 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 |
AKASHI Takahiro | 5bf1ea6 | 2020-04-14 11:51:53 +0900 | [diff] [blame] | 68 | - wget http://mirrors.kernel.org/ubuntu/pool/universe/e/efitools/efitools_1.8.1-0ubuntu2_amd64.deb && sudo dpkg -i efitools_1.8.1-0ubuntu2_amd64.deb && rm efitools_1.8.1-0ubuntu2_amd64.deb |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 69 | |
| 70 | env: |
| 71 | global: |
AKASHI Takahiro | 5bf1ea6 | 2020-04-14 11:51:53 +0900 | [diff] [blame] | 72 | - PATH=/tmp/qemu-install/bin:/tmp/uboot-test-hooks/bin:/sbin:/usr/bin:/bin:/usr/local/bin |
Alexander Graf | e019660 | 2016-11-17 18:31:04 +0100 | [diff] [blame] | 73 | - PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 74 | - BUILD_DIR=build |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 75 | - HOSTCC="cc" |
| 76 | - HOSTCXX="c++" |
Tom Rini | 88366b9 | 2020-01-11 08:07:03 -0500 | [diff] [blame] | 77 | - QEMU_VERSION="v4.2.0" |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 78 | |
| 79 | before_script: |
Roger Meier | 050c756 | 2016-01-25 20:22:41 +0100 | [diff] [blame] | 80 | # install toolchains based on TOOLCHAIN} variable |
Roger Meier | 050c756 | 2016-01-25 20:22:41 +0100 | [diff] [blame] | 81 | - if [[ "${TOOLCHAIN}" == *m68k* ]]; then ./tools/buildman/buildman --fetch-arch m68k ; fi |
Tom Rini | cd402e0 | 2016-10-20 11:08:26 -0400 | [diff] [blame] | 82 | - if [[ "${TOOLCHAIN}" == *microblaze* ]]; then ./tools/buildman/buildman --fetch-arch microblaze ; fi |
Roger Meier | 050c756 | 2016-01-25 20:22:41 +0100 | [diff] [blame] | 83 | - if [[ "${TOOLCHAIN}" == *mips* ]]; then ./tools/buildman/buildman --fetch-arch mips ; fi |
Daniel Schwierzeck | 4c58d27 | 2018-05-10 07:15:53 -0400 | [diff] [blame] | 84 | - if [[ "${TOOLCHAIN}" == *sh* ]]; then ./tools/buildman/buildman --fetch-arch sh2 ; fi |
Bin Meng | 0533fb8 | 2018-10-08 16:53:54 -0700 | [diff] [blame] | 85 | - if [[ "${TOOLCHAIN}" == *i386* ]]; then |
| 86 | ./tools/buildman/buildman --fetch-arch i386; |
Stephen Warren | 2ded4bf | 2016-10-26 11:05:33 -0600 | [diff] [blame] | 87 | fi |
Alexey Brodkin | 80e4bbf | 2017-04-21 13:35:43 +0300 | [diff] [blame] | 88 | - if [[ "${TOOLCHAIN}" == arc ]]; then |
Alexey Brodkin | f0d964f | 2018-12-03 17:09:13 +0300 | [diff] [blame] | 89 | 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 && |
| 90 | tar -C /tmp -xf arc_gnu_2018.09_prebuilt_uclibc_le_archs_linux_install.tar.gz; |
Alexey Brodkin | 80e4bbf | 2017-04-21 13:35:43 +0300 | [diff] [blame] | 91 | fi |
Rick Chen | f715ed4 | 2019-01-14 13:36:15 +0800 | [diff] [blame] | 92 | - if [[ "${TOOLCHAIN}" == "nds32" ]]; then |
| 93 | wget https://github.com/vincentzwc/prebuilt-nds32-toolchain/releases/download/20180521/nds32le-linux-glibc-v3-upstream.tar.gz && |
| 94 | tar -C /tmp -xf nds32le-linux-glibc-v3-upstream.tar.gz && |
| 95 | echo -e "\n[toolchain-prefix]\nnds32 = /tmp/nds32le-linux-glibc-v3-upstream/bin/nds32le-linux-" >> ~/.buildman; |
| 96 | fi |
Max Filippov | b6f3a12 | 2018-02-07 15:30:01 -0800 | [diff] [blame] | 97 | - if [[ "${TOOLCHAIN}" == *xtensa* ]]; then |
| 98 | wget https://github.com/foss-xtensa/toolchain/releases/download/2018.02/x86_64-2018.02-${TOOLCHAIN}.tar.gz && |
| 99 | tar -C /tmp -xf x86_64-2018.02-${TOOLCHAIN}.tar.gz && |
| 100 | echo -e "\n[toolchain-prefix]\nxtensa = /tmp/2018.02/${TOOLCHAIN}/bin/${TOOLCHAIN}-" >> ~/.buildman; |
| 101 | fi |
Tom Rini | 8399538 | 2017-04-14 19:47:51 -0400 | [diff] [blame] | 102 | # If TOOLCHAIN is unset, we're on some flavour of ARM. |
| 103 | - if [[ "${TOOLCHAIN}" == "" ]]; then |
Daniel Schwierzeck | 4c58d27 | 2018-05-10 07:15:53 -0400 | [diff] [blame] | 104 | ./tools/buildman/buildman --fetch-arch arm && |
| 105 | ./tools/buildman/buildman --fetch-arch aarch64; |
Tom Rini | 8399538 | 2017-04-14 19:47:51 -0400 | [diff] [blame] | 106 | fi |
Daniel Schwierzeck | 4c58d27 | 2018-05-10 07:15:53 -0400 | [diff] [blame] | 107 | - if [[ "${TOOLCHAIN}" == "powerpc" ]]; then ./tools/buildman/buildman --fetch-arch powerpc; fi |
Rick Chen | b6896fc | 2018-01-12 14:57:09 +0800 | [diff] [blame] | 108 | - if [[ "${TOOLCHAIN}" == "riscv" ]]; then |
Bin Meng | 9eed8cd | 2020-03-28 07:25:26 -0700 | [diff] [blame] | 109 | ./tools/buildman/buildman --fetch-arch riscv32 && |
Bin Meng | b5135e4 | 2018-08-30 06:17:06 -0700 | [diff] [blame] | 110 | ./tools/buildman/buildman --fetch-arch riscv64; |
Rick Chen | b6896fc | 2018-01-12 14:57:09 +0800 | [diff] [blame] | 111 | fi |
Tom Rini | 3c643fb | 2016-12-07 11:20:40 -0500 | [diff] [blame] | 112 | - if [[ "${QEMU_TARGET}" != "" ]]; then |
| 113 | git clone git://git.qemu.org/qemu.git /tmp/qemu; |
| 114 | pushd /tmp/qemu; |
| 115 | git submodule update --init dtc && |
Michal Simek | 984a1fe | 2019-01-16 15:18:43 +0100 | [diff] [blame] | 116 | git checkout ${QEMU_VERSION} && |
Tom Rini | 3c643fb | 2016-12-07 11:20:40 -0500 | [diff] [blame] | 117 | ./configure --prefix=/tmp/qemu-install --target-list=${QEMU_TARGET} && |
| 118 | make -j4 all install; |
| 119 | popd; |
| 120 | fi |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 121 | |
Bin Meng | 091b48e | 2020-03-28 07:25:25 -0700 | [diff] [blame] | 122 | # Build GRUB UEFI targets |
| 123 | - if [[ "${QEMU_TARGET}" == "arm-softmmu" ]]; then |
| 124 | git clone git://git.savannah.gnu.org/grub.git /tmp/grub && |
| 125 | pushd /tmp/grub && |
| 126 | git checkout grub-2.04 && |
| 127 | ./bootstrap && |
| 128 | ./configure --target=arm --with-platform=efi |
| 129 | CC=gcc |
Bin Meng | ddd4d99 | 2020-04-06 06:07:00 -0700 | [diff] [blame] | 130 | TARGET_CC=~/.buildman-toolchains/gcc-9.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-gcc |
| 131 | TARGET_OBJCOPY=~/.buildman-toolchains/gcc-9.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-objcopy |
| 132 | TARGET_STRIP=~/.buildman-toolchains/gcc-9.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-strip |
| 133 | TARGET_NM=~/.buildman-toolchains/gcc-9.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-nm |
| 134 | TARGET_RANLIB=~/.buildman-toolchains/gcc-9.2.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-ranlib && |
Bin Meng | 091b48e | 2020-03-28 07:25:25 -0700 | [diff] [blame] | 135 | make -j4 && |
| 136 | ./grub-mkimage -O arm-efi -o ~/grub_arm.efi --prefix= -d |
| 137 | grub-core cat chain configfile echo efinet ext2 fat halt help linux |
| 138 | lsefisystab loadenv lvm minicmd normal part_msdos part_gpt reboot |
| 139 | search search_fs_file search_fs_uuid search_label serial sleep test |
| 140 | true && |
| 141 | popd; |
| 142 | fi |
| 143 | - if [[ "${QEMU_TARGET}" == "aarch64-softmmu" ]]; then |
| 144 | git clone git://git.savannah.gnu.org/grub.git /tmp/grub && |
| 145 | pushd /tmp/grub && |
| 146 | git checkout grub-2.04 && |
| 147 | ./bootstrap && |
| 148 | ./configure --target=aarch64 --with-platform=efi |
| 149 | CC=gcc |
Bin Meng | ddd4d99 | 2020-04-06 06:07:00 -0700 | [diff] [blame] | 150 | TARGET_CC=~/.buildman-toolchains/gcc-9.2.0-nolibc/aarch64-linux/bin/aarch64-linux-gcc |
| 151 | TARGET_OBJCOPY=~/.buildman-toolchains/gcc-9.2.0-nolibc/aarch64-linux/bin/aarch64-linux-objcopy |
| 152 | TARGET_STRIP=~/.buildman-toolchains/gcc-9.2.0-nolibc/aarch64-linux/bin/aarch64-linux-strip |
| 153 | TARGET_NM=~/.buildman-toolchains/gcc-9.2.0-nolibc/aarch64-linux/bin/aarch64-linux-nm |
| 154 | TARGET_RANLIB=~/.buildman-toolchains/gcc-9.2.0-nolibc/aarch64-linux/bin/aarch64-linux-ranlib && |
Bin Meng | 091b48e | 2020-03-28 07:25:25 -0700 | [diff] [blame] | 155 | make -j4 && |
| 156 | ./grub-mkimage -O arm64-efi -o ~/grub_arm64.efi --prefix= -d |
| 157 | grub-core cat chain configfile echo efinet ext2 fat halt help linux |
| 158 | lsefisystab loadenv lvm minicmd normal part_msdos part_gpt reboot |
| 159 | search search_fs_file search_fs_uuid search_label serial sleep test |
| 160 | true && |
| 161 | popd; |
| 162 | fi |
Bin Meng | 9eed8cd | 2020-03-28 07:25:26 -0700 | [diff] [blame] | 163 | - if [[ "${QEMU_TARGET}" == "riscv32-softmmu" ]]; then |
| 164 | git clone git://git.savannah.gnu.org/grub.git /tmp/grub && |
| 165 | pushd /tmp/grub && |
| 166 | git checkout grub-2.04 && |
| 167 | ./bootstrap && |
| 168 | ./configure --target=riscv32 --with-platform=efi |
| 169 | CC=gcc |
Bin Meng | ddd4d99 | 2020-04-06 06:07:00 -0700 | [diff] [blame] | 170 | TARGET_CC=~/.buildman-toolchains/gcc-9.2.0-nolibc/riscv32-linux/bin/riscv32-linux-gcc |
| 171 | TARGET_OBJCOPY=~/.buildman-toolchains/gcc-9.2.0-nolibc/riscv32-linux/bin/riscv32-linux-objcopy |
| 172 | TARGET_STRIP=~/.buildman-toolchains/gcc-9.2.0-nolibc/riscv32-linux/bin/riscv32-linux-strip |
| 173 | TARGET_NM=~/.buildman-toolchains/gcc-9.2.0-nolibc/riscv32-linux/bin/riscv32-linux-nm |
| 174 | TARGET_RANLIB=~/.buildman-toolchains/gcc-9.2.0-nolibc/riscv32-linux/bin/riscv32-linux-ranlib && |
Bin Meng | 9eed8cd | 2020-03-28 07:25:26 -0700 | [diff] [blame] | 175 | make -j4 && |
| 176 | ./grub-mkimage -O riscv32-efi -o ~/grub_riscv32.efi --prefix= -d |
| 177 | grub-core cat chain configfile echo efinet ext2 fat halt help linux |
| 178 | lsefisystab loadenv lvm minicmd normal part_msdos part_gpt reboot |
| 179 | search search_fs_file search_fs_uuid search_label serial sleep test |
| 180 | true && |
| 181 | popd; |
| 182 | fi |
| 183 | - if [[ "${QEMU_TARGET}" == "riscv64-softmmu" ]]; then |
| 184 | git clone git://git.savannah.gnu.org/grub.git /tmp/grub && |
| 185 | pushd /tmp/grub && |
| 186 | git checkout grub-2.04 && |
| 187 | ./bootstrap && |
| 188 | ./configure --target=riscv64 --with-platform=efi |
| 189 | CC=gcc |
Bin Meng | ddd4d99 | 2020-04-06 06:07:00 -0700 | [diff] [blame] | 190 | TARGET_CC=~/.buildman-toolchains/gcc-9.2.0-nolibc/riscv64-linux/bin/riscv64-linux-gcc |
| 191 | TARGET_OBJCOPY=~/.buildman-toolchains/gcc-9.2.0-nolibc/riscv64-linux/bin/riscv64-linux-objcopy |
| 192 | TARGET_STRIP=~/.buildman-toolchains/gcc-9.2.0-nolibc/riscv64-linux/bin/riscv64-linux-strip |
| 193 | TARGET_NM=~/.buildman-toolchains/gcc-9.2.0-nolibc/riscv64-linux/bin/riscv64-linux-nm |
| 194 | TARGET_RANLIB=~/.buildman-toolchains/gcc-9.2.0-nolibc/riscv64-linux/bin/riscv64-linux-ranlib && |
Bin Meng | 9eed8cd | 2020-03-28 07:25:26 -0700 | [diff] [blame] | 195 | make -j4 && |
| 196 | ./grub-mkimage -O riscv64-efi -o ~/grub_riscv64.efi --prefix= -d |
| 197 | grub-core cat chain configfile echo efinet ext2 fat halt help linux |
| 198 | lsefisystab loadenv lvm minicmd normal part_msdos part_gpt reboot |
| 199 | search search_fs_file search_fs_uuid search_label serial sleep test |
| 200 | true && |
| 201 | popd; |
| 202 | fi |
Bin Meng | 49fb28a | 2020-03-28 07:25:29 -0700 | [diff] [blame] | 203 | - if [[ "${TEST_PY_BD}" == "qemu-riscv32_spl" ]]; then |
| 204 | wget -O - https://github.com/riscv/opensbi/releases/download/v0.6/opensbi-0.6-rv32-bin.tar.xz | tar -C /tmp -xJ; |
| 205 | export OPENSBI=/tmp/opensbi-0.6-rv32-bin/platform/qemu/virt/firmware/fw_dynamic.bin; |
| 206 | fi |
| 207 | - if [[ "${TEST_PY_BD}" == "qemu-riscv64_spl" ]]; then |
| 208 | wget -O - https://github.com/riscv/opensbi/releases/download/v0.6/opensbi-0.6-rv64-bin.tar.xz | tar -C /tmp -xJ; |
| 209 | export OPENSBI=/tmp/opensbi-0.6-rv64-bin/platform/qemu/virt/firmware/fw_dynamic.bin; |
| 210 | fi |
Bin Meng | 091b48e | 2020-03-28 07:25:25 -0700 | [diff] [blame] | 211 | |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 212 | script: |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 213 | # Comments must be outside the command strings below, or the Travis parser |
| 214 | # will get confused. |
| 215 | # |
Simon Glass | dd5c954 | 2020-03-18 09:42:57 -0600 | [diff] [blame] | 216 | # If we've been asked to use clang only do one configuration. |
| 217 | # |
Simon Glass | e7c05b1 | 2020-03-18 09:42:49 -0600 | [diff] [blame] | 218 | # Build a selection of boards if TEST_PY_BD is empty |
Simon Glass | 573605d | 2020-03-18 09:42:52 -0600 | [diff] [blame] | 219 | - if [[ "${BUILDMAN}" != "" ]]; then |
Simon Glass | 08140db | 2020-04-19 17:02:32 -0600 | [diff] [blame] | 220 | ret=0 |
| 221 | tools/buildman/buildman -P -E -W ${BUILDMAN} ${OVERRIDE} || ret=$?; |
Simon Glass | dd5c954 | 2020-03-18 09:42:57 -0600 | [diff] [blame] | 222 | if [[ $ret -ne 0 ]]; then |
Simon Glass | b52f5a1 | 2020-03-18 09:42:53 -0600 | [diff] [blame] | 223 | tools/buildman/buildman -seP ${BUILDMAN}; |
Stephen Warren | 0c5145f | 2016-10-26 11:05:32 -0600 | [diff] [blame] | 224 | exit $ret; |
| 225 | fi; |
Roger Meier | 050c756 | 2016-01-25 20:22:41 +0100 | [diff] [blame] | 226 | fi |
Simon Glass | e7c05b1 | 2020-03-18 09:42:49 -0600 | [diff] [blame] | 227 | # Build just the one board needed for testing, if TEST_PY_BD is non-empty |
Simon Glass | 4080d09 | 2020-03-18 09:42:56 -0600 | [diff] [blame] | 228 | # Note: "${var:+"-k $var"}" expands to "" if $var is empty, "-k $var" if not |
Simon Glass | f08c8ef | 2020-03-18 09:42:48 -0600 | [diff] [blame] | 229 | - if [[ "${TEST_PY_BD}" != "" ]]; then |
Simon Glass | e7c05b1 | 2020-03-18 09:42:49 -0600 | [diff] [blame] | 230 | export UBOOT_TRAVIS_BUILD_DIR=`cd .. && pwd`/${TEST_PY_BD}; |
Simon Glass | f08c8ef | 2020-03-18 09:42:48 -0600 | [diff] [blame] | 231 | cp ~/grub_x86.efi $UBOOT_TRAVIS_BUILD_DIR/; |
| 232 | cp ~/grub_x64.efi $UBOOT_TRAVIS_BUILD_DIR/; |
| 233 | if [[ -e ~/grub_arm.efi ]]; then |
| 234 | cp ~/grub_arm.efi $UBOOT_TRAVIS_BUILD_DIR/; |
| 235 | fi; |
| 236 | if [[ -e ~/grub_arm64.efi ]]; then |
| 237 | cp ~/grub_arm64.efi $UBOOT_TRAVIS_BUILD_DIR/; |
| 238 | fi; |
| 239 | if [[ -e ~/grub_riscv32.efi ]]; then |
| 240 | cp ~/grub_riscv32.efi $UBOOT_TRAVIS_BUILD_DIR/; |
| 241 | fi; |
| 242 | if [[ -e ~/grub_riscv64.efi ]]; then |
| 243 | cp ~/grub_riscv64.efi $UBOOT_TRAVIS_BUILD_DIR/; |
| 244 | fi; |
Simon Glass | 7ec1255 | 2020-03-18 09:43:00 -0600 | [diff] [blame] | 245 | tools/buildman/buildman -o ${UBOOT_TRAVIS_BUILD_DIR} -w -E -W -e |
| 246 | --board ${TEST_PY_BD} ${OVERRIDE} || exit; |
Tom Rini | 085b897 | 2019-10-24 11:59:27 -0400 | [diff] [blame] | 247 | virtualenv -p /usr/bin/python3 /tmp/venv; |
| 248 | . /tmp/venv/bin/activate; |
| 249 | pip install -r test/py/requirements.txt; |
| 250 | ./test/py/test.py --bd ${TEST_PY_BD} ${TEST_PY_ID} |
Simon Glass | 4080d09 | 2020-03-18 09:42:56 -0600 | [diff] [blame] | 251 | ${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"} |
Simon Glass | cec1e85 | 2020-03-18 09:42:59 -0600 | [diff] [blame] | 252 | --build-dir "$UBOOT_TRAVIS_BUILD_DIR" || exit; |
Tom Rini | 26a426a | 2020-02-11 12:41:14 -0500 | [diff] [blame] | 253 | if [[ -n "${TEST_PY_TOOLS}" ]]; then |
| 254 | export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt"; |
| 255 | export PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}"; |
| 256 | ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test && |
| 257 | ./tools/patman/patman --test && |
| 258 | ./tools/buildman/buildman -t && |
Tom Rini | 7261833 | 2020-03-11 18:11:15 -0400 | [diff] [blame] | 259 | ./tools/dtoc/dtoc -t && |
| 260 | make testconfig; |
Tom Rini | 26a426a | 2020-02-11 12:41:14 -0500 | [diff] [blame] | 261 | fi; |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 262 | fi |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 263 | |
| 264 | matrix: |
| 265 | include: |
| 266 | # we need to build by vendor due to 50min time limit for builds |
| 267 | # each env setting here is a dedicated build |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 268 | - name: "buildman arc" |
| 269 | env: |
Alexey Brodkin | 80e4bbf | 2017-04-21 13:35:43 +0300 | [diff] [blame] | 270 | - BUILDMAN="arc" |
| 271 | TOOLCHAIN="arc" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 272 | - name: "buildman arm11 arm7 arm920t arm946es" |
| 273 | env: |
Tom Rini | dca268a | 2018-05-10 07:15:54 -0400 | [diff] [blame] | 274 | - BUILDMAN="arm11 arm7 arm920t arm946es" |
Eugen Hristev | 7252274 | 2019-04-01 11:04:03 +0000 | [diff] [blame] | 275 | - name: "buildman arm926ejs (non-NXP,siemens,at91,kirkwood,spear)" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 276 | env: |
Tom Rini | baade49 | 2016-11-05 19:34:49 -0400 | [diff] [blame] | 277 | - JOB="arm926ejs" |
Eugen Hristev | 7252274 | 2019-04-01 11:04:03 +0000 | [diff] [blame] | 278 | BUILDMAN="arm926ejs -x freescale,siemens,at91,kirkwood,spear,omap" |
| 279 | - name: "buildman at91 (non arm v7)" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 280 | env: |
Eugen Hristev | 7252274 | 2019-04-01 11:04:03 +0000 | [diff] [blame] | 281 | - BUILDMAN="at91 -x armv7" |
| 282 | - name: "buildman at91 (non arm926ejs)" |
| 283 | env: |
| 284 | - BUILDMAN="at91 -x arm926ejs" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 285 | - name: "buildman boundary engicam toradex" |
| 286 | env: |
| 287 | - BUILDMAN="boundary engicam toradex" |
Tom Rini | 7a779ed | 2019-10-13 11:21:56 -0400 | [diff] [blame] | 288 | - name: "buildman ARM bcm" |
Tom Rini | 50aeb3a | 2019-10-09 11:01:06 -0400 | [diff] [blame] | 289 | env: |
Tom Rini | 7a779ed | 2019-10-13 11:21:56 -0400 | [diff] [blame] | 290 | - BUILDMAN="bcm -x mips" |
Heiko Schocher | af77162 | 2019-11-22 11:17:29 +0100 | [diff] [blame] | 291 | - name: "buildman NXP ARM32 (catch-all)" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 292 | env: |
Heiko Schocher | af77162 | 2019-11-22 11:17:29 +0100 | [diff] [blame] | 293 | - BUILDMAN="freescale -x powerpc,m68k,aarch64,ls101,ls102,ls104,ls108,ls20,lx216" |
| 294 | - name: "buildman NXP LS101x" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 295 | env: |
Heiko Schocher | af77162 | 2019-11-22 11:17:29 +0100 | [diff] [blame] | 296 | - BUILDMAN="freescale&ls101" |
| 297 | - name: "buildman NXP LS102x" |
Prabhakar Kushwaha | 5845ac1 | 2019-06-19 17:47:12 +0530 | [diff] [blame] | 298 | env: |
Heiko Schocher | af77162 | 2019-11-22 11:17:29 +0100 | [diff] [blame] | 299 | - BUILDMAN="freescale&ls102" |
| 300 | - name: "buildman NXP LS104x" |
Tom Rini | 818408e | 2018-10-23 11:58:44 -0400 | [diff] [blame] | 301 | env: |
Heiko Schocher | af77162 | 2019-11-22 11:17:29 +0100 | [diff] [blame] | 302 | - BUILDMAN="freescale&ls104" |
| 303 | - name: "buildman NXP LS108x" |
Tom Rini | aa13261 | 2019-01-16 07:19:26 -0500 | [diff] [blame] | 304 | env: |
Heiko Schocher | af77162 | 2019-11-22 11:17:29 +0100 | [diff] [blame] | 305 | - BUILDMAN="freescale&ls108" |
| 306 | - name: "buildman NXP LS20xx" |
Tom Rini | aa13261 | 2019-01-16 07:19:26 -0500 | [diff] [blame] | 307 | env: |
Heiko Schocher | af77162 | 2019-11-22 11:17:29 +0100 | [diff] [blame] | 308 | - BUILDMAN="freescale&ls20" |
| 309 | - name: "buildman NXP LX216x" |
Prabhakar Kushwaha | 5845ac1 | 2019-06-19 17:47:12 +0530 | [diff] [blame] | 310 | env: |
Heiko Schocher | af77162 | 2019-11-22 11:17:29 +0100 | [diff] [blame] | 311 | - BUILDMAN="freescale&lx216" |
Tom Rini | 984c005 | 2019-10-15 07:27:13 -0400 | [diff] [blame] | 312 | - name: "buildman i.MX6 tqc" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 313 | env: |
Tom Rini | 984c005 | 2019-10-15 07:27:13 -0400 | [diff] [blame] | 314 | - BUILDMAN="mx6&tqc" |
| 315 | - name: "buildman i.MX6 (catch-all)" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 316 | env: |
Tom Rini | 984c005 | 2019-10-15 07:27:13 -0400 | [diff] [blame] | 317 | - BUILDMAN="mx6 -x boundary,engicam,freescale,technexion,toradex,tqc" |
| 318 | - name: "buildman i.MX (non-i.MX6 catch-all)" |
| 319 | env: |
| 320 | - BUILDMAN="mx -x freescale,mx6,toradex,technexion" |
Tom Rini | 548aefa | 2019-10-09 11:02:21 -0400 | [diff] [blame] | 321 | - name: "buildman keystone 2/3" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 322 | env: |
Tom Rini | 548aefa | 2019-10-09 11:02:21 -0400 | [diff] [blame] | 323 | - BUILDMAN="k2 k3" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 324 | - name: "buildman samsung socfpga" |
| 325 | env: |
Tom Rini | dca268a | 2018-05-10 07:15:54 -0400 | [diff] [blame] | 326 | - BUILDMAN="samsung socfpga" |
Tom Rini | 818408e | 2018-10-23 11:58:44 -0400 | [diff] [blame] | 327 | - name: "buildman spear" |
| 328 | env: |
| 329 | - BUILDMAN="spear" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 330 | - name: "buildman sun4i" |
| 331 | env: |
Tom Rini | baade49 | 2016-11-05 19:34:49 -0400 | [diff] [blame] | 332 | - BUILDMAN="sun4i" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 333 | - name: "buildman sun5i" |
| 334 | env: |
Tom Rini | baade49 | 2016-11-05 19:34:49 -0400 | [diff] [blame] | 335 | - BUILDMAN="sun5i" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 336 | - name: "buildman sun6i" |
| 337 | env: |
Tom Rini | baade49 | 2016-11-05 19:34:49 -0400 | [diff] [blame] | 338 | - BUILDMAN="sun6i" |
Tuomas Tynkkynen | b5ddd07 | 2018-09-08 00:53:18 +0300 | [diff] [blame] | 339 | - name: "buildman sun7i" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 340 | env: |
Tom Rini | baade49 | 2016-11-05 19:34:49 -0400 | [diff] [blame] | 341 | - BUILDMAN="sun7i" |
Tom Rini | 95b2215 | 2019-10-15 07:27:14 -0400 | [diff] [blame] | 342 | - name: "buildman 64bit sun8i" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 343 | env: |
Heiko Schocher | 56d35f2 | 2019-11-21 06:50:12 +0100 | [diff] [blame] | 344 | - BUILDMAN="sun8i&aarch64 -x orangepi" |
Tom Rini | 95b2215 | 2019-10-15 07:27:14 -0400 | [diff] [blame] | 345 | - name: "buildman 32bit sun8i" |
| 346 | env: |
Heiko Schocher | 56d35f2 | 2019-11-21 06:50:12 +0100 | [diff] [blame] | 347 | - BUILDMAN="sun8i&armv7 -x orangepi" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 348 | - name: "buildman sun9i" |
| 349 | env: |
Tom Rini | baade49 | 2016-11-05 19:34:49 -0400 | [diff] [blame] | 350 | - BUILDMAN="sun9i" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 351 | - name: "buildman sun50i" |
| 352 | env: |
Heiko Schocher | 56d35f2 | 2019-11-21 06:50:12 +0100 | [diff] [blame] | 353 | - BUILDMAN="sun50i -x orangepi" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 354 | - name: "buildman catch-all ARM" |
| 355 | env: |
Tom Rini | 2d4cd12 | 2020-03-09 13:01:57 -0400 | [diff] [blame] | 356 | - 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" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 357 | - name: "buildman sandbox x86" |
| 358 | env: |
Roger Meier | 050c756 | 2016-01-25 20:22:41 +0100 | [diff] [blame] | 359 | - BUILDMAN="sandbox x86" |
Bin Meng | 0533fb8 | 2018-10-08 16:53:54 -0700 | [diff] [blame] | 360 | TOOLCHAIN="i386" |
Tom Rini | 984c005 | 2019-10-15 07:27:13 -0400 | [diff] [blame] | 361 | - name: "buildman technexion" |
| 362 | env: |
| 363 | - BUILDMAN="technexion" |
Stefan Roese | b684d40 | 2019-04-25 11:53:18 +0200 | [diff] [blame] | 364 | - name: "buildman kirkwood" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 365 | env: |
Stefan Roese | b684d40 | 2019-04-25 11:53:18 +0200 | [diff] [blame] | 366 | - BUILDMAN="kirkwood" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 367 | - name: "buildman mvebu" |
| 368 | env: |
Stefan Roese | 0bf1bc4 | 2016-12-01 13:52:08 +0100 | [diff] [blame] | 369 | - BUILDMAN="mvebu" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 370 | - name: "buildman m68k" |
| 371 | env: |
Roger Meier | 050c756 | 2016-01-25 20:22:41 +0100 | [diff] [blame] | 372 | - BUILDMAN="m68k" |
| 373 | TOOLCHAIN="m68k" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 374 | - name: "buildman microblaze" |
| 375 | env: |
Tom Rini | 0d3aaa3 | 2017-10-07 15:54:18 -0400 | [diff] [blame] | 376 | - BUILDMAN="microblaze" |
Tom Rini | 76761e7 | 2016-10-20 11:23:15 -0400 | [diff] [blame] | 377 | TOOLCHAIN="microblaze" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 378 | - name: "buildman mips" |
| 379 | env: |
Roger Meier | 050c756 | 2016-01-25 20:22:41 +0100 | [diff] [blame] | 380 | - BUILDMAN="mips" |
| 381 | TOOLCHAIN="mips" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 382 | - name: "buildman non-Freescale PowerPC" |
| 383 | env: |
| 384 | - BUILDMAN="powerpc -x freescale" |
Daniel Schwierzeck | 4c58d27 | 2018-05-10 07:15:53 -0400 | [diff] [blame] | 385 | TOOLCHAIN="powerpc" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 386 | - name: "buildman mpc85xx&freescale (excluding many)" |
| 387 | env: |
Tom Rini | dca268a | 2018-05-10 07:15:54 -0400 | [diff] [blame] | 388 | - BUILDMAN="mpc85xx&freescale -x t208xrdb -x t4qds -x t102* -x p1_p2_rdb_pc -x p1010rdb -x corenet_ds -x b4860qds -x bsc91*" |
Daniel Schwierzeck | 4c58d27 | 2018-05-10 07:15:53 -0400 | [diff] [blame] | 389 | TOOLCHAIN="powerpc" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 390 | - name: "buildman t208xrdb corenet_ds" |
| 391 | env: |
Tom Rini | dca268a | 2018-05-10 07:15:54 -0400 | [diff] [blame] | 392 | - BUILDMAN="t208xrdb corenet_ds" |
Daniel Schwierzeck | 4c58d27 | 2018-05-10 07:15:53 -0400 | [diff] [blame] | 393 | TOOLCHAIN="powerpc" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 394 | - name: "buildman Freescale PowerPC" |
| 395 | env: |
Tom Rini | dca268a | 2018-05-10 07:15:54 -0400 | [diff] [blame] | 396 | - BUILDMAN="t4qds b4860qds mpc83xx&freescale mpc86xx&freescale" |
Daniel Schwierzeck | 4c58d27 | 2018-05-10 07:15:53 -0400 | [diff] [blame] | 397 | TOOLCHAIN="powerpc" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 398 | - name: "buildman t102*" |
| 399 | env: |
Philipp Tomsich | 9464dd5 | 2017-12-20 11:06:31 +0100 | [diff] [blame] | 400 | - BUILDMAN="t102*" |
Daniel Schwierzeck | 4c58d27 | 2018-05-10 07:15:53 -0400 | [diff] [blame] | 401 | TOOLCHAIN="powerpc" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 402 | - name: "buildman p1_p2_rdb_pc" |
| 403 | env: |
Tom Rini | afdf09a | 2017-01-21 17:58:08 -0500 | [diff] [blame] | 404 | - BUILDMAN="p1_p2_rdb_pc" |
Daniel Schwierzeck | 4c58d27 | 2018-05-10 07:15:53 -0400 | [diff] [blame] | 405 | TOOLCHAIN="powerpc" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 406 | - name: "buildman p1010rdb bsc91" |
| 407 | env: |
Tom Rini | dca268a | 2018-05-10 07:15:54 -0400 | [diff] [blame] | 408 | - BUILDMAN="p1010rdb bsc91" |
Daniel Schwierzeck | 4c58d27 | 2018-05-10 07:15:53 -0400 | [diff] [blame] | 409 | TOOLCHAIN="powerpc" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 410 | - name: "buildman siemens" |
| 411 | env: |
Roger Meier | 050c756 | 2016-01-25 20:22:41 +0100 | [diff] [blame] | 412 | - BUILDMAN="siemens" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 413 | - name: "buildman tegra" |
| 414 | env: |
| 415 | - BUILDMAN="tegra -x toradex" |
| 416 | - name: "buildman am33xx (no siemens)" |
| 417 | env: |
| 418 | - BUILDMAN="am33xx -x siemens" |
| 419 | - name: "buildman omap" |
| 420 | env: |
Tom Rini | dca268a | 2018-05-10 07:15:54 -0400 | [diff] [blame] | 421 | - BUILDMAN="omap" |
Heiko Schocher | 56d35f2 | 2019-11-21 06:50:12 +0100 | [diff] [blame] | 422 | - name: "buildman orangepi" |
| 423 | env: |
| 424 | - BUILDMAN="orangepi" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 425 | - name: "buildman uniphier" |
| 426 | env: |
Tom Rini | 5eba31c | 2016-10-29 17:11:17 -0400 | [diff] [blame] | 427 | - BUILDMAN="uniphier" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 428 | - name: "buildman catch-all AArch64" |
| 429 | env: |
Tom Rini | 2d4cd12 | 2020-03-09 13:01:57 -0400 | [diff] [blame] | 430 | - BUILDMAN="aarch64 -x bcm,k3,tegra,ls1,ls2,lx216,mvebu,uniphier,sunxi,samsung,socfpga,rk,versal,zynq" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 431 | - name: "buildman rockchip" |
| 432 | env: |
Tom Rini | 2d4cd12 | 2020-03-09 13:01:57 -0400 | [diff] [blame] | 433 | - BUILDMAN="rk -x orangepi" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 434 | - name: "buildman sh" |
| 435 | env: |
| 436 | - BUILDMAN="sh -x arm" |
Daniel Schwierzeck | 4c58d27 | 2018-05-10 07:15:53 -0400 | [diff] [blame] | 437 | TOOLCHAIN="sh" |
Tom Rini | 568356d | 2019-10-14 18:12:59 -0400 | [diff] [blame] | 438 | - name: "buildman Zynq* (ARMv7)" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 439 | env: |
Tom Rini | 568356d | 2019-10-14 18:12:59 -0400 | [diff] [blame] | 440 | - BUILDMAN="zynq&armv7" |
| 441 | - name: "buildman ZynqMP and Versal" |
| 442 | env: |
| 443 | - BUILDMAN="versal|zynqmp&aarch64" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 444 | - name: "buildman xtensa" |
| 445 | env: |
Tom Rini | 76761e7 | 2016-10-20 11:23:15 -0400 | [diff] [blame] | 446 | - BUILDMAN="xtensa" |
Max Filippov | b6f3a12 | 2018-02-07 15:30:01 -0800 | [diff] [blame] | 447 | TOOLCHAIN="xtensa-dc233c-elf" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 448 | - name: "buildman riscv" |
| 449 | env: |
Rick Chen | b6896fc | 2018-01-12 14:57:09 +0800 | [diff] [blame] | 450 | - BUILDMAN="riscv" |
| 451 | TOOLCHAIN="riscv" |
Rick Chen | f715ed4 | 2019-01-14 13:36:15 +0800 | [diff] [blame] | 452 | - name: "buildman nds32" |
| 453 | env: |
| 454 | - BUILDMAN="nds32" |
| 455 | TOOLCHAIN="nds32" |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 456 | |
| 457 | # QA jobs for code analytics |
| 458 | # static code analysis with cppcheck (we can add --enable=all later) |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 459 | - name: "cppcheck" |
Stephen Warren | d788221 | 2016-10-24 16:41:48 -0600 | [diff] [blame] | 460 | script: |
Simon Glass | 4ee7f52 | 2020-04-05 14:35:43 -0600 | [diff] [blame] | 461 | - cppcheck -j$(nproc) --force --quiet --inline-suppr . |
Heinrich Schuchardt | bb9a76e | 2020-02-21 18:24:00 +0100 | [diff] [blame] | 462 | # build HTML documentation |
| 463 | - name: "htmldocs" |
| 464 | script: |
| 465 | - make htmldocs |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 466 | # search for TODO within source tree |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 467 | - name: "grep TODO" |
Stephen Warren | d788221 | 2016-10-24 16:41:48 -0600 | [diff] [blame] | 468 | script: |
Tom Rini | c85b52e | 2016-10-20 11:24:52 -0400 | [diff] [blame] | 469 | - grep -r TODO . |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 470 | # search for FIXME within source tree |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 471 | - name: "grep FIXME HACK" |
Stephen Warren | d788221 | 2016-10-24 16:41:48 -0600 | [diff] [blame] | 472 | script: |
Tom Rini | c85b52e | 2016-10-20 11:24:52 -0400 | [diff] [blame] | 473 | - grep -r FIXME . |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 474 | # search for HACK within source tree and ignore HACKKIT board |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 475 | script: |
| 476 | - grep -r HACK . | grep -v HACKKIT |
| 477 | # some statistics about the code base |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 478 | - name: "sloccount" |
Stephen Warren | d788221 | 2016-10-24 16:41:48 -0600 | [diff] [blame] | 479 | script: |
Tom Rini | c85b52e | 2016-10-20 11:24:52 -0400 | [diff] [blame] | 480 | - sloccount . |
Tom Rini | ee16878 | 2018-12-06 16:39:43 -0500 | [diff] [blame] | 481 | # ensure all configs have MAINTAINERS entries |
| 482 | - name: "Check for configs without MAINTAINERS entry" |
| 483 | script: |
| 484 | - if [ `./tools/genboardscfg.py -f 2>&1 | wc -l` -ne 0 ]; then exit 1; fi |
Otavio Salvador | 80870e2 | 2018-12-07 19:00:41 -0500 | [diff] [blame] | 485 | # Ensure host tools build |
| 486 | - name: "Build tools-only" |
| 487 | script: |
| 488 | - make tools-only_config tools-only -j$(nproc) |
Pierre-Jean Texier | 1f3910d | 2019-08-26 13:06:18 +0200 | [diff] [blame] | 489 | # Ensure env tools build |
| 490 | - name: "Build envtools" |
| 491 | script: |
| 492 | - make tools-only_config envtools -j$(nproc) |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 493 | |
Stephen Warren | 07bf212 | 2016-02-08 18:23:35 -0700 | [diff] [blame] | 494 | # test/py |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 495 | - name: "test/py sandbox" |
| 496 | env: |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 497 | - TEST_PY_BD="sandbox" |
Bin Meng | 0533fb8 | 2018-10-08 16:53:54 -0700 | [diff] [blame] | 498 | TOOLCHAIN="i386" |
Tom Rini | 4030f16 | 2018-10-07 14:20:30 -0400 | [diff] [blame] | 499 | - name: "test/py sandbox with clang" |
| 500 | env: |
| 501 | - TEST_PY_BD="sandbox" |
Tom Rini | 626b038 | 2019-10-26 13:48:41 -0400 | [diff] [blame] | 502 | OVERRIDE="-O clang-7" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 503 | - name: "test/py sandbox_spl" |
| 504 | env: |
Tom Rini | 40c8d26 | 2017-08-07 15:24:50 -0400 | [diff] [blame] | 505 | - TEST_PY_BD="sandbox_spl" |
Simon Glass | e28e9db | 2020-03-18 09:42:58 -0600 | [diff] [blame] | 506 | TEST_PY_TEST_SPEC="test_ofplatdata or test_handoff" |
Bin Meng | 0533fb8 | 2018-10-08 16:53:54 -0700 | [diff] [blame] | 507 | TOOLCHAIN="i386" |
Simon Glass | f2d0778 | 2017-11-26 20:26:00 -0700 | [diff] [blame] | 508 | TEST_PY_TOOLS="yes" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 509 | - name: "test/py sandbox_flattree" |
| 510 | env: |
Tom Rini | 40c8d26 | 2017-08-07 15:24:50 -0400 | [diff] [blame] | 511 | - TEST_PY_BD="sandbox_flattree" |
Bin Meng | 0533fb8 | 2018-10-08 16:53:54 -0700 | [diff] [blame] | 512 | TOOLCHAIN="i386" |
Joel Stanley | 998dc83 | 2019-07-04 11:05:17 +0930 | [diff] [blame] | 513 | - name: "test/py evb-ast2500" |
| 514 | env: |
| 515 | - TEST_PY_BD="evb-ast2500" |
| 516 | TEST_PY_ID="--id qemu" |
| 517 | QEMU_TARGET="arm-softmmu" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 518 | - name: "test/py vexpress_ca15_tc2" |
| 519 | env: |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 520 | - TEST_PY_BD="vexpress_ca15_tc2" |
| 521 | TEST_PY_ID="--id qemu" |
Tom Rini | 3c643fb | 2016-12-07 11:20:40 -0500 | [diff] [blame] | 522 | QEMU_TARGET="arm-softmmu" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 523 | - name: "test/py vexpress_ca9x4" |
| 524 | env: |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 525 | - TEST_PY_BD="vexpress_ca9x4" |
| 526 | TEST_PY_ID="--id qemu" |
Tom Rini | 3c643fb | 2016-12-07 11:20:40 -0500 | [diff] [blame] | 527 | QEMU_TARGET="arm-softmmu" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 528 | - name: "test/py integratorcp_cm926ejs" |
| 529 | env: |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 530 | - TEST_PY_BD="integratorcp_cm926ejs" |
Alexander Graf | 7899284 | 2016-11-17 18:31:07 +0100 | [diff] [blame] | 531 | TEST_PY_TEST_SPEC="not sleep" |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 532 | TEST_PY_ID="--id qemu" |
Tom Rini | 3c643fb | 2016-12-07 11:20:40 -0500 | [diff] [blame] | 533 | QEMU_TARGET="arm-softmmu" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 534 | - name: "test/py qemu_arm" |
| 535 | env: |
Tuomas Tynkkynen | 7b09dff | 2017-09-19 23:18:08 +0300 | [diff] [blame] | 536 | - TEST_PY_BD="qemu_arm" |
| 537 | TEST_PY_TEST_SPEC="not sleep" |
| 538 | QEMU_TARGET="arm-softmmu" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 539 | - name: "test/py qemu_arm64" |
| 540 | env: |
Tuomas Tynkkynen | a5bee50 | 2018-01-11 16:11:26 +0200 | [diff] [blame] | 541 | - TEST_PY_BD="qemu_arm64" |
| 542 | TEST_PY_TEST_SPEC="not sleep" |
| 543 | QEMU_TARGET="aarch64-softmmu" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 544 | - name: "test/py qemu_mips" |
| 545 | env: |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 546 | - TEST_PY_BD="qemu_mips" |
| 547 | TEST_PY_TEST_SPEC="not sleep" |
Tom Rini | 3c643fb | 2016-12-07 11:20:40 -0500 | [diff] [blame] | 548 | QEMU_TARGET="mips-softmmu" |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 549 | TOOLCHAIN="mips" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 550 | - name: "test/py qemu_mipsel" |
| 551 | env: |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 552 | - TEST_PY_BD="qemu_mipsel" |
| 553 | TEST_PY_TEST_SPEC="not sleep" |
Tom Rini | 3c643fb | 2016-12-07 11:20:40 -0500 | [diff] [blame] | 554 | QEMU_TARGET="mipsel-softmmu" |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 555 | TOOLCHAIN="mips" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 556 | - name: "test/py qemu_mips64" |
| 557 | env: |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 558 | - TEST_PY_BD="qemu_mips64" |
| 559 | TEST_PY_TEST_SPEC="not sleep" |
Tom Rini | 3c643fb | 2016-12-07 11:20:40 -0500 | [diff] [blame] | 560 | QEMU_TARGET="mips64-softmmu" |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 561 | TOOLCHAIN="mips" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 562 | - name: "test/py qemu_mips64el" |
| 563 | env: |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 564 | - TEST_PY_BD="qemu_mips64el" |
| 565 | TEST_PY_TEST_SPEC="not sleep" |
Tom Rini | 3c643fb | 2016-12-07 11:20:40 -0500 | [diff] [blame] | 566 | QEMU_TARGET="mips64el-softmmu" |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 567 | TOOLCHAIN="mips" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 568 | - name: "test/py qemu-ppce500" |
| 569 | env: |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 570 | - TEST_PY_BD="qemu-ppce500" |
| 571 | TEST_PY_TEST_SPEC="not sleep" |
Tom Rini | 3c643fb | 2016-12-07 11:20:40 -0500 | [diff] [blame] | 572 | QEMU_TARGET="ppc-softmmu" |
Daniel Schwierzeck | 4c58d27 | 2018-05-10 07:15:53 -0400 | [diff] [blame] | 573 | TOOLCHAIN="powerpc" |
Bin Meng | a379d33 | 2020-03-28 07:25:27 -0700 | [diff] [blame] | 574 | - name: "test/py qemu-riscv32" |
| 575 | env: |
| 576 | - TEST_PY_BD="qemu-riscv32" |
| 577 | TEST_PY_TEST_SPEC="not sleep" |
| 578 | QEMU_TARGET="riscv32-softmmu" |
Bin Meng | a379d33 | 2020-03-28 07:25:27 -0700 | [diff] [blame] | 579 | TOOLCHAIN="riscv" |
Heinrich Schuchardt | 22c7b7d | 2019-07-18 06:33:58 +0200 | [diff] [blame] | 580 | - name: "test/py qemu-riscv64" |
| 581 | env: |
| 582 | - TEST_PY_BD="qemu-riscv64" |
| 583 | TEST_PY_TEST_SPEC="not sleep" |
| 584 | QEMU_TARGET="riscv64-softmmu" |
Heinrich Schuchardt | 22c7b7d | 2019-07-18 06:33:58 +0200 | [diff] [blame] | 585 | TOOLCHAIN="riscv" |
Bin Meng | 49fb28a | 2020-03-28 07:25:29 -0700 | [diff] [blame] | 586 | - name: "test/py qemu-riscv32_spl" |
| 587 | env: |
| 588 | - TEST_PY_BD="qemu-riscv32_spl" |
| 589 | TEST_PY_TEST_SPEC="not sleep" |
| 590 | QEMU_TARGET="riscv32-softmmu" |
Bin Meng | 49fb28a | 2020-03-28 07:25:29 -0700 | [diff] [blame] | 591 | TOOLCHAIN="riscv" |
| 592 | - name: "test/py qemu-riscv64_spl" |
| 593 | env: |
| 594 | - TEST_PY_BD="qemu-riscv64_spl" |
| 595 | TEST_PY_TEST_SPEC="not sleep" |
| 596 | QEMU_TARGET="riscv64-softmmu" |
Bin Meng | 49fb28a | 2020-03-28 07:25:29 -0700 | [diff] [blame] | 597 | TOOLCHAIN="riscv" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 598 | - name: "test/py qemu-x86" |
| 599 | env: |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 600 | - TEST_PY_BD="qemu-x86" |
| 601 | TEST_PY_TEST_SPEC="not sleep" |
Tom Rini | 3c643fb | 2016-12-07 11:20:40 -0500 | [diff] [blame] | 602 | QEMU_TARGET="i386-softmmu" |
Bin Meng | 0533fb8 | 2018-10-08 16:53:54 -0700 | [diff] [blame] | 603 | TOOLCHAIN="i386" |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 604 | BUILD_ROM="yes" |
Bin Meng | 3fdfca7 | 2018-10-13 20:52:14 -0700 | [diff] [blame] | 605 | - name: "test/py qemu-x86_64" |
| 606 | env: |
| 607 | - TEST_PY_BD="qemu-x86_64" |
| 608 | TEST_PY_TEST_SPEC="not sleep" |
| 609 | QEMU_TARGET="x86_64-softmmu" |
Bin Meng | 3fdfca7 | 2018-10-13 20:52:14 -0700 | [diff] [blame] | 610 | TOOLCHAIN="i386" |
| 611 | BUILD_ROM="yes" |
Michal Simek | f7c6ee7 | 2020-02-13 15:03:29 +0100 | [diff] [blame] | 612 | - name: "test/py xilinx_zynq_virt" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 613 | env: |
Michal Simek | f7c6ee7 | 2020-02-13 15:03:29 +0100 | [diff] [blame] | 614 | - TEST_PY_BD="xilinx_zynq_virt" |
Michal Simek | 41122d3 | 2016-12-14 09:47:23 +0100 | [diff] [blame] | 615 | TEST_PY_TEST_SPEC="not sleep" |
| 616 | QEMU_TARGET="arm-softmmu" |
| 617 | TEST_PY_ID="--id qemu" |
Michal Simek | d9eaae3 | 2018-12-20 08:40:25 +0100 | [diff] [blame] | 618 | - name: "test/py xilinx_versal_virt" |
| 619 | env: |
| 620 | - TEST_PY_BD="xilinx_versal_virt" |
| 621 | TEST_PY_TEST_SPEC="not sleep" |
| 622 | QEMU_TARGET="aarch64-softmmu" |
| 623 | TEST_PY_ID="--id qemu" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 624 | - name: "test/py xtfpga" |
| 625 | env: |
Max Filippov | 4d69009 | 2018-02-07 15:30:03 -0800 | [diff] [blame] | 626 | - TEST_PY_BD="xtfpga" |
| 627 | TEST_PY_TEST_SPEC="not sleep" |
| 628 | QEMU_TARGET="xtensa-softmmu" |
| 629 | TEST_PY_ID="--id qemu" |
Max Filippov | 4d69009 | 2018-02-07 15:30:03 -0800 | [diff] [blame] | 630 | TOOLCHAIN="xtensa-dc233c-elf" |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 631 | |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 632 | # TODO make it perfect ;-r |