-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #2403 - skrap:master, r=Amanieu
uclibc: fix semver files, add misc symbols This commit gets uclibc support working again, and fixes the semver lists to segregate gnu- and musl- specific symbols to those libc variants. There is a [separate PR](rust-lang/rust#88952) against rust itself to add armv7-unknown-linux-uclibceabihf as a tier 3 platform, and this commit is in support of that effort. Until that's done, we should not use the CI for that platform, but I'm including the CI file here in anticipation of turning it on in the not-too-distant future.
- Loading branch information
Showing
13 changed files
with
350 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM ubuntu:20.04 | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
gcc libc6-dev qemu-user ca-certificates qemu-system-arm curl \ | ||
xz-utils patch | ||
|
||
RUN mkdir /toolchain | ||
|
||
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 | \ | ||
tar xjf - -C /toolchain --strip-components=1 | ||
RUN /toolchain/relocate-sdk.sh | ||
|
||
ENV PATH=$PATH:/rust/bin:/toolchain/bin \ | ||
STAGING_DIR=/toolchain/armv7-buildroot-linux-uclibceabihf/sysroot \ | ||
CC_armv7_unknown_linux_uclibc=armv7-buildroot-linux-uclibc-gcc \ | ||
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_UCLIBCEABIHF_LINKER=armv7-buildroot-linux-uclibc-gcc \ | ||
CARGO_TARGET_ARMV7_UNKNOWN_LINUX_UCLIBCEABIHF_RUNNER="qemu-arm -L /toolchain/arm-buildroot-linux-uclibcgnueabihf/sysroot/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM ubuntu:20.04 | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
gcc libc6-dev qemu-user ca-certificates qemu-system-mipsel curl \ | ||
xz-utils patch | ||
|
||
RUN mkdir /toolchain | ||
|
||
# binutils 2.33.1 | ||
# gcc 9.3.0 | ||
# gdb 8.3.1 | ||
# linux-headers 4.9.234 | ||
# uclibc 1.0.34 | ||
RUN curl --retry 5 -L https://toolchains.bootlin.com/downloads/releases/toolchains/mips32el/tarballs/mips32el--uclibc--stable-2020.08-1.tar.bz2 | \ | ||
tar xjf - -C /toolchain --strip-components=1 | ||
RUN /toolchain/relocate-sdk.sh | ||
|
||
ENV PATH=$PATH:/rust/bin:/toolchain/bin \ | ||
STAGING_DIR=/toolchain/mipsel-buildroot-linux-uclibc/sysroot \ | ||
CC_mipsel_unknown_linux_uclibc=mipsel-buildroot-linux-uclibc-gcc \ | ||
CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_UCLIBC_LINKER=mipsel-buildroot-linux-uclibc-gcc \ | ||
CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_UCLIBC_RUNNER="qemu-mipsel -L /toolchain/mipsel-buildroot-linux-uclibc/sysroot/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,42 @@ | ||
# TODO: musl. | ||
AF_IB | ||
AF_MPLS | ||
AF_XDP | ||
AIO_ALLDONE | ||
AIO_CANCELED | ||
AIO_NOTCANCELED | ||
Elf32_Chdr | ||
Elf64_Chdr | ||
LIO_NOP | ||
LIO_NOWAIT | ||
LIO_READ | ||
LIO_WAIT | ||
LIO_WRITE | ||
PF_IB | ||
PF_MPLS | ||
PF_XDP | ||
adjtimex | ||
aio_cancel | ||
aio_error | ||
aio_fsync | ||
aio_read | ||
aio_return | ||
aio_suspend | ||
aio_write | ||
aiocb | ||
clock_adjtime | ||
explicit_bzero | ||
futimes | ||
getauxval | ||
getloadavg | ||
lio_listio | ||
ntptimeval | ||
open_wmemstream | ||
preadv64 | ||
prlimit | ||
prlimit64 | ||
process_vm_readv | ||
process_vm_writev | ||
pwritev64 | ||
reallocarray | ||
timex | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.