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 | dd5c954 | 2020-03-18 09:42:57 -0600 | [diff] [blame] | 220 | tools/buildman/buildman -P -E -W ${BUILDMAN} ${OVERRIDE}; |
| 221 | if [[ $ret -ne 0 ]]; then |
Simon Glass | b52f5a1 | 2020-03-18 09:42:53 -0600 | [diff] [blame] | 222 | tools/buildman/buildman -seP ${BUILDMAN}; |
Stephen Warren | 0c5145f | 2016-10-26 11:05:32 -0600 | [diff] [blame] | 223 | exit $ret; |
| 224 | fi; |
Roger Meier | 050c756 | 2016-01-25 20:22:41 +0100 | [diff] [blame] | 225 | fi |
Simon Glass | e7c05b1 | 2020-03-18 09:42:49 -0600 | [diff] [blame] | 226 | # 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] | 227 | # 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] | 228 | - if [[ "${TEST_PY_BD}" != "" ]]; then |
Simon Glass | e7c05b1 | 2020-03-18 09:42:49 -0600 | [diff] [blame] | 229 | export UBOOT_TRAVIS_BUILD_DIR=`cd .. && pwd`/${TEST_PY_BD}; |
Simon Glass | f08c8ef | 2020-03-18 09:42:48 -0600 | [diff] [blame] | 230 | cp ~/grub_x86.efi $UBOOT_TRAVIS_BUILD_DIR/; |
| 231 | cp ~/grub_x64.efi $UBOOT_TRAVIS_BUILD_DIR/; |
| 232 | if [[ -e ~/grub_arm.efi ]]; then |
| 233 | cp ~/grub_arm.efi $UBOOT_TRAVIS_BUILD_DIR/; |
| 234 | fi; |
| 235 | if [[ -e ~/grub_arm64.efi ]]; then |
| 236 | cp ~/grub_arm64.efi $UBOOT_TRAVIS_BUILD_DIR/; |
| 237 | fi; |
| 238 | if [[ -e ~/grub_riscv32.efi ]]; then |
| 239 | cp ~/grub_riscv32.efi $UBOOT_TRAVIS_BUILD_DIR/; |
| 240 | fi; |
| 241 | if [[ -e ~/grub_riscv64.efi ]]; then |
| 242 | cp ~/grub_riscv64.efi $UBOOT_TRAVIS_BUILD_DIR/; |
| 243 | fi; |
Simon Glass | 7ec1255 | 2020-03-18 09:43:00 -0600 | [diff] [blame] | 244 | tools/buildman/buildman -o ${UBOOT_TRAVIS_BUILD_DIR} -w -E -W -e |
| 245 | --board ${TEST_PY_BD} ${OVERRIDE} || exit; |
Tom Rini | 085b897 | 2019-10-24 11:59:27 -0400 | [diff] [blame] | 246 | virtualenv -p /usr/bin/python3 /tmp/venv; |
| 247 | . /tmp/venv/bin/activate; |
| 248 | pip install -r test/py/requirements.txt; |
| 249 | ./test/py/test.py --bd ${TEST_PY_BD} ${TEST_PY_ID} |
Simon Glass | 4080d09 | 2020-03-18 09:42:56 -0600 | [diff] [blame] | 250 | ${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"} |
Simon Glass | cec1e85 | 2020-03-18 09:42:59 -0600 | [diff] [blame] | 251 | --build-dir "$UBOOT_TRAVIS_BUILD_DIR" || exit; |
Tom Rini | 26a426a | 2020-02-11 12:41:14 -0500 | [diff] [blame] | 252 | if [[ -n "${TEST_PY_TOOLS}" ]]; then |
| 253 | export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt"; |
| 254 | export PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}"; |
| 255 | ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test && |
| 256 | ./tools/patman/patman --test && |
| 257 | ./tools/buildman/buildman -t && |
Tom Rini | 7261833 | 2020-03-11 18:11:15 -0400 | [diff] [blame] | 258 | ./tools/dtoc/dtoc -t && |
| 259 | make testconfig; |
Tom Rini | 26a426a | 2020-02-11 12:41:14 -0500 | [diff] [blame] | 260 | fi; |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 261 | fi |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 262 | |
| 263 | matrix: |
| 264 | include: |
| 265 | # we need to build by vendor due to 50min time limit for builds |
| 266 | # each env setting here is a dedicated build |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 267 | - name: "buildman arc" |
| 268 | env: |
Alexey Brodkin | 80e4bbf | 2017-04-21 13:35:43 +0300 | [diff] [blame] | 269 | - BUILDMAN="arc" |
| 270 | TOOLCHAIN="arc" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 271 | - name: "buildman arm11 arm7 arm920t arm946es" |
| 272 | env: |
Tom Rini | dca268a | 2018-05-10 07:15:54 -0400 | [diff] [blame] | 273 | - BUILDMAN="arm11 arm7 arm920t arm946es" |
Eugen Hristev | 7252274 | 2019-04-01 11:04:03 +0000 | [diff] [blame] | 274 | - name: "buildman arm926ejs (non-NXP,siemens,at91,kirkwood,spear)" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 275 | env: |
Tom Rini | baade49 | 2016-11-05 19:34:49 -0400 | [diff] [blame] | 276 | - JOB="arm926ejs" |
Eugen Hristev | 7252274 | 2019-04-01 11:04:03 +0000 | [diff] [blame] | 277 | BUILDMAN="arm926ejs -x freescale,siemens,at91,kirkwood,spear,omap" |
| 278 | - name: "buildman at91 (non arm v7)" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 279 | env: |
Eugen Hristev | 7252274 | 2019-04-01 11:04:03 +0000 | [diff] [blame] | 280 | - BUILDMAN="at91 -x armv7" |
| 281 | - name: "buildman at91 (non arm926ejs)" |
| 282 | env: |
| 283 | - BUILDMAN="at91 -x arm926ejs" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 284 | - name: "buildman boundary engicam toradex" |
| 285 | env: |
| 286 | - BUILDMAN="boundary engicam toradex" |
Tom Rini | 7a779ed | 2019-10-13 11:21:56 -0400 | [diff] [blame] | 287 | - name: "buildman ARM bcm" |
Tom Rini | 50aeb3a | 2019-10-09 11:01:06 -0400 | [diff] [blame] | 288 | env: |
Tom Rini | 7a779ed | 2019-10-13 11:21:56 -0400 | [diff] [blame] | 289 | - BUILDMAN="bcm -x mips" |
Heiko Schocher | af77162 | 2019-11-22 11:17:29 +0100 | [diff] [blame] | 290 | - name: "buildman NXP ARM32 (catch-all)" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 291 | env: |
Heiko Schocher | af77162 | 2019-11-22 11:17:29 +0100 | [diff] [blame] | 292 | - BUILDMAN="freescale -x powerpc,m68k,aarch64,ls101,ls102,ls104,ls108,ls20,lx216" |
| 293 | - name: "buildman NXP LS101x" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 294 | env: |
Heiko Schocher | af77162 | 2019-11-22 11:17:29 +0100 | [diff] [blame] | 295 | - BUILDMAN="freescale&ls101" |
| 296 | - name: "buildman NXP LS102x" |
Prabhakar Kushwaha | 5845ac1 | 2019-06-19 17:47:12 +0530 | [diff] [blame] | 297 | env: |
Heiko Schocher | af77162 | 2019-11-22 11:17:29 +0100 | [diff] [blame] | 298 | - BUILDMAN="freescale&ls102" |
| 299 | - name: "buildman NXP LS104x" |
Tom Rini | 818408e | 2018-10-23 11:58:44 -0400 | [diff] [blame] | 300 | env: |
Heiko Schocher | af77162 | 2019-11-22 11:17:29 +0100 | [diff] [blame] | 301 | - BUILDMAN="freescale&ls104" |
| 302 | - name: "buildman NXP LS108x" |
Tom Rini | aa13261 | 2019-01-16 07:19:26 -0500 | [diff] [blame] | 303 | env: |
Heiko Schocher | af77162 | 2019-11-22 11:17:29 +0100 | [diff] [blame] | 304 | - BUILDMAN="freescale&ls108" |
| 305 | - name: "buildman NXP LS20xx" |
Tom Rini | aa13261 | 2019-01-16 07:19:26 -0500 | [diff] [blame] | 306 | env: |
Heiko Schocher | af77162 | 2019-11-22 11:17:29 +0100 | [diff] [blame] | 307 | - BUILDMAN="freescale&ls20" |
| 308 | - name: "buildman NXP LX216x" |
Prabhakar Kushwaha | 5845ac1 | 2019-06-19 17:47:12 +0530 | [diff] [blame] | 309 | env: |
Heiko Schocher | af77162 | 2019-11-22 11:17:29 +0100 | [diff] [blame] | 310 | - BUILDMAN="freescale&lx216" |
Tom Rini | 984c005 | 2019-10-15 07:27:13 -0400 | [diff] [blame] | 311 | - name: "buildman i.MX6 tqc" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 312 | env: |
Tom Rini | 984c005 | 2019-10-15 07:27:13 -0400 | [diff] [blame] | 313 | - BUILDMAN="mx6&tqc" |
| 314 | - name: "buildman i.MX6 (catch-all)" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 315 | env: |
Tom Rini | 984c005 | 2019-10-15 07:27:13 -0400 | [diff] [blame] | 316 | - BUILDMAN="mx6 -x boundary,engicam,freescale,technexion,toradex,tqc" |
| 317 | - name: "buildman i.MX (non-i.MX6 catch-all)" |
| 318 | env: |
| 319 | - BUILDMAN="mx -x freescale,mx6,toradex,technexion" |
Tom Rini | 548aefa | 2019-10-09 11:02:21 -0400 | [diff] [blame] | 320 | - name: "buildman keystone 2/3" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 321 | env: |
Tom Rini | 548aefa | 2019-10-09 11:02:21 -0400 | [diff] [blame] | 322 | - BUILDMAN="k2 k3" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 323 | - name: "buildman samsung socfpga" |
| 324 | env: |
Tom Rini | dca268a | 2018-05-10 07:15:54 -0400 | [diff] [blame] | 325 | - BUILDMAN="samsung socfpga" |
Tom Rini | 818408e | 2018-10-23 11:58:44 -0400 | [diff] [blame] | 326 | - name: "buildman spear" |
| 327 | env: |
| 328 | - BUILDMAN="spear" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 329 | - name: "buildman sun4i" |
| 330 | env: |
Tom Rini | baade49 | 2016-11-05 19:34:49 -0400 | [diff] [blame] | 331 | - BUILDMAN="sun4i" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 332 | - name: "buildman sun5i" |
| 333 | env: |
Tom Rini | baade49 | 2016-11-05 19:34:49 -0400 | [diff] [blame] | 334 | - BUILDMAN="sun5i" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 335 | - name: "buildman sun6i" |
| 336 | env: |
Tom Rini | baade49 | 2016-11-05 19:34:49 -0400 | [diff] [blame] | 337 | - BUILDMAN="sun6i" |
Tuomas Tynkkynen | b5ddd07 | 2018-09-08 00:53:18 +0300 | [diff] [blame] | 338 | - name: "buildman sun7i" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 339 | env: |
Tom Rini | baade49 | 2016-11-05 19:34:49 -0400 | [diff] [blame] | 340 | - BUILDMAN="sun7i" |
Tom Rini | 95b2215 | 2019-10-15 07:27:14 -0400 | [diff] [blame] | 341 | - name: "buildman 64bit sun8i" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 342 | env: |
Heiko Schocher | 56d35f2 | 2019-11-21 06:50:12 +0100 | [diff] [blame] | 343 | - BUILDMAN="sun8i&aarch64 -x orangepi" |
Tom Rini | 95b2215 | 2019-10-15 07:27:14 -0400 | [diff] [blame] | 344 | - name: "buildman 32bit sun8i" |
| 345 | env: |
Heiko Schocher | 56d35f2 | 2019-11-21 06:50:12 +0100 | [diff] [blame] | 346 | - BUILDMAN="sun8i&armv7 -x orangepi" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 347 | - name: "buildman sun9i" |
| 348 | env: |
Tom Rini | baade49 | 2016-11-05 19:34:49 -0400 | [diff] [blame] | 349 | - BUILDMAN="sun9i" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 350 | - name: "buildman sun50i" |
| 351 | env: |
Heiko Schocher | 56d35f2 | 2019-11-21 06:50:12 +0100 | [diff] [blame] | 352 | - BUILDMAN="sun50i -x orangepi" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 353 | - name: "buildman catch-all ARM" |
| 354 | env: |
Tom Rini | 2d4cd12 | 2020-03-09 13:01:57 -0400 | [diff] [blame] | 355 | - 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] | 356 | - name: "buildman sandbox x86" |
| 357 | env: |
Roger Meier | 050c756 | 2016-01-25 20:22:41 +0100 | [diff] [blame] | 358 | - BUILDMAN="sandbox x86" |
Bin Meng | 0533fb8 | 2018-10-08 16:53:54 -0700 | [diff] [blame] | 359 | TOOLCHAIN="i386" |
Tom Rini | 984c005 | 2019-10-15 07:27:13 -0400 | [diff] [blame] | 360 | - name: "buildman technexion" |
| 361 | env: |
| 362 | - BUILDMAN="technexion" |
Stefan Roese | b684d40 | 2019-04-25 11:53:18 +0200 | [diff] [blame] | 363 | - name: "buildman kirkwood" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 364 | env: |
Stefan Roese | b684d40 | 2019-04-25 11:53:18 +0200 | [diff] [blame] | 365 | - BUILDMAN="kirkwood" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 366 | - name: "buildman mvebu" |
| 367 | env: |
Stefan Roese | 0bf1bc4 | 2016-12-01 13:52:08 +0100 | [diff] [blame] | 368 | - BUILDMAN="mvebu" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 369 | - name: "buildman m68k" |
| 370 | env: |
Roger Meier | 050c756 | 2016-01-25 20:22:41 +0100 | [diff] [blame] | 371 | - BUILDMAN="m68k" |
| 372 | TOOLCHAIN="m68k" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 373 | - name: "buildman microblaze" |
| 374 | env: |
Tom Rini | 0d3aaa3 | 2017-10-07 15:54:18 -0400 | [diff] [blame] | 375 | - BUILDMAN="microblaze" |
Tom Rini | 76761e7 | 2016-10-20 11:23:15 -0400 | [diff] [blame] | 376 | TOOLCHAIN="microblaze" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 377 | - name: "buildman mips" |
| 378 | env: |
Roger Meier | 050c756 | 2016-01-25 20:22:41 +0100 | [diff] [blame] | 379 | - BUILDMAN="mips" |
| 380 | TOOLCHAIN="mips" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 381 | - name: "buildman non-Freescale PowerPC" |
| 382 | env: |
| 383 | - BUILDMAN="powerpc -x freescale" |
Daniel Schwierzeck | 4c58d27 | 2018-05-10 07:15:53 -0400 | [diff] [blame] | 384 | TOOLCHAIN="powerpc" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 385 | - name: "buildman mpc85xx&freescale (excluding many)" |
| 386 | env: |
Tom Rini | dca268a | 2018-05-10 07:15:54 -0400 | [diff] [blame] | 387 | - 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] | 388 | TOOLCHAIN="powerpc" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 389 | - name: "buildman t208xrdb corenet_ds" |
| 390 | env: |
Tom Rini | dca268a | 2018-05-10 07:15:54 -0400 | [diff] [blame] | 391 | - BUILDMAN="t208xrdb corenet_ds" |
Daniel Schwierzeck | 4c58d27 | 2018-05-10 07:15:53 -0400 | [diff] [blame] | 392 | TOOLCHAIN="powerpc" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 393 | - name: "buildman Freescale PowerPC" |
| 394 | env: |
Tom Rini | dca268a | 2018-05-10 07:15:54 -0400 | [diff] [blame] | 395 | - BUILDMAN="t4qds b4860qds mpc83xx&freescale mpc86xx&freescale" |
Daniel Schwierzeck | 4c58d27 | 2018-05-10 07:15:53 -0400 | [diff] [blame] | 396 | TOOLCHAIN="powerpc" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 397 | - name: "buildman t102*" |
| 398 | env: |
Philipp Tomsich | 9464dd5 | 2017-12-20 11:06:31 +0100 | [diff] [blame] | 399 | - BUILDMAN="t102*" |
Daniel Schwierzeck | 4c58d27 | 2018-05-10 07:15:53 -0400 | [diff] [blame] | 400 | TOOLCHAIN="powerpc" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 401 | - name: "buildman p1_p2_rdb_pc" |
| 402 | env: |
Tom Rini | afdf09a | 2017-01-21 17:58:08 -0500 | [diff] [blame] | 403 | - BUILDMAN="p1_p2_rdb_pc" |
Daniel Schwierzeck | 4c58d27 | 2018-05-10 07:15:53 -0400 | [diff] [blame] | 404 | TOOLCHAIN="powerpc" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 405 | - name: "buildman p1010rdb bsc91" |
| 406 | env: |
Tom Rini | dca268a | 2018-05-10 07:15:54 -0400 | [diff] [blame] | 407 | - BUILDMAN="p1010rdb bsc91" |
Daniel Schwierzeck | 4c58d27 | 2018-05-10 07:15:53 -0400 | [diff] [blame] | 408 | TOOLCHAIN="powerpc" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 409 | - name: "buildman siemens" |
| 410 | env: |
Roger Meier | 050c756 | 2016-01-25 20:22:41 +0100 | [diff] [blame] | 411 | - BUILDMAN="siemens" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 412 | - name: "buildman tegra" |
| 413 | env: |
| 414 | - BUILDMAN="tegra -x toradex" |
| 415 | - name: "buildman am33xx (no siemens)" |
| 416 | env: |
| 417 | - BUILDMAN="am33xx -x siemens" |
| 418 | - name: "buildman omap" |
| 419 | env: |
Tom Rini | dca268a | 2018-05-10 07:15:54 -0400 | [diff] [blame] | 420 | - BUILDMAN="omap" |
Heiko Schocher | 56d35f2 | 2019-11-21 06:50:12 +0100 | [diff] [blame] | 421 | - name: "buildman orangepi" |
| 422 | env: |
| 423 | - BUILDMAN="orangepi" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 424 | - name: "buildman uniphier" |
| 425 | env: |
Tom Rini | 5eba31c | 2016-10-29 17:11:17 -0400 | [diff] [blame] | 426 | - BUILDMAN="uniphier" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 427 | - name: "buildman catch-all AArch64" |
| 428 | env: |
Tom Rini | 2d4cd12 | 2020-03-09 13:01:57 -0400 | [diff] [blame] | 429 | - 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] | 430 | - name: "buildman rockchip" |
| 431 | env: |
Tom Rini | 2d4cd12 | 2020-03-09 13:01:57 -0400 | [diff] [blame] | 432 | - BUILDMAN="rk -x orangepi" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 433 | - name: "buildman sh" |
| 434 | env: |
| 435 | - BUILDMAN="sh -x arm" |
Daniel Schwierzeck | 4c58d27 | 2018-05-10 07:15:53 -0400 | [diff] [blame] | 436 | TOOLCHAIN="sh" |
Tom Rini | 568356d | 2019-10-14 18:12:59 -0400 | [diff] [blame] | 437 | - name: "buildman Zynq* (ARMv7)" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 438 | env: |
Tom Rini | 568356d | 2019-10-14 18:12:59 -0400 | [diff] [blame] | 439 | - BUILDMAN="zynq&armv7" |
| 440 | - name: "buildman ZynqMP and Versal" |
| 441 | env: |
| 442 | - BUILDMAN="versal|zynqmp&aarch64" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 443 | - name: "buildman xtensa" |
| 444 | env: |
Tom Rini | 76761e7 | 2016-10-20 11:23:15 -0400 | [diff] [blame] | 445 | - BUILDMAN="xtensa" |
Max Filippov | b6f3a12 | 2018-02-07 15:30:01 -0800 | [diff] [blame] | 446 | TOOLCHAIN="xtensa-dc233c-elf" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 447 | - name: "buildman riscv" |
| 448 | env: |
Rick Chen | b6896fc | 2018-01-12 14:57:09 +0800 | [diff] [blame] | 449 | - BUILDMAN="riscv" |
| 450 | TOOLCHAIN="riscv" |
Rick Chen | f715ed4 | 2019-01-14 13:36:15 +0800 | [diff] [blame] | 451 | - name: "buildman nds32" |
| 452 | env: |
| 453 | - BUILDMAN="nds32" |
| 454 | TOOLCHAIN="nds32" |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 455 | |
| 456 | # QA jobs for code analytics |
| 457 | # static code analysis with cppcheck (we can add --enable=all later) |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 458 | - name: "cppcheck" |
Stephen Warren | d788221 | 2016-10-24 16:41:48 -0600 | [diff] [blame] | 459 | script: |
Simon Glass | 4ee7f52 | 2020-04-05 14:35:43 -0600 | [diff] [blame] | 460 | - cppcheck -j$(nproc) --force --quiet --inline-suppr . |
Heinrich Schuchardt | bb9a76e | 2020-02-21 18:24:00 +0100 | [diff] [blame] | 461 | # build HTML documentation |
| 462 | - name: "htmldocs" |
| 463 | script: |
| 464 | - make htmldocs |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 465 | # search for TODO within source tree |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 466 | - name: "grep TODO" |
Stephen Warren | d788221 | 2016-10-24 16:41:48 -0600 | [diff] [blame] | 467 | script: |
Tom Rini | c85b52e | 2016-10-20 11:24:52 -0400 | [diff] [blame] | 468 | - grep -r TODO . |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 469 | # search for FIXME within source tree |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 470 | - name: "grep FIXME HACK" |
Stephen Warren | d788221 | 2016-10-24 16:41:48 -0600 | [diff] [blame] | 471 | script: |
Tom Rini | c85b52e | 2016-10-20 11:24:52 -0400 | [diff] [blame] | 472 | - grep -r FIXME . |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 473 | # search for HACK within source tree and ignore HACKKIT board |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 474 | script: |
| 475 | - grep -r HACK . | grep -v HACKKIT |
| 476 | # some statistics about the code base |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 477 | - name: "sloccount" |
Stephen Warren | d788221 | 2016-10-24 16:41:48 -0600 | [diff] [blame] | 478 | script: |
Tom Rini | c85b52e | 2016-10-20 11:24:52 -0400 | [diff] [blame] | 479 | - sloccount . |
Tom Rini | ee16878 | 2018-12-06 16:39:43 -0500 | [diff] [blame] | 480 | # ensure all configs have MAINTAINERS entries |
| 481 | - name: "Check for configs without MAINTAINERS entry" |
| 482 | script: |
| 483 | - 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] | 484 | # Ensure host tools build |
| 485 | - name: "Build tools-only" |
| 486 | script: |
| 487 | - make tools-only_config tools-only -j$(nproc) |
Pierre-Jean Texier | 1f3910d | 2019-08-26 13:06:18 +0200 | [diff] [blame] | 488 | # Ensure env tools build |
| 489 | - name: "Build envtools" |
| 490 | script: |
| 491 | - make tools-only_config envtools -j$(nproc) |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 492 | |
Stephen Warren | 07bf212 | 2016-02-08 18:23:35 -0700 | [diff] [blame] | 493 | # test/py |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 494 | - name: "test/py sandbox" |
| 495 | env: |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 496 | - TEST_PY_BD="sandbox" |
Bin Meng | 0533fb8 | 2018-10-08 16:53:54 -0700 | [diff] [blame] | 497 | TOOLCHAIN="i386" |
Tom Rini | 4030f16 | 2018-10-07 14:20:30 -0400 | [diff] [blame] | 498 | - name: "test/py sandbox with clang" |
| 499 | env: |
| 500 | - TEST_PY_BD="sandbox" |
Tom Rini | 626b038 | 2019-10-26 13:48:41 -0400 | [diff] [blame] | 501 | OVERRIDE="-O clang-7" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 502 | - name: "test/py sandbox_spl" |
| 503 | env: |
Tom Rini | 40c8d26 | 2017-08-07 15:24:50 -0400 | [diff] [blame] | 504 | - TEST_PY_BD="sandbox_spl" |
Simon Glass | e28e9db | 2020-03-18 09:42:58 -0600 | [diff] [blame] | 505 | TEST_PY_TEST_SPEC="test_ofplatdata or test_handoff" |
Bin Meng | 0533fb8 | 2018-10-08 16:53:54 -0700 | [diff] [blame] | 506 | TOOLCHAIN="i386" |
Simon Glass | f2d0778 | 2017-11-26 20:26:00 -0700 | [diff] [blame] | 507 | TEST_PY_TOOLS="yes" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 508 | - name: "test/py sandbox_flattree" |
| 509 | env: |
Tom Rini | 40c8d26 | 2017-08-07 15:24:50 -0400 | [diff] [blame] | 510 | - TEST_PY_BD="sandbox_flattree" |
Bin Meng | 0533fb8 | 2018-10-08 16:53:54 -0700 | [diff] [blame] | 511 | TOOLCHAIN="i386" |
Joel Stanley | 998dc83 | 2019-07-04 11:05:17 +0930 | [diff] [blame] | 512 | - name: "test/py evb-ast2500" |
| 513 | env: |
| 514 | - TEST_PY_BD="evb-ast2500" |
| 515 | TEST_PY_ID="--id qemu" |
| 516 | QEMU_TARGET="arm-softmmu" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 517 | - name: "test/py vexpress_ca15_tc2" |
| 518 | env: |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 519 | - TEST_PY_BD="vexpress_ca15_tc2" |
| 520 | TEST_PY_ID="--id qemu" |
Tom Rini | 3c643fb | 2016-12-07 11:20:40 -0500 | [diff] [blame] | 521 | QEMU_TARGET="arm-softmmu" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 522 | - name: "test/py vexpress_ca9x4" |
| 523 | env: |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 524 | - TEST_PY_BD="vexpress_ca9x4" |
| 525 | TEST_PY_ID="--id qemu" |
Tom Rini | 3c643fb | 2016-12-07 11:20:40 -0500 | [diff] [blame] | 526 | QEMU_TARGET="arm-softmmu" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 527 | - name: "test/py integratorcp_cm926ejs" |
| 528 | env: |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 529 | - TEST_PY_BD="integratorcp_cm926ejs" |
Alexander Graf | 7899284 | 2016-11-17 18:31:07 +0100 | [diff] [blame] | 530 | TEST_PY_TEST_SPEC="not sleep" |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 531 | TEST_PY_ID="--id qemu" |
Tom Rini | 3c643fb | 2016-12-07 11:20:40 -0500 | [diff] [blame] | 532 | QEMU_TARGET="arm-softmmu" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 533 | - name: "test/py qemu_arm" |
| 534 | env: |
Tuomas Tynkkynen | 7b09dff | 2017-09-19 23:18:08 +0300 | [diff] [blame] | 535 | - TEST_PY_BD="qemu_arm" |
| 536 | TEST_PY_TEST_SPEC="not sleep" |
| 537 | QEMU_TARGET="arm-softmmu" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 538 | - name: "test/py qemu_arm64" |
| 539 | env: |
Tuomas Tynkkynen | a5bee50 | 2018-01-11 16:11:26 +0200 | [diff] [blame] | 540 | - TEST_PY_BD="qemu_arm64" |
| 541 | TEST_PY_TEST_SPEC="not sleep" |
| 542 | QEMU_TARGET="aarch64-softmmu" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 543 | - name: "test/py qemu_mips" |
| 544 | env: |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 545 | - TEST_PY_BD="qemu_mips" |
| 546 | TEST_PY_TEST_SPEC="not sleep" |
Tom Rini | 3c643fb | 2016-12-07 11:20:40 -0500 | [diff] [blame] | 547 | QEMU_TARGET="mips-softmmu" |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 548 | TOOLCHAIN="mips" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 549 | - name: "test/py qemu_mipsel" |
| 550 | env: |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 551 | - TEST_PY_BD="qemu_mipsel" |
| 552 | TEST_PY_TEST_SPEC="not sleep" |
Tom Rini | 3c643fb | 2016-12-07 11:20:40 -0500 | [diff] [blame] | 553 | QEMU_TARGET="mipsel-softmmu" |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 554 | TOOLCHAIN="mips" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 555 | - name: "test/py qemu_mips64" |
| 556 | env: |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 557 | - TEST_PY_BD="qemu_mips64" |
| 558 | TEST_PY_TEST_SPEC="not sleep" |
Tom Rini | 3c643fb | 2016-12-07 11:20:40 -0500 | [diff] [blame] | 559 | QEMU_TARGET="mips64-softmmu" |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 560 | TOOLCHAIN="mips" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 561 | - name: "test/py qemu_mips64el" |
| 562 | env: |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 563 | - TEST_PY_BD="qemu_mips64el" |
| 564 | TEST_PY_TEST_SPEC="not sleep" |
Tom Rini | 3c643fb | 2016-12-07 11:20:40 -0500 | [diff] [blame] | 565 | QEMU_TARGET="mips64el-softmmu" |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 566 | TOOLCHAIN="mips" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 567 | - name: "test/py qemu-ppce500" |
| 568 | env: |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 569 | - TEST_PY_BD="qemu-ppce500" |
| 570 | TEST_PY_TEST_SPEC="not sleep" |
Tom Rini | 3c643fb | 2016-12-07 11:20:40 -0500 | [diff] [blame] | 571 | QEMU_TARGET="ppc-softmmu" |
Daniel Schwierzeck | 4c58d27 | 2018-05-10 07:15:53 -0400 | [diff] [blame] | 572 | TOOLCHAIN="powerpc" |
Bin Meng | a379d33 | 2020-03-28 07:25:27 -0700 | [diff] [blame] | 573 | - name: "test/py qemu-riscv32" |
| 574 | env: |
| 575 | - TEST_PY_BD="qemu-riscv32" |
| 576 | TEST_PY_TEST_SPEC="not sleep" |
| 577 | QEMU_TARGET="riscv32-softmmu" |
Bin Meng | a379d33 | 2020-03-28 07:25:27 -0700 | [diff] [blame] | 578 | TOOLCHAIN="riscv" |
Heinrich Schuchardt | 22c7b7d | 2019-07-18 06:33:58 +0200 | [diff] [blame] | 579 | - name: "test/py qemu-riscv64" |
| 580 | env: |
| 581 | - TEST_PY_BD="qemu-riscv64" |
| 582 | TEST_PY_TEST_SPEC="not sleep" |
| 583 | QEMU_TARGET="riscv64-softmmu" |
Heinrich Schuchardt | 22c7b7d | 2019-07-18 06:33:58 +0200 | [diff] [blame] | 584 | TOOLCHAIN="riscv" |
Bin Meng | 49fb28a | 2020-03-28 07:25:29 -0700 | [diff] [blame] | 585 | - name: "test/py qemu-riscv32_spl" |
| 586 | env: |
| 587 | - TEST_PY_BD="qemu-riscv32_spl" |
| 588 | TEST_PY_TEST_SPEC="not sleep" |
| 589 | QEMU_TARGET="riscv32-softmmu" |
Bin Meng | 49fb28a | 2020-03-28 07:25:29 -0700 | [diff] [blame] | 590 | TOOLCHAIN="riscv" |
| 591 | - name: "test/py qemu-riscv64_spl" |
| 592 | env: |
| 593 | - TEST_PY_BD="qemu-riscv64_spl" |
| 594 | TEST_PY_TEST_SPEC="not sleep" |
| 595 | QEMU_TARGET="riscv64-softmmu" |
Bin Meng | 49fb28a | 2020-03-28 07:25:29 -0700 | [diff] [blame] | 596 | TOOLCHAIN="riscv" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 597 | - name: "test/py qemu-x86" |
| 598 | env: |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 599 | - TEST_PY_BD="qemu-x86" |
| 600 | TEST_PY_TEST_SPEC="not sleep" |
Tom Rini | 3c643fb | 2016-12-07 11:20:40 -0500 | [diff] [blame] | 601 | QEMU_TARGET="i386-softmmu" |
Bin Meng | 0533fb8 | 2018-10-08 16:53:54 -0700 | [diff] [blame] | 602 | TOOLCHAIN="i386" |
Stephen Warren | 8304f05 | 2016-10-26 11:05:36 -0600 | [diff] [blame] | 603 | BUILD_ROM="yes" |
Bin Meng | 3fdfca7 | 2018-10-13 20:52:14 -0700 | [diff] [blame] | 604 | - name: "test/py qemu-x86_64" |
| 605 | env: |
| 606 | - TEST_PY_BD="qemu-x86_64" |
| 607 | TEST_PY_TEST_SPEC="not sleep" |
| 608 | QEMU_TARGET="x86_64-softmmu" |
Bin Meng | 3fdfca7 | 2018-10-13 20:52:14 -0700 | [diff] [blame] | 609 | TOOLCHAIN="i386" |
| 610 | BUILD_ROM="yes" |
Michal Simek | f7c6ee7 | 2020-02-13 15:03:29 +0100 | [diff] [blame] | 611 | - name: "test/py xilinx_zynq_virt" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 612 | env: |
Michal Simek | f7c6ee7 | 2020-02-13 15:03:29 +0100 | [diff] [blame] | 613 | - TEST_PY_BD="xilinx_zynq_virt" |
Michal Simek | 41122d3 | 2016-12-14 09:47:23 +0100 | [diff] [blame] | 614 | TEST_PY_TEST_SPEC="not sleep" |
| 615 | QEMU_TARGET="arm-softmmu" |
| 616 | TEST_PY_ID="--id qemu" |
Michal Simek | d9eaae3 | 2018-12-20 08:40:25 +0100 | [diff] [blame] | 617 | - name: "test/py xilinx_versal_virt" |
| 618 | env: |
| 619 | - TEST_PY_BD="xilinx_versal_virt" |
| 620 | TEST_PY_TEST_SPEC="not sleep" |
| 621 | QEMU_TARGET="aarch64-softmmu" |
| 622 | TEST_PY_ID="--id qemu" |
Stephen Warren | a032e0a | 2018-07-30 10:19:43 -0600 | [diff] [blame] | 623 | - name: "test/py xtfpga" |
| 624 | env: |
Max Filippov | 4d69009 | 2018-02-07 15:30:03 -0800 | [diff] [blame] | 625 | - TEST_PY_BD="xtfpga" |
| 626 | TEST_PY_TEST_SPEC="not sleep" |
| 627 | QEMU_TARGET="xtensa-softmmu" |
| 628 | TEST_PY_ID="--id qemu" |
Max Filippov | 4d69009 | 2018-02-07 15:30:03 -0800 | [diff] [blame] | 629 | TOOLCHAIN="xtensa-dc233c-elf" |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 630 | |
Meier, Roger | c7cb334 | 2014-11-19 15:26:18 +0100 | [diff] [blame] | 631 | # TODO make it perfect ;-r |