diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-07-04 12:36:29 +0530 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-07-19 21:53:58 +0530 |
commit | b70ec50b9d1e552a60beef6e0d689fb746963358 (patch) | |
tree | ccee27165f67d700fb71a351b0eb42095f8a3107 /tests/docker/dockerfiles | |
parent | da7da9d5e608200ecc0749ff37be246e9cd3314f (diff) | |
download | qemu-b70ec50b9d1e552a60beef6e0d689fb746963358.zip qemu-b70ec50b9d1e552a60beef6e0d689fb746963358.tar.gz qemu-b70ec50b9d1e552a60beef6e0d689fb746963358.tar.bz2 |
tests/docker/dockerfiles: Add debian-loongarch-cross.docker
Use the pre-packaged toolchain provided by Loongson via github.
Tested-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220704070824.965429-1-richard.henderson@linaro.org>
Diffstat (limited to 'tests/docker/dockerfiles')
-rw-r--r-- | tests/docker/dockerfiles/debian-loongarch-cross.docker | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/docker/dockerfiles/debian-loongarch-cross.docker b/tests/docker/dockerfiles/debian-loongarch-cross.docker new file mode 100644 index 0000000..ca2469d --- /dev/null +++ b/tests/docker/dockerfiles/debian-loongarch-cross.docker @@ -0,0 +1,25 @@ +# +# Docker cross-compiler target +# +# This docker target builds on the debian11 base image, +# using a prebuilt toolchains for LoongArch64 from: +# https://github.com/loongson/build-tools/releases +# +FROM qemu/debian11 + +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \ + DEBIAN_FRONTEND=noninteractive eatmydata \ + apt-get install -y --no-install-recommends \ + build-essential \ + ca-certificates \ + curl \ + gettext \ + git \ + python3-minimal + +RUN curl -#SL https://github.com/loongson/build-tools/releases/download/2022.05.29/loongarch64-clfs-5.0-cross-tools-gcc-glibc.tar.xz \ + | tar -xJC /opt + +ENV PATH $PATH:/opt/cross-tools/bin +ENV LD_LIBRARY_PATH /opt/cross-tools/lib:/opt/cross-tools/loongarch64-unknown-linux-gnu/lib:$LD_LIBRARY_PATH |