blob: ca5e6124a8d7e6852c0e0209065f8776901720f3 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Meier, Rogerc7cb3342014-11-19 15:26:18 +01002# Copyright Roger Meier <r.meier@siemens.com>
Meier, Rogerc7cb3342014-11-19 15:26:18 +01003
4# build U-Boot on Travis CI - https://travis-ci.org/
5
Tom Rini2bb76f32016-10-20 11:03:19 -04006sudo: required
Tom Rini8b13e9b2019-10-08 08:39:26 -04007dist: bionic
Stephen Warrene4c1b4d2016-02-03 10:41:34 -07008
Meier, Rogerc7cb3342014-11-19 15:26:18 +01009language: c
10
Roger Meier050c7562016-01-25 20:22:41 +010011addons:
12 apt:
Tom Rini4030f162018-10-07 14:20:30 -040013 sources:
14 - ubuntu-toolchain-r-test
Tom Rini8b13e9b2019-10-08 08:39:26 -040015 - llvm-toolchain-bionic-7
Roger Meier050c7562016-01-25 20:22:41 +010016 packages:
Bin Meng091b48e2020-03-28 07:25:25 -070017 - autopoint
Roger Meier050c7562016-01-25 20:22:41 +010018 - cppcheck
19 - sloccount
20 - sparse
21 - bc
22 - build-essential
Simon Glass96d0cd42020-02-03 07:36:12 -070023 - libsdl2-dev
Stephen Warren07bf2122016-02-08 18:23:35 -070024 - python
Tom Rini085b8972019-10-24 11:59:27 -040025 - python-pyelftools
Tom Rinif36f15b2020-02-24 15:10:36 -050026 - python3-sphinx
Tom Rini085b8972019-10-24 11:59:27 -040027 - python3-virtualenv
28 - python3-pip
Tom Rinif2b0c002017-01-23 17:40:22 -050029 - swig
30 - libpython-dev
Tom Rinicd402e02016-10-20 11:08:26 -040031 - iasl
Alexander Graf0e4e38a2016-11-18 13:18:00 +010032 - grub-efi-ia32-bin
Bin Meng66a3a9c2018-10-13 20:52:12 -070033 - grub-efi-amd64-bin
Alexander Graf0e4e38a2016-11-18 13:18:00 +010034 - rpm2cpio
35 - wget
Tom Rini36dd5f12017-09-23 13:00:57 -040036 - device-tree-compiler
Tom Rini706f0772018-03-14 14:02:49 -040037 - lzop
Simon Glass83d73c22018-09-14 04:57:26 -060038 - liblz4-tool
Simon Glass4997a7e2019-07-08 13:18:52 -060039 - lzma-alone
Tom Rini4030f162018-10-07 14:20:30 -040040 - libisl15
41 - clang-7
Marek Vasutaa2e9c92019-03-14 01:01:24 +010042 - srecord
Heinrich Schuchardtbb9a76e2020-02-21 18:24:00 +010043 - graphviz
Daniel Schwierzeck4c58d272018-05-10 07:15:53 -040044
Meier, Rogerc7cb3342014-11-19 15:26:18 +010045install:
Tom Rini5ac58612016-10-20 11:26:40 -040046 # Clone uboot-test-hooks
47 - git clone --depth=1 git://github.com/swarren/uboot-test-hooks.git /tmp/uboot-test-hooks
48 - ln -s travis-ci /tmp/uboot-test-hooks/bin/`hostname`
49 - ln -s travis-ci /tmp/uboot-test-hooks/py/`hostname`
Meier, Rogerc7cb3342014-11-19 15:26:18 +010050 # prepare buildman environment
Stephen Warren43a68e42016-10-26 11:05:31 -060051 - echo -e "[toolchain]\nroot = /usr" > ~/.buildman
Alexey Brodkinf0d964f2018-12-03 17:09:13 +030052 - echo -e "arc = /tmp/arc_gnu_2018.09_prebuilt_uclibc_le_archs_linux_install" >> ~/.buildman
Tom Rini14d39c92019-11-05 10:44:16 -050053 - echo -e "\n[toolchain-alias]\nsh = sh2" >> ~/.buildman
54 - echo -e "x86 = i386" >> ~/.buildman;
55 - echo -e "riscv = riscv64" >> ~/.buildman;
Meier, Rogerc7cb3342014-11-19 15:26:18 +010056 - cat ~/.buildman
Tom Rini8b13e9b2019-10-08 08:39:26 -040057 - grub-mkimage --prefix="" -o ~/grub_x86.efi -O i386-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd
58 - grub-mkimage --prefix="" -o ~/grub_x64.efi -O x86_64-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd
Tom Rini8b13e9b2019-10-08 08:39:26 -040059 - 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
Meier, Rogerc7cb3342014-11-19 15:26:18 +010060
61env:
62 global:
Ramon Friede3277682019-08-12 20:43:38 +030063 - PATH=/tmp/qemu-install/bin:/tmp/uboot-test-hooks/bin:/usr/bin:/bin:/usr/local/bin
Alexander Grafe0196602016-11-17 18:31:04 +010064 - PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci
Meier, Rogerc7cb3342014-11-19 15:26:18 +010065 - BUILD_DIR=build
Meier, Rogerc7cb3342014-11-19 15:26:18 +010066 - HOSTCC="cc"
67 - HOSTCXX="c++"
Tom Rini88366b92020-01-11 08:07:03 -050068 - QEMU_VERSION="v4.2.0"
Meier, Rogerc7cb3342014-11-19 15:26:18 +010069
70before_script:
Roger Meier050c7562016-01-25 20:22:41 +010071 # install toolchains based on TOOLCHAIN} variable
Roger Meier050c7562016-01-25 20:22:41 +010072 - if [[ "${TOOLCHAIN}" == *m68k* ]]; then ./tools/buildman/buildman --fetch-arch m68k ; fi
Tom Rinicd402e02016-10-20 11:08:26 -040073 - if [[ "${TOOLCHAIN}" == *microblaze* ]]; then ./tools/buildman/buildman --fetch-arch microblaze ; fi
Roger Meier050c7562016-01-25 20:22:41 +010074 - if [[ "${TOOLCHAIN}" == *mips* ]]; then ./tools/buildman/buildman --fetch-arch mips ; fi
Daniel Schwierzeck4c58d272018-05-10 07:15:53 -040075 - if [[ "${TOOLCHAIN}" == *sh* ]]; then ./tools/buildman/buildman --fetch-arch sh2 ; fi
Bin Meng0533fb82018-10-08 16:53:54 -070076 - if [[ "${TOOLCHAIN}" == *i386* ]]; then
77 ./tools/buildman/buildman --fetch-arch i386;
Stephen Warren2ded4bf2016-10-26 11:05:33 -060078 fi
Alexey Brodkin80e4bbf2017-04-21 13:35:43 +030079 - if [[ "${TOOLCHAIN}" == arc ]]; then
Alexey Brodkinf0d964f2018-12-03 17:09:13 +030080 wget https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/download/arc-2018.09-release/arc_gnu_2018.09_prebuilt_uclibc_le_archs_linux_install.tar.gz &&
81 tar -C /tmp -xf arc_gnu_2018.09_prebuilt_uclibc_le_archs_linux_install.tar.gz;
Alexey Brodkin80e4bbf2017-04-21 13:35:43 +030082 fi
Rick Chenf715ed42019-01-14 13:36:15 +080083 - if [[ "${TOOLCHAIN}" == "nds32" ]]; then
84 wget https://github.com/vincentzwc/prebuilt-nds32-toolchain/releases/download/20180521/nds32le-linux-glibc-v3-upstream.tar.gz &&
85 tar -C /tmp -xf nds32le-linux-glibc-v3-upstream.tar.gz &&
86 echo -e "\n[toolchain-prefix]\nnds32 = /tmp/nds32le-linux-glibc-v3-upstream/bin/nds32le-linux-" >> ~/.buildman;
87 fi
Max Filippovb6f3a122018-02-07 15:30:01 -080088 - if [[ "${TOOLCHAIN}" == *xtensa* ]]; then
89 wget https://github.com/foss-xtensa/toolchain/releases/download/2018.02/x86_64-2018.02-${TOOLCHAIN}.tar.gz &&
90 tar -C /tmp -xf x86_64-2018.02-${TOOLCHAIN}.tar.gz &&
91 echo -e "\n[toolchain-prefix]\nxtensa = /tmp/2018.02/${TOOLCHAIN}/bin/${TOOLCHAIN}-" >> ~/.buildman;
92 fi
Tom Rini83995382017-04-14 19:47:51 -040093 # If TOOLCHAIN is unset, we're on some flavour of ARM.
94 - if [[ "${TOOLCHAIN}" == "" ]]; then
Daniel Schwierzeck4c58d272018-05-10 07:15:53 -040095 ./tools/buildman/buildman --fetch-arch arm &&
96 ./tools/buildman/buildman --fetch-arch aarch64;
Tom Rini83995382017-04-14 19:47:51 -040097 fi
Daniel Schwierzeck4c58d272018-05-10 07:15:53 -040098 - if [[ "${TOOLCHAIN}" == "powerpc" ]]; then ./tools/buildman/buildman --fetch-arch powerpc; fi
Rick Chenb6896fc2018-01-12 14:57:09 +080099 - if [[ "${TOOLCHAIN}" == "riscv" ]]; then
Bin Mengb5135e42018-08-30 06:17:06 -0700100 ./tools/buildman/buildman --fetch-arch riscv64;
Rick Chenb6896fc2018-01-12 14:57:09 +0800101 fi
Tom Rini3c643fb2016-12-07 11:20:40 -0500102 - if [[ "${QEMU_TARGET}" != "" ]]; then
103 git clone git://git.qemu.org/qemu.git /tmp/qemu;
104 pushd /tmp/qemu;
105 git submodule update --init dtc &&
Michal Simek984a1fe2019-01-16 15:18:43 +0100106 git checkout ${QEMU_VERSION} &&
Tom Rini3c643fb2016-12-07 11:20:40 -0500107 ./configure --prefix=/tmp/qemu-install --target-list=${QEMU_TARGET} &&
108 make -j4 all install;
109 popd;
110 fi
Meier, Rogerc7cb3342014-11-19 15:26:18 +0100111
Bin Meng091b48e2020-03-28 07:25:25 -0700112 # Build GRUB UEFI targets
113 - if [[ "${QEMU_TARGET}" == "arm-softmmu" ]]; then
114 git clone git://git.savannah.gnu.org/grub.git /tmp/grub &&
115 pushd /tmp/grub &&
116 git checkout grub-2.04 &&
117 ./bootstrap &&
118 ./configure --target=arm --with-platform=efi
119 CC=gcc
120 TARGET_CC=~/.buildman-toolchains/gcc-7.3.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-gcc
121 TARGET_OBJCOPY=~/.buildman-toolchains/gcc-7.3.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-objcopy
122 TARGET_STRIP=~/.buildman-toolchains/gcc-7.3.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-strip
123 TARGET_NM=~/.buildman-toolchains/gcc-7.3.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-nm
124 TARGET_RANLIB=~/.buildman-toolchains/gcc-7.3.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-ranlib &&
125 make -j4 &&
126 ./grub-mkimage -O arm-efi -o ~/grub_arm.efi --prefix= -d
127 grub-core cat chain configfile echo efinet ext2 fat halt help linux
128 lsefisystab loadenv lvm minicmd normal part_msdos part_gpt reboot
129 search search_fs_file search_fs_uuid search_label serial sleep test
130 true &&
131 popd;
132 fi
133 - if [[ "${QEMU_TARGET}" == "aarch64-softmmu" ]]; then
134 git clone git://git.savannah.gnu.org/grub.git /tmp/grub &&
135 pushd /tmp/grub &&
136 git checkout grub-2.04 &&
137 ./bootstrap &&
138 ./configure --target=aarch64 --with-platform=efi
139 CC=gcc
140 TARGET_CC=~/.buildman-toolchains/gcc-7.3.0-nolibc/aarch64-linux/bin/aarch64-linux-gcc
141 TARGET_OBJCOPY=~/.buildman-toolchains/gcc-7.3.0-nolibc/aarch64-linux/bin/aarch64-linux-objcopy
142 TARGET_STRIP=~/.buildman-toolchains/gcc-7.3.0-nolibc/aarch64-linux/bin/aarch64-linux-strip
143 TARGET_NM=~/.buildman-toolchains/gcc-7.3.0-nolibc/aarch64-linux/bin/aarch64-linux-nm
144 TARGET_RANLIB=~/.buildman-toolchains/gcc-7.3.0-nolibc/aarch64-linux/bin/aarch64-linux-ranlib &&
145 make -j4 &&
146 ./grub-mkimage -O arm64-efi -o ~/grub_arm64.efi --prefix= -d
147 grub-core cat chain configfile echo efinet ext2 fat halt help linux
148 lsefisystab loadenv lvm minicmd normal part_msdos part_gpt reboot
149 search search_fs_file search_fs_uuid search_label serial sleep test
150 true &&
151 popd;
152 fi
153
Meier, Rogerc7cb3342014-11-19 15:26:18 +0100154script:
Stephen Warren8304f052016-10-26 11:05:36 -0600155 # Comments must be outside the command strings below, or the Travis parser
156 # will get confused.
157 #
Tom Rini4030f162018-10-07 14:20:30 -0400158 # From buildman, exit code 129 means warnings only. If we've been asked to
159 # use clang only do one configuration.
Simon Glasse9500f42019-01-07 16:44:21 -0700160 - if [[ "${BUILDMAN}" != "" ]]; then
Tom Rini4030f162018-10-07 14:20:30 -0400161 ret=0;
Simon Glasse9500f42019-01-07 16:44:21 -0700162 tools/buildman/buildman -P -E ${BUILDMAN} ${OVERRIDE}|| ret=$?;
Stephen Warrenbf1c0882016-10-26 11:05:35 -0600163 if [[ $ret -ne 0 && $ret -ne 129 ]]; then
Tom Rinibaade492016-11-05 19:34:49 -0400164 tools/buildman/buildman -sdeP ${BUILDMAN};
Stephen Warren0c5145f2016-10-26 11:05:32 -0600165 exit $ret;
166 fi;
Roger Meier050c7562016-01-25 20:22:41 +0100167 fi
Stephen Warren8304f052016-10-26 11:05:36 -0600168 # "not a_test_which_does_not_exist" is a dummy -k parameter which will
169 # never prevent any test from running. That way, we can always pass
170 # "-k something" even when $TEST_PY_TEST_SPEC doesnt need a custom
171 # value.
Alexander Graffaec2902016-11-17 18:31:03 +0100172 - export UBOOT_TRAVIS_BUILD_DIR=`cd .. && pwd`/.bm-work/${TEST_PY_BD};
Alexander Graf0e4e38a2016-11-18 13:18:00 +0100173 cp ~/grub_x86.efi $UBOOT_TRAVIS_BUILD_DIR/;
Bin Meng66a3a9c2018-10-13 20:52:12 -0700174 cp ~/grub_x64.efi $UBOOT_TRAVIS_BUILD_DIR/;
Bin Meng091b48e2020-03-28 07:25:25 -0700175 if [[ -e ~/grub_arm.efi ]]; then
176 cp ~/grub_arm.efi $UBOOT_TRAVIS_BUILD_DIR/;
177 fi;
178 if [[ -e ~/grub_arm64.efi ]]; then
179 cp ~/grub_arm64.efi $UBOOT_TRAVIS_BUILD_DIR/;
180 fi;
Tom Rini085b8972019-10-24 11:59:27 -0400181 if [[ "${TEST_PY_BD}" != "" ]]; then
182 virtualenv -p /usr/bin/python3 /tmp/venv;
183 . /tmp/venv/bin/activate;
184 pip install -r test/py/requirements.txt;
185 ./test/py/test.py --bd ${TEST_PY_BD} ${TEST_PY_ID}
186 -k "${TEST_PY_TEST_SPEC:-not a_test_which_does_not_exist}"
187 --build-dir "$UBOOT_TRAVIS_BUILD_DIR";
188 ret=$?;
189 if [[ $ret -ne 0 ]]; then
190 exit $ret;
191 fi;
Tom Rini26a426a2020-02-11 12:41:14 -0500192 if [[ -n "${TEST_PY_TOOLS}" ]]; then
193 export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt";
194 export PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}";
195 ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test &&
196 ./tools/patman/patman --test &&
197 ./tools/buildman/buildman -t &&
Tom Rini72618332020-03-11 18:11:15 -0400198 ./tools/dtoc/dtoc -t &&
199 make testconfig;
Tom Rini26a426a2020-02-11 12:41:14 -0500200 fi;
Stephen Warren8304f052016-10-26 11:05:36 -0600201 fi
Meier, Rogerc7cb3342014-11-19 15:26:18 +0100202
203matrix:
204 include:
205 # we need to build by vendor due to 50min time limit for builds
206 # each env setting here is a dedicated build
Stephen Warrena032e0a2018-07-30 10:19:43 -0600207 - name: "buildman arc"
208 env:
Alexey Brodkin80e4bbf2017-04-21 13:35:43 +0300209 - BUILDMAN="arc"
210 TOOLCHAIN="arc"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600211 - name: "buildman arm11 arm7 arm920t arm946es"
212 env:
Tom Rinidca268a2018-05-10 07:15:54 -0400213 - BUILDMAN="arm11 arm7 arm920t arm946es"
Eugen Hristev72522742019-04-01 11:04:03 +0000214 - name: "buildman arm926ejs (non-NXP,siemens,at91,kirkwood,spear)"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600215 env:
Tom Rinibaade492016-11-05 19:34:49 -0400216 - JOB="arm926ejs"
Eugen Hristev72522742019-04-01 11:04:03 +0000217 BUILDMAN="arm926ejs -x freescale,siemens,at91,kirkwood,spear,omap"
218 - name: "buildman at91 (non arm v7)"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600219 env:
Eugen Hristev72522742019-04-01 11:04:03 +0000220 - BUILDMAN="at91 -x armv7"
221 - name: "buildman at91 (non arm926ejs)"
222 env:
223 - BUILDMAN="at91 -x arm926ejs"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600224 - name: "buildman boundary engicam toradex"
225 env:
226 - BUILDMAN="boundary engicam toradex"
Tom Rini7a779ed2019-10-13 11:21:56 -0400227 - name: "buildman ARM bcm"
Tom Rini50aeb3a2019-10-09 11:01:06 -0400228 env:
Tom Rini7a779ed2019-10-13 11:21:56 -0400229 - BUILDMAN="bcm -x mips"
Heiko Schocheraf771622019-11-22 11:17:29 +0100230 - name: "buildman NXP ARM32 (catch-all)"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600231 env:
Heiko Schocheraf771622019-11-22 11:17:29 +0100232 - BUILDMAN="freescale -x powerpc,m68k,aarch64,ls101,ls102,ls104,ls108,ls20,lx216"
233 - name: "buildman NXP LS101x"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600234 env:
Heiko Schocheraf771622019-11-22 11:17:29 +0100235 - BUILDMAN="freescale&ls101"
236 - name: "buildman NXP LS102x"
Prabhakar Kushwaha5845ac12019-06-19 17:47:12 +0530237 env:
Heiko Schocheraf771622019-11-22 11:17:29 +0100238 - BUILDMAN="freescale&ls102"
239 - name: "buildman NXP LS104x"
Tom Rini818408e2018-10-23 11:58:44 -0400240 env:
Heiko Schocheraf771622019-11-22 11:17:29 +0100241 - BUILDMAN="freescale&ls104"
242 - name: "buildman NXP LS108x"
Tom Riniaa132612019-01-16 07:19:26 -0500243 env:
Heiko Schocheraf771622019-11-22 11:17:29 +0100244 - BUILDMAN="freescale&ls108"
245 - name: "buildman NXP LS20xx"
Tom Riniaa132612019-01-16 07:19:26 -0500246 env:
Heiko Schocheraf771622019-11-22 11:17:29 +0100247 - BUILDMAN="freescale&ls20"
248 - name: "buildman NXP LX216x"
Prabhakar Kushwaha5845ac12019-06-19 17:47:12 +0530249 env:
Heiko Schocheraf771622019-11-22 11:17:29 +0100250 - BUILDMAN="freescale&lx216"
Tom Rini984c0052019-10-15 07:27:13 -0400251 - name: "buildman i.MX6 tqc"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600252 env:
Tom Rini984c0052019-10-15 07:27:13 -0400253 - BUILDMAN="mx6&tqc"
254 - name: "buildman i.MX6 (catch-all)"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600255 env:
Tom Rini984c0052019-10-15 07:27:13 -0400256 - BUILDMAN="mx6 -x boundary,engicam,freescale,technexion,toradex,tqc"
257 - name: "buildman i.MX (non-i.MX6 catch-all)"
258 env:
259 - BUILDMAN="mx -x freescale,mx6,toradex,technexion"
Tom Rini548aefa2019-10-09 11:02:21 -0400260 - name: "buildman keystone 2/3"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600261 env:
Tom Rini548aefa2019-10-09 11:02:21 -0400262 - BUILDMAN="k2 k3"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600263 - name: "buildman samsung socfpga"
264 env:
Tom Rinidca268a2018-05-10 07:15:54 -0400265 - BUILDMAN="samsung socfpga"
Tom Rini818408e2018-10-23 11:58:44 -0400266 - name: "buildman spear"
267 env:
268 - BUILDMAN="spear"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600269 - name: "buildman sun4i"
270 env:
Tom Rinibaade492016-11-05 19:34:49 -0400271 - BUILDMAN="sun4i"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600272 - name: "buildman sun5i"
273 env:
Tom Rinibaade492016-11-05 19:34:49 -0400274 - BUILDMAN="sun5i"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600275 - name: "buildman sun6i"
276 env:
Tom Rinibaade492016-11-05 19:34:49 -0400277 - BUILDMAN="sun6i"
Tuomas Tynkkynenb5ddd072018-09-08 00:53:18 +0300278 - name: "buildman sun7i"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600279 env:
Tom Rinibaade492016-11-05 19:34:49 -0400280 - BUILDMAN="sun7i"
Tom Rini95b22152019-10-15 07:27:14 -0400281 - name: "buildman 64bit sun8i"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600282 env:
Heiko Schocher56d35f22019-11-21 06:50:12 +0100283 - BUILDMAN="sun8i&aarch64 -x orangepi"
Tom Rini95b22152019-10-15 07:27:14 -0400284 - name: "buildman 32bit sun8i"
285 env:
Heiko Schocher56d35f22019-11-21 06:50:12 +0100286 - BUILDMAN="sun8i&armv7 -x orangepi"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600287 - name: "buildman sun9i"
288 env:
Tom Rinibaade492016-11-05 19:34:49 -0400289 - BUILDMAN="sun9i"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600290 - name: "buildman sun50i"
291 env:
Heiko Schocher56d35f22019-11-21 06:50:12 +0100292 - BUILDMAN="sun50i -x orangepi"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600293 - name: "buildman catch-all ARM"
294 env:
Tom Rini2d4cd122020-03-09 13:01:57 -0400295 - 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 Warrena032e0a2018-07-30 10:19:43 -0600296 - name: "buildman sandbox x86"
297 env:
Roger Meier050c7562016-01-25 20:22:41 +0100298 - BUILDMAN="sandbox x86"
Bin Meng0533fb82018-10-08 16:53:54 -0700299 TOOLCHAIN="i386"
Tom Rini984c0052019-10-15 07:27:13 -0400300 - name: "buildman technexion"
301 env:
302 - BUILDMAN="technexion"
Stefan Roeseb684d402019-04-25 11:53:18 +0200303 - name: "buildman kirkwood"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600304 env:
Stefan Roeseb684d402019-04-25 11:53:18 +0200305 - BUILDMAN="kirkwood"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600306 - name: "buildman mvebu"
307 env:
Stefan Roese0bf1bc42016-12-01 13:52:08 +0100308 - BUILDMAN="mvebu"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600309 - name: "buildman m68k"
310 env:
Roger Meier050c7562016-01-25 20:22:41 +0100311 - BUILDMAN="m68k"
312 TOOLCHAIN="m68k"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600313 - name: "buildman microblaze"
314 env:
Tom Rini0d3aaa32017-10-07 15:54:18 -0400315 - BUILDMAN="microblaze"
Tom Rini76761e72016-10-20 11:23:15 -0400316 TOOLCHAIN="microblaze"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600317 - name: "buildman mips"
318 env:
Roger Meier050c7562016-01-25 20:22:41 +0100319 - BUILDMAN="mips"
320 TOOLCHAIN="mips"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600321 - name: "buildman non-Freescale PowerPC"
322 env:
323 - BUILDMAN="powerpc -x freescale"
Daniel Schwierzeck4c58d272018-05-10 07:15:53 -0400324 TOOLCHAIN="powerpc"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600325 - name: "buildman mpc85xx&freescale (excluding many)"
326 env:
Tom Rinidca268a2018-05-10 07:15:54 -0400327 - BUILDMAN="mpc85xx&freescale -x t208xrdb -x t4qds -x t102* -x p1_p2_rdb_pc -x p1010rdb -x corenet_ds -x b4860qds -x bsc91*"
Daniel Schwierzeck4c58d272018-05-10 07:15:53 -0400328 TOOLCHAIN="powerpc"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600329 - name: "buildman t208xrdb corenet_ds"
330 env:
Tom Rinidca268a2018-05-10 07:15:54 -0400331 - BUILDMAN="t208xrdb corenet_ds"
Daniel Schwierzeck4c58d272018-05-10 07:15:53 -0400332 TOOLCHAIN="powerpc"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600333 - name: "buildman Freescale PowerPC"
334 env:
Tom Rinidca268a2018-05-10 07:15:54 -0400335 - BUILDMAN="t4qds b4860qds mpc83xx&freescale mpc86xx&freescale"
Daniel Schwierzeck4c58d272018-05-10 07:15:53 -0400336 TOOLCHAIN="powerpc"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600337 - name: "buildman t102*"
338 env:
Philipp Tomsich9464dd52017-12-20 11:06:31 +0100339 - BUILDMAN="t102*"
Daniel Schwierzeck4c58d272018-05-10 07:15:53 -0400340 TOOLCHAIN="powerpc"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600341 - name: "buildman p1_p2_rdb_pc"
342 env:
Tom Riniafdf09a2017-01-21 17:58:08 -0500343 - BUILDMAN="p1_p2_rdb_pc"
Daniel Schwierzeck4c58d272018-05-10 07:15:53 -0400344 TOOLCHAIN="powerpc"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600345 - name: "buildman p1010rdb bsc91"
346 env:
Tom Rinidca268a2018-05-10 07:15:54 -0400347 - BUILDMAN="p1010rdb bsc91"
Daniel Schwierzeck4c58d272018-05-10 07:15:53 -0400348 TOOLCHAIN="powerpc"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600349 - name: "buildman siemens"
350 env:
Roger Meier050c7562016-01-25 20:22:41 +0100351 - BUILDMAN="siemens"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600352 - name: "buildman tegra"
353 env:
354 - BUILDMAN="tegra -x toradex"
355 - name: "buildman am33xx (no siemens)"
356 env:
357 - BUILDMAN="am33xx -x siemens"
358 - name: "buildman omap"
359 env:
Tom Rinidca268a2018-05-10 07:15:54 -0400360 - BUILDMAN="omap"
Heiko Schocher56d35f22019-11-21 06:50:12 +0100361 - name: "buildman orangepi"
362 env:
363 - BUILDMAN="orangepi"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600364 - name: "buildman uniphier"
365 env:
Tom Rini5eba31c2016-10-29 17:11:17 -0400366 - BUILDMAN="uniphier"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600367 - name: "buildman catch-all AArch64"
368 env:
Tom Rini2d4cd122020-03-09 13:01:57 -0400369 - BUILDMAN="aarch64 -x bcm,k3,tegra,ls1,ls2,lx216,mvebu,uniphier,sunxi,samsung,socfpga,rk,versal,zynq"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600370 - name: "buildman rockchip"
371 env:
Tom Rini2d4cd122020-03-09 13:01:57 -0400372 - BUILDMAN="rk -x orangepi"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600373 - name: "buildman sh"
374 env:
375 - BUILDMAN="sh -x arm"
Daniel Schwierzeck4c58d272018-05-10 07:15:53 -0400376 TOOLCHAIN="sh"
Tom Rini568356d2019-10-14 18:12:59 -0400377 - name: "buildman Zynq* (ARMv7)"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600378 env:
Tom Rini568356d2019-10-14 18:12:59 -0400379 - BUILDMAN="zynq&armv7"
380 - name: "buildman ZynqMP and Versal"
381 env:
382 - BUILDMAN="versal|zynqmp&aarch64"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600383 - name: "buildman xtensa"
384 env:
Tom Rini76761e72016-10-20 11:23:15 -0400385 - BUILDMAN="xtensa"
Max Filippovb6f3a122018-02-07 15:30:01 -0800386 TOOLCHAIN="xtensa-dc233c-elf"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600387 - name: "buildman riscv"
388 env:
Rick Chenb6896fc2018-01-12 14:57:09 +0800389 - BUILDMAN="riscv"
390 TOOLCHAIN="riscv"
Rick Chenf715ed42019-01-14 13:36:15 +0800391 - name: "buildman nds32"
392 env:
393 - BUILDMAN="nds32"
394 TOOLCHAIN="nds32"
Meier, Rogerc7cb3342014-11-19 15:26:18 +0100395
396 # QA jobs for code analytics
397 # static code analysis with cppcheck (we can add --enable=all later)
Stephen Warrena032e0a2018-07-30 10:19:43 -0600398 - name: "cppcheck"
Stephen Warrend7882212016-10-24 16:41:48 -0600399 script:
Tom Rinic85b52e2016-10-20 11:24:52 -0400400 - cppcheck --force --quiet --inline-suppr .
Heinrich Schuchardtbb9a76e2020-02-21 18:24:00 +0100401 # build HTML documentation
402 - name: "htmldocs"
403 script:
404 - make htmldocs
Meier, Rogerc7cb3342014-11-19 15:26:18 +0100405 # search for TODO within source tree
Stephen Warrena032e0a2018-07-30 10:19:43 -0600406 - name: "grep TODO"
Stephen Warrend7882212016-10-24 16:41:48 -0600407 script:
Tom Rinic85b52e2016-10-20 11:24:52 -0400408 - grep -r TODO .
Meier, Rogerc7cb3342014-11-19 15:26:18 +0100409 # search for FIXME within source tree
Stephen Warrena032e0a2018-07-30 10:19:43 -0600410 - name: "grep FIXME HACK"
Stephen Warrend7882212016-10-24 16:41:48 -0600411 script:
Tom Rinic85b52e2016-10-20 11:24:52 -0400412 - grep -r FIXME .
Meier, Rogerc7cb3342014-11-19 15:26:18 +0100413 # search for HACK within source tree and ignore HACKKIT board
Meier, Rogerc7cb3342014-11-19 15:26:18 +0100414 script:
415 - grep -r HACK . | grep -v HACKKIT
416 # some statistics about the code base
Stephen Warrena032e0a2018-07-30 10:19:43 -0600417 - name: "sloccount"
Stephen Warrend7882212016-10-24 16:41:48 -0600418 script:
Tom Rinic85b52e2016-10-20 11:24:52 -0400419 - sloccount .
Tom Riniee168782018-12-06 16:39:43 -0500420 # ensure all configs have MAINTAINERS entries
421 - name: "Check for configs without MAINTAINERS entry"
422 script:
423 - if [ `./tools/genboardscfg.py -f 2>&1 | wc -l` -ne 0 ]; then exit 1; fi
Otavio Salvador80870e22018-12-07 19:00:41 -0500424 # Ensure host tools build
425 - name: "Build tools-only"
426 script:
427 - make tools-only_config tools-only -j$(nproc)
Pierre-Jean Texier1f3910d2019-08-26 13:06:18 +0200428 # Ensure env tools build
429 - name: "Build envtools"
430 script:
431 - make tools-only_config envtools -j$(nproc)
Stephen Warren8304f052016-10-26 11:05:36 -0600432
Stephen Warren07bf2122016-02-08 18:23:35 -0700433 # test/py
Stephen Warrena032e0a2018-07-30 10:19:43 -0600434 - name: "test/py sandbox"
435 env:
Stephen Warren8304f052016-10-26 11:05:36 -0600436 - TEST_PY_BD="sandbox"
437 BUILDMAN="^sandbox$"
Bin Meng0533fb82018-10-08 16:53:54 -0700438 TOOLCHAIN="i386"
Tom Rini4030f162018-10-07 14:20:30 -0400439 - name: "test/py sandbox with clang"
440 env:
441 - TEST_PY_BD="sandbox"
442 BUILDMAN="^sandbox$"
Tom Rini626b0382019-10-26 13:48:41 -0400443 OVERRIDE="-O clang-7"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600444 - name: "test/py sandbox_spl"
445 env:
Tom Rini40c8d262017-08-07 15:24:50 -0400446 - TEST_PY_BD="sandbox_spl"
447 TEST_PY_TEST_SPEC="test_ofplatdata"
448 BUILDMAN="^sandbox$"
Bin Meng0533fb82018-10-08 16:53:54 -0700449 TOOLCHAIN="i386"
Simon Glassf2d07782017-11-26 20:26:00 -0700450 TEST_PY_TOOLS="yes"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600451 - name: "test/py sandbox_flattree"
452 env:
Tom Rini40c8d262017-08-07 15:24:50 -0400453 - TEST_PY_BD="sandbox_flattree"
454 BUILDMAN="^sandbox_flattree$"
Bin Meng0533fb82018-10-08 16:53:54 -0700455 TOOLCHAIN="i386"
Joel Stanley998dc832019-07-04 11:05:17 +0930456 - name: "test/py evb-ast2500"
457 env:
458 - TEST_PY_BD="evb-ast2500"
459 TEST_PY_ID="--id qemu"
460 QEMU_TARGET="arm-softmmu"
Joel Stanley998dc832019-07-04 11:05:17 +0930461 BUILDMAN="^evb-ast2500$"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600462 - name: "test/py vexpress_ca15_tc2"
463 env:
Stephen Warren8304f052016-10-26 11:05:36 -0600464 - TEST_PY_BD="vexpress_ca15_tc2"
465 TEST_PY_ID="--id qemu"
Tom Rini3c643fb2016-12-07 11:20:40 -0500466 QEMU_TARGET="arm-softmmu"
Stephen Warren8304f052016-10-26 11:05:36 -0600467 BUILDMAN="^vexpress_ca15_tc2$"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600468 - name: "test/py vexpress_ca9x4"
469 env:
Stephen Warren8304f052016-10-26 11:05:36 -0600470 - TEST_PY_BD="vexpress_ca9x4"
471 TEST_PY_ID="--id qemu"
Tom Rini3c643fb2016-12-07 11:20:40 -0500472 QEMU_TARGET="arm-softmmu"
Stephen Warren8304f052016-10-26 11:05:36 -0600473 BUILDMAN="^vexpress_ca9x4$"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600474 - name: "test/py integratorcp_cm926ejs"
475 env:
Stephen Warren8304f052016-10-26 11:05:36 -0600476 - TEST_PY_BD="integratorcp_cm926ejs"
Alexander Graf78992842016-11-17 18:31:07 +0100477 TEST_PY_TEST_SPEC="not sleep"
Stephen Warren8304f052016-10-26 11:05:36 -0600478 TEST_PY_ID="--id qemu"
Tom Rini3c643fb2016-12-07 11:20:40 -0500479 QEMU_TARGET="arm-softmmu"
Stephen Warren8304f052016-10-26 11:05:36 -0600480 BUILDMAN="^integratorcp_cm926ejs$"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600481 - name: "test/py qemu_arm"
482 env:
Tuomas Tynkkynen7b09dff2017-09-19 23:18:08 +0300483 - TEST_PY_BD="qemu_arm"
484 TEST_PY_TEST_SPEC="not sleep"
485 QEMU_TARGET="arm-softmmu"
486 BUILDMAN="^qemu_arm$"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600487 - name: "test/py qemu_arm64"
488 env:
Tuomas Tynkkynena5bee502018-01-11 16:11:26 +0200489 - TEST_PY_BD="qemu_arm64"
490 TEST_PY_TEST_SPEC="not sleep"
491 QEMU_TARGET="aarch64-softmmu"
492 BUILDMAN="^qemu_arm64$"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600493 - name: "test/py qemu_mips"
494 env:
Stephen Warren8304f052016-10-26 11:05:36 -0600495 - TEST_PY_BD="qemu_mips"
496 TEST_PY_TEST_SPEC="not sleep"
Tom Rini3c643fb2016-12-07 11:20:40 -0500497 QEMU_TARGET="mips-softmmu"
Stephen Warren8304f052016-10-26 11:05:36 -0600498 BUILDMAN="^qemu_mips$"
499 TOOLCHAIN="mips"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600500 - name: "test/py qemu_mipsel"
501 env:
Stephen Warren8304f052016-10-26 11:05:36 -0600502 - TEST_PY_BD="qemu_mipsel"
503 TEST_PY_TEST_SPEC="not sleep"
Tom Rini3c643fb2016-12-07 11:20:40 -0500504 QEMU_TARGET="mipsel-softmmu"
Stephen Warren8304f052016-10-26 11:05:36 -0600505 BUILDMAN="^qemu_mipsel$"
506 TOOLCHAIN="mips"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600507 - name: "test/py qemu_mips64"
508 env:
Stephen Warren8304f052016-10-26 11:05:36 -0600509 - TEST_PY_BD="qemu_mips64"
510 TEST_PY_TEST_SPEC="not sleep"
Tom Rini3c643fb2016-12-07 11:20:40 -0500511 QEMU_TARGET="mips64-softmmu"
Stephen Warren8304f052016-10-26 11:05:36 -0600512 BUILDMAN="^qemu_mips64$"
513 TOOLCHAIN="mips"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600514 - name: "test/py qemu_mips64el"
515 env:
Stephen Warren8304f052016-10-26 11:05:36 -0600516 - TEST_PY_BD="qemu_mips64el"
517 TEST_PY_TEST_SPEC="not sleep"
Tom Rini3c643fb2016-12-07 11:20:40 -0500518 QEMU_TARGET="mips64el-softmmu"
Stephen Warren8304f052016-10-26 11:05:36 -0600519 BUILDMAN="^qemu_mips64el$"
520 TOOLCHAIN="mips"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600521 - name: "test/py qemu-ppce500"
522 env:
Stephen Warren8304f052016-10-26 11:05:36 -0600523 - TEST_PY_BD="qemu-ppce500"
524 TEST_PY_TEST_SPEC="not sleep"
Tom Rini3c643fb2016-12-07 11:20:40 -0500525 QEMU_TARGET="ppc-softmmu"
Stephen Warren8304f052016-10-26 11:05:36 -0600526 BUILDMAN="^qemu-ppce500$"
Daniel Schwierzeck4c58d272018-05-10 07:15:53 -0400527 TOOLCHAIN="powerpc"
Heinrich Schuchardt22c7b7d2019-07-18 06:33:58 +0200528 - name: "test/py qemu-riscv64"
529 env:
530 - TEST_PY_BD="qemu-riscv64"
531 TEST_PY_TEST_SPEC="not sleep"
532 QEMU_TARGET="riscv64-softmmu"
533 BUILDMAN="^qemu-riscv64$"
534 TOOLCHAIN="riscv"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600535 - name: "test/py qemu-x86"
536 env:
Stephen Warren8304f052016-10-26 11:05:36 -0600537 - TEST_PY_BD="qemu-x86"
538 TEST_PY_TEST_SPEC="not sleep"
Tom Rini3c643fb2016-12-07 11:20:40 -0500539 QEMU_TARGET="i386-softmmu"
Stephen Warren8304f052016-10-26 11:05:36 -0600540 BUILDMAN="^qemu-x86$"
Bin Meng0533fb82018-10-08 16:53:54 -0700541 TOOLCHAIN="i386"
Stephen Warren8304f052016-10-26 11:05:36 -0600542 BUILD_ROM="yes"
Bin Meng3fdfca72018-10-13 20:52:14 -0700543 - name: "test/py qemu-x86_64"
544 env:
545 - TEST_PY_BD="qemu-x86_64"
546 TEST_PY_TEST_SPEC="not sleep"
547 QEMU_TARGET="x86_64-softmmu"
548 BUILDMAN="^qemu-x86_64$"
549 TOOLCHAIN="i386"
550 BUILD_ROM="yes"
Michal Simekf7c6ee72020-02-13 15:03:29 +0100551 - name: "test/py xilinx_zynq_virt"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600552 env:
Michal Simekf7c6ee72020-02-13 15:03:29 +0100553 - TEST_PY_BD="xilinx_zynq_virt"
Michal Simek41122d32016-12-14 09:47:23 +0100554 TEST_PY_TEST_SPEC="not sleep"
555 QEMU_TARGET="arm-softmmu"
556 TEST_PY_ID="--id qemu"
Michal Simekf7c6ee72020-02-13 15:03:29 +0100557 BUILDMAN="^xilinx_zynq_virt$"
Michal Simekd9eaae32018-12-20 08:40:25 +0100558 - name: "test/py xilinx_versal_virt"
559 env:
560 - TEST_PY_BD="xilinx_versal_virt"
561 TEST_PY_TEST_SPEC="not sleep"
562 QEMU_TARGET="aarch64-softmmu"
563 TEST_PY_ID="--id qemu"
564 BUILDMAN="^xilinx_versal_virt$"
Stephen Warrena032e0a2018-07-30 10:19:43 -0600565 - name: "test/py xtfpga"
566 env:
Max Filippov4d690092018-02-07 15:30:03 -0800567 - TEST_PY_BD="xtfpga"
568 TEST_PY_TEST_SPEC="not sleep"
569 QEMU_TARGET="xtensa-softmmu"
570 TEST_PY_ID="--id qemu"
571 BUILDMAN="^xtfpga$"
572 TOOLCHAIN="xtensa-dc233c-elf"
Meier, Rogerc7cb3342014-11-19 15:26:18 +0100573
Meier, Rogerc7cb3342014-11-19 15:26:18 +0100574# TODO make it perfect ;-r