.travis.yml 22 KB

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