File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
armv7-unknown-linux-uclibceabihf
mipsel-unknown-linux-uclibc Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM ubuntu:20.04
2
+
3
+ RUN apt-get update && apt-get install -y --no-install-recommends \
4
+ gcc libc6-dev qemu-user ca-certificates qemu-system-arm curl \
5
+ xz-utils patch
6
+
7
+ RUN mkdir /toolchain
8
+
9
+ RUN curl --retry 5 -L https://toolchains.bootlin.com/downloads/releases/toolchains/armv7-eabihf/tarballs/armv7-eabihf--uclibc--bleeding-edge-2020.08-1.tar.bz2 | \
10
+ tar xjf - -C /toolchain --strip-components=1
11
+ RUN /toolchain/relocate-sdk.sh
12
+
13
+ ENV PATH=$PATH:/rust/bin:/toolchain/bin \
14
+ STAGING_DIR=/toolchain/armv7-buildroot-linux-uclibceabihf/sysroot \
15
+ CC_armv7_unknown_linux_uclibc=armv7-buildroot-linux-uclibc-gcc \
16
+ CARGO_TARGET_ARMV7_UNKNOWN_LINUX_UCLIBCEABIHF_LINKER=armv7-buildroot-linux-uclibc-gcc \
17
+ CARGO_TARGET_ARMV7_UNKNOWN_LINUX_UCLIBCEABIHF_RUNNER="qemu-arm -L /toolchain/arm-buildroot-linux-uclibcgnueabihf/sysroot/"
Original file line number Diff line number Diff line change
1
+ FROM ubuntu:20.04
2
+
3
+ RUN apt-get update && apt-get install -y --no-install-recommends \
4
+ gcc libc6-dev qemu-user ca-certificates qemu-system-mipsel curl \
5
+ xz-utils patch
6
+
7
+ RUN mkdir /toolchain
8
+
9
+ # binutils 2.33.1
10
+ # gcc 9.3.0
11
+ # gdb 8.3.1
12
+ # linux-headers 4.9.234
13
+ # uclibc 1.0.34
14
+ RUN curl --retry 5 -L https://toolchains.bootlin.com/downloads/releases/toolchains/mips32el/tarballs/mips32el--uclibc--stable-2020.08-1.tar.bz2 | \
15
+ tar xjf - -C /toolchain --strip-components=1
16
+ RUN /toolchain/relocate-sdk.sh
17
+
18
+ ENV PATH=$PATH:/rust/bin:/toolchain/bin \
19
+ STAGING_DIR=/toolchain/mipsel-buildroot-linux-uclibc/sysroot \
20
+ CC_mipsel_unknown_linux_uclibc=mipsel-buildroot-linux-uclibc-gcc \
21
+ CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_UCLIBC_LINKER=mipsel-buildroot-linux-uclibc-gcc \
22
+ CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_UCLIBC_RUNNER="qemu-mipsel -L /toolchain/mipsel-buildroot-linux-uclibc/sysroot/"
You can’t perform that action at this time.
0 commit comments