.travis.yml 23 KB

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