b70ec50b9d
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>
26 lines
827 B
Docker
26 lines
827 B
Docker
#
|
|
# 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
|