diff options
author | Philippe Mathieu-Daudé | 2018-06-23 23:53:13 +0200 |
---|---|---|
committer | Alex Bennée | 2019-03-12 18:05:21 +0100 |
commit | c72d9df18185c2d06f97409b6edabb68a77a49c3 (patch) | |
tree | 931220853b0c384606660be57c6ab2b5337ffc56 /tests/docker/dockerfiles/debian-xtensa-cross.docker | |
parent | tests/tcg/mips: fix hello-mips compilation (diff) | |
download | qemu-c72d9df18185c2d06f97409b6edabb68a77a49c3.tar.gz qemu-c72d9df18185c2d06f97409b6edabb68a77a49c3.tar.xz qemu-c72d9df18185c2d06f97409b6edabb68a77a49c3.zip |
tests/docker: add debian-xtensa-cross image
Xtensa cpu supported:
- dc232b
- dc233c
- csp
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'tests/docker/dockerfiles/debian-xtensa-cross.docker')
-rw-r--r-- | tests/docker/dockerfiles/debian-xtensa-cross.docker | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/docker/dockerfiles/debian-xtensa-cross.docker b/tests/docker/dockerfiles/debian-xtensa-cross.docker new file mode 100644 index 0000000000..afd2ab9163 --- /dev/null +++ b/tests/docker/dockerfiles/debian-xtensa-cross.docker @@ -0,0 +1,31 @@ +# +# Docker cross-compiler target +# +# This docker target builds on the debian stretch base image, +# using a prebuilt toolchains for Xtensa cores from: +# https://github.com/foss-xtensa/toolchain/releases +# +FROM debian:stretch-slim + +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt-get install -y --no-install-recommends \ + bison \ + build-essential \ + ca-certificates \ + curl \ + flex \ + gettext \ + git \ + python-minimal + +ENV CPU_LIST csp dc232b dc233c +ENV TOOLCHAIN_RELEASE 2018.02 + +RUN for cpu in $CPU_LIST; do \ + curl -#SL http://github.com/foss-xtensa/toolchain/releases/download/$TOOLCHAIN_RELEASE/x86_64-$TOOLCHAIN_RELEASE-xtensa-$cpu-elf.tar.gz \ + | tar -xzC /opt; \ + done + +ENV PATH $PATH:/opt/$TOOLCHAIN_RELEASE/xtensa-dc232b-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-dc233c-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-csp-elf/bin |