File tree 1 file changed +10
-15
lines changed
ci/docker/loongarch64-unknown-linux-gnu
1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change 1
1
FROM ubuntu:24.04
2
- RUN \
3
- apt-get update && \
4
- apt-get install -y --no-install-recommends gcc libc6-dev ca-certificates wget xz-utils && \
5
- wget "https://github.com/loongson/build-tools/releases/download/2024.08.08/x86_64-cross-tools-loongarch64-binutils_2.43-gcc_14.2.0.tar.xz" && \
6
- tar -xvf x86_64-cross-tools-loongarch64-binutils_2.43-gcc_14.2.0.tar.xz -C / && \
7
- rm x86_64-cross-tools-loongarch64-binutils_2.43-gcc_14.2.0.tar.xz && \
8
- wget "https://github.com/loongson/build-tools/releases/download/2024.08.08/x86_64-cross-tools-loongarch64-binutils_2.43-gcc_14.2.0-glibc_2.40.tar.xz" && \
9
- tar -xvf x86_64-cross-tools-loongarch64-binutils_2.43-gcc_14.2.0-glibc_2.40.tar.xz -C / && \
10
- rm x86_64-cross-tools-loongarch64-binutils_2.43-gcc_14.2.0-glibc_2.40.tar.xz && \
11
- wget "https://github.com/loongson/build-tools/releases/download/2023.08.08/qemu-loongarch64" && \
12
- install -m 755 qemu-loongarch64 /cross-tools/bin/qemu-loongarch64 && \
13
- rm qemu-loongarch64
14
- ENV \
15
- CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_LINKER="/cross-tools/bin/loongarch64-unknown-linux-gnu-gcc" \
16
- CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_RUNNER="/cross-tools/bin/qemu-loongarch64 -L /cross-tools/target -E LD_LIBRARY_PATH=/cross-tools/loongarch64-unknown-linux-gnu/lib"
2
+
3
+ RUN apt-get update && \
4
+ apt-get install -y --no-install-recommends \
5
+ gcc libc6-dev qemu-user-static ca-certificates \
6
+ gcc-14-loongarch64-linux-gnu libc6-dev-loong64-cross
7
+
8
+
9
+ ENV CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_LINKER=loongarch64-linux-gnu-gcc-14 \
10
+ CARGO_TARGET_LOONGARCH64_UNKNOWN_LINUX_GNU_RUNNER="qemu-loongarch64-static -L /usr/loongarch64-linux-gnu" \
11
+ OBJDUMP=loongarch64-linux-gnu-objdump
You can’t perform that action at this time.
0 commit comments