File tree 4 files changed +33
-35
lines changed
aarch64-unknown-linux-musl
arm-unknown-linux-musleabihf
x86_64-unknown-linux-musl 4 files changed +33
-35
lines changed Original file line number Diff line number Diff line change @@ -2,22 +2,22 @@ FROM ubuntu:17.10
2
2
3
3
RUN apt-get update && apt-get install -y --no-install-recommends \
4
4
gcc make libc6-dev git curl ca-certificates \
5
- gcc-aarch64-linux-gnu qemu-user
6
- RUN curl https://www.musl-libc.org/releases/musl-1.1.16 .tar.gz | \
5
+ gcc-aarch64-linux-gnu qemu-user xz-utils
6
+ RUN curl https://www.musl-libc.org/releases/musl-1.1.19 .tar.gz | \
7
7
tar xzf - && \
8
- cd musl-1.1.16 && \
8
+ cd musl-1.1.19 && \
9
9
CC=aarch64-linux-gnu-gcc \
10
10
./configure --prefix=/musl-aarch64 --enable-wrapper=yes && \
11
11
make install -j4 && \
12
12
cd .. && \
13
- rm -rf musl-1.1.16 && \
13
+ rm -rf musl-1.1.19
14
14
# Install linux kernel headers sanitized for use with musl
15
- curl -L https://github.com/sabotage- linux/kernel-headers/archive/v3.12.6-5 .tar.gz | \
16
- tar xzf - && \
17
- cd kernel-headers-3.12.6-5 && \
18
- make ARCH=arm64 prefix =/musl-aarch64 install -j4 && \
15
+ RUN curl -L https://cdn.kernel.org/pub/ linux/kernel/v4.x/linux-4.14.56 .tar.xz | \
16
+ tar xJf - && \
17
+ cd linux-4.14.56 && \
18
+ CC=false make ARCH=arm64 INSTALL_HDR_PATH =/musl-aarch64 headers_install -j4 && \
19
19
cd .. && \
20
- rm -rf kernel-headers-3.12.6-5
20
+ rm -rf linux-4.14.56
21
21
22
22
# FIXME: shouldn't need the `-lgcc` here, shouldn't that be in libstd?
23
23
ENV PATH=$PATH:/musl-aarch64/bin:/rust/bin \
Original file line number Diff line number Diff line change @@ -4,21 +4,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
4
4
gcc make libc6-dev git curl ca-certificates \
5
5
gcc-arm-linux-gnueabihf qemu-user
6
6
7
- RUN curl https://www.musl-libc.org/releases/musl-1.1.16 .tar.gz | tar xzf -
8
- WORKDIR /musl-1.1.16
7
+ RUN curl https://www.musl-libc.org/releases/musl-1.1.19 .tar.gz | tar xzf -
8
+ WORKDIR /musl-1.1.19
9
9
RUN CC=arm-linux-gnueabihf-gcc \
10
10
CFLAGS="-march=armv6 -marm" \
11
11
./configure --prefix=/musl-arm --enable-wrapper=yes
12
12
RUN make install -j4
13
-
14
13
# Install linux kernel headers sanitized for use with musl
15
- RUN \
16
- curl -L https://github.com/sabotage-linux/kernel-headers/archive/v3.12.6-5.tar.gz | \
17
- tar xzf - && \
18
- cd kernel-headers-3.12.6-5 && \
19
- make ARCH=arm prefix=/musl-arm install -j4 && \
14
+ RUN curl -L https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.14.56.tar.xz | \
15
+ tar xJf - && \
16
+ cd linux-4.14.56 && \
17
+ CC=false make ARCH=arm INSTALL_HDR_PATH=/musl-arm headers_install -j4 && \
20
18
cd .. && \
21
- rm -rf kernel-headers-3.12.6-5
19
+ rm -rf linux-4.14.56
22
20
ENV PATH=$PATH:/musl-arm/bin:/rust/bin \
23
21
CC_arm_unknown_linux_musleabihf=musl-gcc \
24
22
CARGO_TARGET_ARM_UNKNOWN_LINUX_MUSLEABIHF_LINKER=musl-gcc \
Original file line number Diff line number Diff line change @@ -12,19 +12,19 @@ RUN apt-get install -y --no-install-recommends \
12
12
# since otherwise the script will fail to find a compiler.
13
13
# * We manually unset CROSS_COMPILE when running make; otherwise the makefile
14
14
# will call the non-existent binary 'i686-ar'.
15
- RUN curl https://www.musl-libc.org/releases/musl-1.1.15 .tar.gz | \
15
+ RUN curl https://www.musl-libc.org/releases/musl-1.1.19 .tar.gz | \
16
16
tar xzf - && \
17
- cd musl-1.1.15 && \
17
+ cd musl-1.1.19 && \
18
18
CC=gcc CFLAGS=-m32 ./configure --prefix=/musl-i686 --disable-shared --target=i686 && \
19
19
make CROSS_COMPILE= install -j4 && \
20
20
cd .. && \
21
- rm -rf musl-1.1.15 && \
21
+ rm -rf musl-1.1.19
22
22
# Install linux kernel headers sanitized for use with musl
23
- curl -L https://github.com/sabotage- linux/kernel-headers/archive/v3.12.6-5 .tar.gz | \
24
- tar xzf - && \
25
- cd kernel-headers-3.12.6-5 && \
26
- make ARCH=i386 prefix =/musl-i686 install -j4 && \
23
+ RUN curl -L https://cdn.kernel.org/pub/ linux/kernel/v4.x/linux-4.14.56 .tar.xz | \
24
+ tar xJf - && \
25
+ cd linux-4.14.56 && \
26
+ CC=false make ARCH=i386 INSTALL_HDR_PATH =/musl-i686 headers_install -j4 && \
27
27
cd .. && \
28
- rm -rf kernel-headers-3.12.6-5
28
+ rm -rf linux-4.14.56
29
29
ENV PATH=$PATH:/musl-i686/bin:/rust/bin \
30
30
CC_i686_unknown_linux_musl=musl-gcc
Original file line number Diff line number Diff line change @@ -2,19 +2,19 @@ FROM ubuntu:17.10
2
2
3
3
RUN apt-get update
4
4
RUN apt-get install -y --no-install-recommends \
5
- gcc make libc6-dev git curl ca-certificates
6
- RUN curl https://www.musl-libc.org/releases/musl-1.1.15 .tar.gz | \
5
+ gcc make libc6-dev git curl ca-certificates linux-libc-dev xz-utils
6
+ RUN curl https://www.musl-libc.org/releases/musl-1.1.19 .tar.gz | \
7
7
tar xzf - && \
8
- cd musl-1.1.15 && \
8
+ cd musl-1.1.19 && \
9
9
./configure --prefix=/musl-x86_64 && \
10
10
make install -j4 && \
11
11
cd .. && \
12
- rm -rf musl-1.1.15 && \
12
+ rm -rf musl-1.1.19
13
13
# Install linux kernel headers sanitized for use with musl
14
- curl -L https://github.com/sabotage- linux/kernel-headers/archive/v3.12.6-5 .tar.gz | \
15
- tar xzf - && \
16
- cd kernel-headers-3.12.6-5 && \
17
- make ARCH=x86_64 prefix =/musl-x86_64 install -j4 && \
14
+ RUN curl -L https://cdn.kernel.org/pub/ linux/kernel/v4.x/linux-4.14.56 .tar.xz | \
15
+ tar xJf - && \
16
+ cd linux-4.14.56 && \
17
+ CC=false make V=1 ARCH=x86_64 INSTALL_HDR_PATH =/musl-x86_64 headers_install -j4 && \
18
18
cd .. && \
19
- rm -rf kernel-headers-3.12.6-5
19
+ rm -rf linux-4.14.56
20
20
ENV PATH=$PATH:/musl-x86_64/bin:/rust/bin
You can’t perform that action at this time.
0 commit comments