.travis.yml 23 KB

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