.azure-pipelines.yml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  1. variables:
  2. windows_vm: windows-2019
  3. ubuntu_vm: ubuntu-18.04
  4. macos_vm: macOS-10.15
  5. ci_runner_image: trini/u-boot-gitlab-ci-runner:focal-20220113-03Feb2022
  6. # Add '-u 0' options for Azure pipelines, otherwise we get "permission
  7. # denied" error when it tries to "useradd -m -u 1001 vsts_azpcontainer",
  8. # since our $(ci_runner_image) user is not root.
  9. container_option: -u 0
  10. work_dir: /u
  11. stages:
  12. - stage: testsuites
  13. jobs:
  14. - job: tools_only_windows
  15. displayName: 'Ensure host tools build for Windows'
  16. pool:
  17. vmImage: $(windows_vm)
  18. steps:
  19. - powershell: |
  20. (New-Object Net.WebClient).DownloadFile("https://github.com/msys2/msys2-installer/releases/download/2021-06-04/msys2-base-x86_64-20210604.sfx.exe", "sfx.exe")
  21. displayName: 'Install MSYS2'
  22. - script: |
  23. sfx.exe -y -o%CD:~0,2%\
  24. %CD:~0,2%\msys64\usr\bin\bash -lc "pacman --noconfirm -Syyuu"
  25. %CD:~0,2%\msys64\usr\bin\bash -lc "pacman --noconfirm -Su"
  26. displayName: 'Update MSYS2'
  27. - script: |
  28. %CD:~0,2%\msys64\usr\bin\bash -lc "pacman --noconfirm --needed -Sy make gcc bison flex diffutils openssl-devel libgnutls-devel libutil-linux-devel"
  29. displayName: 'Install Toolchain'
  30. - script: |
  31. echo make tools-only_defconfig tools-only NO_SDL=1 > build-tools.sh
  32. %CD:~0,2%\msys64\usr\bin\bash -lc "bash build-tools.sh"
  33. displayName: 'Build Host Tools'
  34. env:
  35. # Tell MSYS2 we need a POSIX emulation layer
  36. MSYSTEM: MSYS
  37. # Tell MSYS2 not to ‘cd’ our startup directory to HOME
  38. CHERE_INVOKING: yes
  39. - job: tools_only_macOS
  40. displayName: 'Ensure host tools build for macOS X'
  41. pool:
  42. vmImage: $(macos_vm)
  43. steps:
  44. - script: brew install make ossp-uuid
  45. displayName: Brew install dependencies
  46. - script: |
  47. gmake tools-only_config tools-only NO_SDL=1 \
  48. HOSTCFLAGS="-I/usr/local/opt/openssl@1.1/include" \
  49. HOSTLDFLAGS="-L/usr/local/opt/openssl@1.1/lib" \
  50. -j$(sysctl -n hw.logicalcpu)
  51. displayName: 'Perform tools-only build'
  52. - job: check_for_migrated_symbols_in_board_header
  53. displayName: 'Check for migrated symbols in board header'
  54. pool:
  55. vmImage: $(ubuntu_vm)
  56. container:
  57. image: $(ci_runner_image)
  58. options: $(container_option)
  59. steps:
  60. - script: |
  61. KSYMLST=`mktemp`
  62. KUSEDLST=`mktemp`
  63. cat `find . -name "Kconfig*"` | \
  64. sed -n -e 's/^\s*config *\([A-Za-z0-9_]*\).*$/CONFIG_\1/p' \
  65. -e 's/^\s*menuconfig *\([A-Za-z0-9_]*\).*$/CONFIG_\1/p' \
  66. | sort -u > $KSYMLST
  67. for CFG in `find include/configs -name "*.h"`; do
  68. grep '#define[[:blank:]]CONFIG_' $CFG | \
  69. sed -n 's/#define.\(CONFIG_[A-Za-z0-9_]*\).*/\1/p' | \
  70. sort -u > ${KUSEDLST} || true
  71. NUM=`comm -12 --total --output-delimiter=, ${KSYMLST} ${KUSEDLST} | \
  72. cut -d , -f 3`
  73. if [[ $NUM -ne 0 ]]; then
  74. echo "Unmigrated symbols found in $CFG"
  75. exit 1
  76. fi
  77. done
  78. - job: cppcheck
  79. displayName: 'Static code analysis with cppcheck'
  80. pool:
  81. vmImage: $(ubuntu_vm)
  82. container:
  83. image: $(ci_runner_image)
  84. options: $(container_option)
  85. steps:
  86. - script: cppcheck -j$(nproc) --force --quiet --inline-suppr .
  87. - job: htmldocs
  88. displayName: 'Build HTML documentation'
  89. pool:
  90. vmImage: $(ubuntu_vm)
  91. container:
  92. image: $(ci_runner_image)
  93. options: $(container_option)
  94. steps:
  95. - script: |
  96. virtualenv -p /usr/bin/python3 /tmp/venvhtml
  97. . /tmp/venvhtml/bin/activate
  98. pip install -r doc/sphinx/requirements.txt
  99. make htmldocs
  100. - job: todo
  101. displayName: 'Search for TODO within source tree'
  102. pool:
  103. vmImage: $(ubuntu_vm)
  104. container:
  105. image: $(ci_runner_image)
  106. options: $(container_option)
  107. steps:
  108. - script: grep -r TODO .
  109. - script: grep -r FIXME .
  110. - script: grep -r HACK . | grep -v HACKKIT
  111. - job: sloccount
  112. displayName: 'Some statistics about the code base'
  113. pool:
  114. vmImage: $(ubuntu_vm)
  115. container:
  116. image: $(ci_runner_image)
  117. options: $(container_option)
  118. steps:
  119. - script: sloccount .
  120. - job: maintainers
  121. displayName: 'Ensure all configs have MAINTAINERS entries'
  122. pool:
  123. vmImage: $(ubuntu_vm)
  124. container:
  125. image: $(ci_runner_image)
  126. options: $(container_option)
  127. steps:
  128. - script: |
  129. if [ `./tools/genboardscfg.py -f 2>&1 | wc -l` -ne 0 ]; then exit 1; fi
  130. - job: tools_only
  131. displayName: 'Ensure host tools build'
  132. pool:
  133. vmImage: $(ubuntu_vm)
  134. container:
  135. image: $(ci_runner_image)
  136. options: $(container_option)
  137. steps:
  138. - script: |
  139. make tools-only_config tools-only -j$(nproc)
  140. - job: envtools
  141. displayName: 'Ensure env tools build'
  142. pool:
  143. vmImage: $(ubuntu_vm)
  144. container:
  145. image: $(ci_runner_image)
  146. options: $(container_option)
  147. steps:
  148. - script: |
  149. make tools-only_config envtools -j$(nproc)
  150. - job: utils
  151. displayName: 'Run binman, buildman, dtoc, Kconfig and patman testsuites'
  152. pool:
  153. vmImage: $(ubuntu_vm)
  154. steps:
  155. - script: |
  156. cat << EOF > build.sh
  157. set -ex
  158. cd ${WORK_DIR}
  159. EOF
  160. cat << "EOF" >> build.sh
  161. git config --global user.name "Azure Pipelines"
  162. git config --global user.email bmeng.cn@gmail.com
  163. export USER=azure
  164. virtualenv -p /usr/bin/python3 /tmp/venv
  165. . /tmp/venv/bin/activate
  166. pip install -r test/py/requirements.txt
  167. export UBOOT_TRAVIS_BUILD_DIR=/tmp/sandbox_spl
  168. export PYTHONPATH=${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt
  169. export PATH=${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}
  170. ./tools/buildman/buildman -T0 -o ${UBOOT_TRAVIS_BUILD_DIR} -w --board sandbox_spl
  171. ./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test
  172. ./tools/buildman/buildman -t
  173. ./tools/dtoc/dtoc -t
  174. ./tools/patman/patman test
  175. make O=${UBOOT_TRAVIS_BUILD_DIR} testconfig
  176. EOF
  177. cat build.sh
  178. # We cannot use "container" like other jobs above, as buildman
  179. # seems to hang forever with pre-configured "container" environment
  180. docker run -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/build.sh
  181. - job: nokia_rx51_test
  182. displayName: 'Run tests for Nokia RX-51 (aka N900)'
  183. pool:
  184. vmImage: $(ubuntu_vm)
  185. container:
  186. image: $(ci_runner_image)
  187. options: $(container_option)
  188. steps:
  189. - script: |
  190. export PATH=/opt/gcc-11.1.0-nolibc/arm-linux-gnueabi/bin:$PATH
  191. test/nokia_rx51_test.sh
  192. - stage: test_py
  193. jobs:
  194. - job: test_py
  195. displayName: 'test.py'
  196. pool:
  197. vmImage: $(ubuntu_vm)
  198. strategy:
  199. matrix:
  200. sandbox:
  201. TEST_PY_BD: "sandbox"
  202. sandbox_clang:
  203. TEST_PY_BD: "sandbox"
  204. OVERRIDE: "-O clang-13"
  205. sandbox_spl:
  206. TEST_PY_BD: "sandbox_spl"
  207. TEST_PY_TEST_SPEC: "test_ofplatdata or test_handoff or test_spl"
  208. sandbox_noinst:
  209. TEST_PY_BD: "sandbox_noinst"
  210. TEST_PY_TEST_SPEC: "test_ofplatdata or test_handoff or test_spl"
  211. sandbox_flattree:
  212. TEST_PY_BD: "sandbox_flattree"
  213. coreboot:
  214. TEST_PY_BD: "coreboot"
  215. TEST_PY_ID: "--id qemu"
  216. TEST_PY_TEST_SPEC: "not sleep"
  217. evb_ast2500:
  218. TEST_PY_BD: "evb-ast2500"
  219. TEST_PY_ID: "--id qemu"
  220. vexpress_ca9x4:
  221. TEST_PY_BD: "vexpress_ca9x4"
  222. TEST_PY_ID: "--id qemu"
  223. integratorcp_cm926ejs:
  224. TEST_PY_BD: "integratorcp_cm926ejs"
  225. TEST_PY_ID: "--id qemu"
  226. TEST_PY_TEST_SPEC: "not sleep"
  227. qemu_arm:
  228. TEST_PY_BD: "qemu_arm"
  229. TEST_PY_TEST_SPEC: "not sleep"
  230. qemu_arm64:
  231. TEST_PY_BD: "qemu_arm64"
  232. TEST_PY_TEST_SPEC: "not sleep"
  233. qemu_malta:
  234. TEST_PY_BD: "malta"
  235. TEST_PY_ID: "--id qemu"
  236. TEST_PY_TEST_SPEC: "not sleep and not efi"
  237. qemu_maltael:
  238. TEST_PY_BD: "maltael"
  239. TEST_PY_ID: "--id qemu"
  240. TEST_PY_TEST_SPEC: "not sleep and not efi"
  241. qemu_malta64:
  242. TEST_PY_BD: "malta64"
  243. TEST_PY_ID: "--id qemu"
  244. TEST_PY_TEST_SPEC: "not sleep and not efi"
  245. qemu_malta64el:
  246. TEST_PY_BD: "malta64el"
  247. TEST_PY_ID: "--id qemu"
  248. TEST_PY_TEST_SPEC: "not sleep and not efi"
  249. qemu_ppce500:
  250. TEST_PY_BD: "qemu-ppce500"
  251. TEST_PY_TEST_SPEC: "not sleep"
  252. qemu_riscv32:
  253. TEST_PY_BD: "qemu-riscv32"
  254. TEST_PY_TEST_SPEC: "not sleep"
  255. qemu_riscv64:
  256. TEST_PY_BD: "qemu-riscv64"
  257. TEST_PY_TEST_SPEC: "not sleep"
  258. qemu_riscv32_spl:
  259. TEST_PY_BD: "qemu-riscv32_spl"
  260. TEST_PY_TEST_SPEC: "not sleep"
  261. qemu_riscv64_spl:
  262. TEST_PY_BD: "qemu-riscv64_spl"
  263. TEST_PY_TEST_SPEC: "not sleep"
  264. qemu_x86:
  265. TEST_PY_BD: "qemu-x86"
  266. TEST_PY_TEST_SPEC: "not sleep"
  267. qemu_x86_64:
  268. TEST_PY_BD: "qemu-x86_64"
  269. TEST_PY_TEST_SPEC: "not sleep"
  270. r2dplus_i82557c:
  271. TEST_PY_BD: "r2dplus"
  272. TEST_PY_ID: "--id i82557c_qemu"
  273. r2dplus_pcnet:
  274. TEST_PY_BD: "r2dplus"
  275. TEST_PY_ID: "--id pcnet_qemu"
  276. r2dplus_rtl8139:
  277. TEST_PY_BD: "r2dplus"
  278. TEST_PY_ID: "--id rtl8139_qemu"
  279. r2dplus_tulip:
  280. TEST_PY_BD: "r2dplus"
  281. TEST_PY_ID: "--id tulip_qemu"
  282. sifive_unleashed_sdcard:
  283. TEST_PY_BD: "sifive_unleashed"
  284. TEST_PY_ID: "--id sdcard_qemu"
  285. sifive_unleashed_spi-nor:
  286. TEST_PY_BD: "sifive_unleashed"
  287. TEST_PY_ID: "--id spi-nor_qemu"
  288. xilinx_zynq_virt:
  289. TEST_PY_BD: "xilinx_zynq_virt"
  290. TEST_PY_ID: "--id qemu"
  291. TEST_PY_TEST_SPEC: "not sleep"
  292. xilinx_versal_virt:
  293. TEST_PY_BD: "xilinx_versal_virt"
  294. TEST_PY_ID: "--id qemu"
  295. TEST_PY_TEST_SPEC: "not sleep"
  296. xtfpga:
  297. TEST_PY_BD: "xtfpga"
  298. TEST_PY_ID: "--id qemu"
  299. TEST_PY_TEST_SPEC: "not sleep"
  300. steps:
  301. - script: |
  302. cat << EOF > test.sh
  303. set -ex
  304. # make environment variables available as tests are running inside a container
  305. export WORK_DIR="${WORK_DIR}"
  306. export TEST_PY_BD="${TEST_PY_BD}"
  307. export TEST_PY_ID="${TEST_PY_ID}"
  308. export TEST_PY_TEST_SPEC="${TEST_PY_TEST_SPEC}"
  309. export OVERRIDE="${OVERRIDE}"
  310. EOF
  311. cat << "EOF" >> test.sh
  312. # the below corresponds to .gitlab-ci.yml "before_script"
  313. cd ${WORK_DIR}
  314. git clone --depth=1 https://source.denx.de/u-boot/u-boot-test-hooks /tmp/uboot-test-hooks
  315. ln -s travis-ci /tmp/uboot-test-hooks/bin/`hostname`
  316. ln -s travis-ci /tmp/uboot-test-hooks/py/`hostname`
  317. grub-mkimage --prefix=\"\" -o ~/grub_x86.efi -O i386-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd
  318. grub-mkimage --prefix=\"\" -o ~/grub_x64.efi -O x86_64-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd
  319. if [[ "${TEST_PY_BD}" == "qemu-riscv32_spl" ]]; then
  320. wget -O - https://github.com/riscv/opensbi/releases/download/v0.9/opensbi-0.9-rv-bin.tar.xz | tar -C /tmp -xJ;
  321. export OPENSBI=/tmp/opensbi-0.9-rv-bin/share/opensbi/ilp32/generic/firmware/fw_dynamic.bin;
  322. fi
  323. if [[ "${TEST_PY_BD}" == "qemu-riscv64_spl" ]] || [[ "${TEST_PY_BD}" == "sifive_unleashed" ]]; then
  324. wget -O - https://github.com/riscv/opensbi/releases/download/v0.9/opensbi-0.9-rv-bin.tar.xz | tar -C /tmp -xJ;
  325. export OPENSBI=/tmp/opensbi-0.9-rv-bin/share/opensbi/lp64/generic/firmware/fw_dynamic.bin;
  326. fi
  327. # the below corresponds to .gitlab-ci.yml "script"
  328. cd ${WORK_DIR}
  329. export UBOOT_TRAVIS_BUILD_DIR=/tmp/${TEST_PY_BD};
  330. tools/buildman/buildman -o ${UBOOT_TRAVIS_BUILD_DIR} -w -E -W -e --board ${TEST_PY_BD} ${OVERRIDE}
  331. cp ~/grub_x86.efi ${UBOOT_TRAVIS_BUILD_DIR}/
  332. cp ~/grub_x64.efi ${UBOOT_TRAVIS_BUILD_DIR}/
  333. cp /opt/grub/grubriscv64.efi ${UBOOT_TRAVIS_BUILD_DIR}/grub_riscv64.efi
  334. cp /opt/grub/grubaa64.efi ${UBOOT_TRAVIS_BUILD_DIR}/grub_arm64.efi
  335. cp /opt/grub/grubarm.efi ${UBOOT_TRAVIS_BUILD_DIR}/grub_arm.efi
  336. # create sdcard / spi-nor images for sifive unleashed using genimage
  337. if [[ "${TEST_PY_BD}" == "sifive_unleashed" ]]; then
  338. mkdir -p root;
  339. cp ${UBOOT_TRAVIS_BUILD_DIR}/spl/u-boot-spl.bin .;
  340. cp ${UBOOT_TRAVIS_BUILD_DIR}/u-boot.itb .;
  341. rm -rf tmp;
  342. genimage --inputpath . --config board/sifive/unleashed/genimage_sdcard.cfg;
  343. cp images/sdcard.img ${UBOOT_TRAVIS_BUILD_DIR}/;
  344. rm -rf tmp;
  345. genimage --inputpath . --config board/sifive/unleashed/genimage_spi-nor.cfg;
  346. cp images/spi-nor.img ${UBOOT_TRAVIS_BUILD_DIR}/;
  347. fi
  348. if [[ "${TEST_PY_BD}" == "coreboot" ]]; then
  349. wget -O - "https://drive.google.com/uc?id=1x6nrtWIyIRPLS2cQBwYTnT2TbOI8UjmM&export=download" |xz -dc >${UBOOT_TRAVIS_BUILD_DIR}/coreboot.rom;
  350. wget -O - "https://drive.google.com/uc?id=149Cz-5SZXHNKpi9xg6R_5XITWohu348y&export=download" >cbfstool;
  351. chmod a+x cbfstool;
  352. ./cbfstool ${UBOOT_TRAVIS_BUILD_DIR}/coreboot.rom add-flat-binary -f ${UBOOT_TRAVIS_BUILD_DIR}/u-boot.bin -n fallback/payload -c LZMA -l 0x1110000 -e 0x1110000;
  353. fi
  354. virtualenv -p /usr/bin/python3 /tmp/venv
  355. . /tmp/venv/bin/activate
  356. pip install -r test/py/requirements.txt
  357. export PATH=/opt/qemu/bin:/tmp/uboot-test-hooks/bin:${PATH};
  358. export PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci;
  359. # "${var:+"-k $var"}" expands to "" if $var is empty, "-k $var" if not
  360. ./test/py/test.py -ra --bd ${TEST_PY_BD} ${TEST_PY_ID} ${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"} --build-dir "$UBOOT_TRAVIS_BUILD_DIR";
  361. # the below corresponds to .gitlab-ci.yml "after_script"
  362. rm -rf /tmp/uboot-test-hooks /tmp/venv
  363. EOF
  364. cat test.sh
  365. # make current directory writeable to uboot user inside the container
  366. # as sandbox testing need create files like spi flash images, etc.
  367. # (TODO: clean up this in the future)
  368. chmod 777 .
  369. # Filesystem tests need extra docker args to run
  370. set --
  371. if [[ "${TEST_PY_BD}" == "sandbox" ]]; then
  372. # mount -o loop needs the loop devices
  373. if modprobe loop; then
  374. for d in $(find /dev -maxdepth 1 -name 'loop*'); do
  375. set -- "$@" --device $d:$d
  376. done
  377. fi
  378. # Needed for mount syscall (for guestmount as well)
  379. set -- "$@" --cap-add SYS_ADMIN
  380. # Default apparmor profile denies mounts
  381. set -- "$@" --security-opt apparmor=unconfined
  382. fi
  383. # Some tests using libguestfs-tools need the fuse device to run
  384. docker run "$@" --device /dev/fuse:/dev/fuse -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/test.sh
  385. - stage: world_build
  386. jobs:
  387. - job: build_the_world
  388. displayName: 'Build the World'
  389. pool:
  390. vmImage: $(ubuntu_vm)
  391. strategy:
  392. # Use almost the same target division in .travis.yml, only merged
  393. # 4 small build jobs (arc/microblaze/nds32/xtensa) into one.
  394. matrix:
  395. arc_microblaze_nds32_xtensa:
  396. BUILDMAN: "arc microblaze nds32 xtensa"
  397. arm11_arm7_arm920t_arm946es:
  398. BUILDMAN: "arm11 arm7 arm920t arm946es"
  399. arm926ejs:
  400. BUILDMAN: "arm926ejs -x freescale,siemens,at91,kirkwood,omap"
  401. at91_non_armv7:
  402. BUILDMAN: "at91 -x armv7"
  403. at91_non_arm926ejs:
  404. BUILDMAN: "at91 -x arm926ejs"
  405. boundary_engicam_toradex:
  406. BUILDMAN: "boundary engicam toradex"
  407. arm_bcm:
  408. BUILDMAN: "bcm -x mips"
  409. nxp_arm32:
  410. BUILDMAN: "freescale -x powerpc,m68k,aarch64,ls101,ls102,ls104,ls108,ls20,lx216"
  411. nxp_ls101x:
  412. BUILDMAN: "freescale&ls101"
  413. nxp_ls102x:
  414. BUILDMAN: "freescale&ls102"
  415. nxp_ls104x:
  416. BUILDMAN: "freescale&ls104"
  417. nxp_ls108x:
  418. BUILDMAN: "freescale&ls108"
  419. nxp_ls20xx:
  420. BUILDMAN: "freescale&ls20"
  421. nxp_lx216x:
  422. BUILDMAN: "freescale&lx216"
  423. imx6:
  424. BUILDMAN: "mx6 -x boundary,engicam,freescale,technexion,toradex"
  425. imx:
  426. BUILDMAN: "mx -x mx6,freescale,technexion,toradex"
  427. imx8:
  428. BUILDMAN: "imx8"
  429. keystone2_keystone3:
  430. BUILDMAN: "k2 k3"
  431. samsung_socfpga:
  432. BUILDMAN: "samsung socfpga"
  433. sun4i:
  434. BUILDMAN: "sun4i"
  435. sun5i:
  436. BUILDMAN: "sun5i"
  437. sun6i:
  438. BUILDMAN: "sun6i"
  439. sun7i:
  440. BUILDMAN: "sun7i"
  441. sun8i_32bit:
  442. BUILDMAN: "sun8i&armv7"
  443. sun8i_64bit:
  444. BUILDMAN: "sun8i&aarch64"
  445. sun9i:
  446. BUILDMAN: "sun9i"
  447. sun50i:
  448. BUILDMAN: "sun50i"
  449. arm_catch_all:
  450. BUILDMAN: "arm -x arm11,arm7,arm9,aarch64,at91,bcm,freescale,kirkwood,mvebu,renesas,siemens,tegra,uniphier,mx,samsung,sunxi,am33xx,omap,rk,toradex,socfpga,k2,k3,zynq"
  451. sandbox_x86:
  452. BUILDMAN: "sandbox x86"
  453. technexion:
  454. BUILDMAN: "technexion"
  455. kirkwood:
  456. BUILDMAN: "kirkwood"
  457. mvebu:
  458. BUILDMAN: "mvebu"
  459. m68k:
  460. BUILDMAN: "m68k"
  461. mips:
  462. BUILDMAN: "mips"
  463. non_fsl_ppc:
  464. BUILDMAN: "powerpc -x freescale"
  465. mpc85xx_freescale:
  466. BUILDMAN: "mpc85xx&freescale -x t208xrdb -x t102* -x p1_p2_rdb_pc -x p1010rdb -x corenet_ds -x bsc91*"
  467. t208xrdb_corenet_ds:
  468. BUILDMAN: "t208xrdb corenet_ds"
  469. fsl_ppc:
  470. BUILDMAN: "mpc83xx&freescale"
  471. t102x:
  472. BUILDMAN: "t102*"
  473. p1_p2_rdb_pc:
  474. BUILDMAN: "p1_p2_rdb_pc"
  475. p1010rdb_bsc91:
  476. BUILDMAN: "p1010rdb bsc91"
  477. siemens:
  478. BUILDMAN: "siemens"
  479. tegra:
  480. BUILDMAN: "tegra -x toradex"
  481. am33xx_no_siemens:
  482. BUILDMAN: "am33xx -x siemens"
  483. omap:
  484. BUILDMAN: "omap"
  485. uniphier:
  486. BUILDMAN: "uniphier"
  487. aarch64_catch_all:
  488. BUILDMAN: "aarch64 -x bcm,imx8,k3,tegra,ls1,ls2,lx216,mvebu,uniphier,renesas,sunxi,samsung,socfpga,rk,versal,zynq"
  489. rockchip:
  490. BUILDMAN: "rk"
  491. renesas:
  492. BUILDMAN: "renesas"
  493. zynq:
  494. BUILDMAN: "zynq&armv7"
  495. zynqmp_versal:
  496. BUILDMAN: "versal|zynqmp&aarch64"
  497. riscv:
  498. BUILDMAN: "riscv"
  499. steps:
  500. - script: |
  501. cat << EOF > build.sh
  502. set -ex
  503. cd ${WORK_DIR}
  504. # make environment variables available as tests are running inside a container
  505. export BUILDMAN="${BUILDMAN}"
  506. EOF
  507. cat << "EOF" >> build.sh
  508. if [[ "${BUILDMAN}" != "" ]]; then
  509. ret=0;
  510. tools/buildman/buildman -o /tmp -P -E -W ${BUILDMAN} ${OVERRIDE} || ret=$?;
  511. if [[ $ret -ne 0 ]]; then
  512. tools/buildman/buildman -o /tmp -seP ${BUILDMAN};
  513. exit $ret;
  514. fi;
  515. fi
  516. EOF
  517. cat build.sh
  518. docker run -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/build.sh