.travis.yml changes for building/testing xtensa port
cover .travis.yml changes for building/testing xtensa port
Hi Tom,
the following two patches allow building and running U-Boot for xtensa in Travis CI.
The test results are the following:
4 failed, 14 passed, 86 skipped, 1 deselected
Failures are in the environment manipulation tests and skipped tests are mostly the hush ones. I guess that's because hush is not enabled in the xtfpga_defconfig.
Max Filippov (2):
.travis.yml: download xtensa prebuilt toolchain
.travis.yml: test xtensa xtfpga board in QEMU
.travis.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-)
Signature · 1 line
2.1.4
PATCH 1/2 .travis.yml: download xtensa prebuilt toolchain
xtensa toolchains are core-specific, so give full toolchain name and download corresponding prebuilt toolchain from the github release.
--- .travis.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
.travis.yml +6 -2
@@ -72,7 +72,11 @@ before_script: wget https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/download/arc-2016.09-release/arc_gnu_2016.09_prebuilt_uclibc_le_archs_linux_install.tar.gz && tar -C /tmp -xf arc_gnu_2016.09_prebuilt_uclibc_le_archs_linux_install.tar.gz; fi - - if [[ "${TOOLCHAIN}" == *xtensa* ]]; then ./tools/buildman/buildman --fetch-arch xtensa ; fi + - if [[ "${TOOLCHAIN}" == *xtensa* ]]; then + wget https://github.com/foss-xtensa/toolchain/releases/download/2018.02/x86_64-2018.02-${TOOLCHAIN}.tar.gz && + tar -C /tmp -xf x86_64-2018.02-${TOOLCHAIN}.tar.gz && + echo -e "\n[toolchain-prefix]\nxtensa = /tmp/2018.02/${TOOLCHAIN}/bin/${TOOLCHAIN}-" >> ~/.buildman; + fi # If TOOLCHAIN is unset, we're on some flavour of ARM. - if [[ "${TOOLCHAIN}" == "" ]]; then wget http://releases.linaro.org/components/toolchain/binaries/6.3-2017.02/aarch64-linux-gnu/gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu.tar.xz &&
@@ -272,7 +276,7 @@ matrix: BUILDMAN="xilinx -x microblaze" - env: - BUILDMAN="xtensa" - TOOLCHAIN="xtensa" + TOOLCHAIN="xtensa-dc233c-elf" - env: - BUILDMAN="riscv" TOOLCHAIN="riscv"
Signature · 1 line
2.1.4
PATCH 2/2 .travis.yml: test xtensa xtfpga board in QEMU
In reply to Max FilippovThis allows running tests on emulated KC705 board with DC233C xtensa core. It expects to find conf.xtfpga_qemu in the uboot-test-hooks.
--- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+)
.travis.yml +7 -0
@@ -389,5 +389,12 @@ matrix: QEMU_TARGET="arm-softmmu" TEST_PY_ID="--id qemu" BUILDMAN="^zynq_zc702$" + - env: + - TEST_PY_BD="xtfpga" + TEST_PY_TEST_SPEC="not sleep" + QEMU_TARGET="xtensa-softmmu" + TEST_PY_ID="--id qemu" + BUILDMAN="^xtfpga$" + TOOLCHAIN="xtensa-dc233c-elf" # TODO make it perfect ;-r
Signature · 1 line
2.1.4