File tree 8 files changed +38
-25
lines changed
aarch64-unknown-linux-musl
arm-unknown-linux-musleabihf
sparc64-unknown-linux-gnu
x86_64-unknown-linux-musl
8 files changed +38
-25
lines changed Original file line number Diff line number Diff line change @@ -3,21 +3,21 @@ FROM ubuntu:17.10
3
3
RUN apt-get update && apt-get install -y --no-install-recommends \
4
4
gcc make libc6-dev git curl ca-certificates \
5
5
gcc-aarch64-linux-gnu qemu-user
6
- RUN curl https://www.musl-libc.org/releases/musl-1.1.16 .tar.gz | \
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 | \
15
+ RUN curl -L https://github.com/sabotage-linux/kernel-headers/archive/v3.12.6-6 .tar.gz | \
16
16
tar xzf - && \
17
- cd kernel-headers-3.12.6-5 && \
17
+ cd kernel-headers-3.12.6-6 && \
18
18
make ARCH=arm64 prefix=/musl-aarch64 install -j4 && \
19
19
cd .. && \
20
- rm -rf kernel-headers-3.12.6-5
20
+ rm -rf kernel-headers-3.12.6-6
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,21 @@ 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
13
14
14
# 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 | \
15
+ RUN curl -L https://github.com/sabotage-linux/kernel-headers/archive/v3.12.6-6.tar.gz | \
17
16
tar xzf - && \
18
- cd kernel-headers-3.12.6-5 && \
17
+ cd kernel-headers-3.12.6-6 && \
19
18
make ARCH=arm prefix=/musl-arm install -j4 && \
20
19
cd .. && \
21
- rm -rf kernel-headers-3.12.6-5
20
+ rm -rf kernel-headers-3.12.6-6
21
+
22
22
ENV PATH=$PATH:/musl-arm/bin:/rust/bin \
23
23
CC_arm_unknown_linux_musleabihf=musl-gcc \
24
24
CARGO_TARGET_ARM_UNKNOWN_LINUX_MUSLEABIHF_LINKER=musl-gcc \
Original file line number Diff line number Diff line change @@ -12,19 +12,20 @@ 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 | \
23
+ RUN curl -L https://github.com/sabotage-linux/kernel-headers/archive/v3.12.6-6 .tar.gz | \
24
24
tar xzf - && \
25
- cd kernel-headers-3.12.6-5 && \
25
+ cd kernel-headers-3.12.6-6 && \
26
26
make ARCH=i386 prefix=/musl-i686 install -j4 && \
27
27
cd .. && \
28
- rm -rf kernel-headers-3.12.6-5
28
+ rm -rf kernel-headers-3.12.6-6
29
+
29
30
ENV PATH=$PATH:/musl-i686/bin:/rust/bin \
30
31
CC_i686_unknown_linux_musl=musl-gcc
Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
5
5
gcc libc6-dev \
6
6
gcc-sparc64-linux-gnu libc6-dev-sparc64-cross \
7
7
qemu-system-sparc64 openbios-sparc seabios ipxe-qemu \
8
- p7zip-full cpio
8
+ p7zip-full cpio linux-libc-dev-sparc64-cross linux-headers-4.9.0-3-common
9
+
10
+ # Put linux/module.h into the right spot as it is not shipped by debian
11
+ RUN cp /usr/src/linux-headers-4.9.0-3-common/include/uapi/linux/module.h /usr/sparc64-linux-gnu/include/linux/
9
12
10
13
COPY linux-sparc64.sh /
11
14
RUN bash /linux-sparc64.sh
Original file line number Diff line number Diff line change @@ -3,18 +3,18 @@ FROM ubuntu:17.10
3
3
RUN apt-get update
4
4
RUN apt-get install -y --no-install-recommends \
5
5
gcc make libc6-dev git curl ca-certificates
6
- RUN curl https://www.musl-libc.org/releases/musl-1.1.15 .tar.gz | \
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 | \
14
+ RUN curl -L https://github.com/sabotage-linux/kernel-headers/archive/v3.12.6-6 .tar.gz | \
15
15
tar xzf - && \
16
- cd kernel-headers-3.12.6-5 && \
16
+ cd kernel-headers-3.12.6-6 && \
17
17
make ARCH=x86_64 prefix=/musl-x86_64 install -j4 && \
18
18
cd .. && \
19
- rm -rf kernel-headers-3.12.6-5
19
+ rm -rf kernel-headers-3.12.6-6
20
20
ENV PATH=$PATH:/musl-x86_64/bin:/rust/bin
Original file line number Diff line number Diff line change @@ -272,6 +272,7 @@ fn main() {
272
272
273
273
if linux || android {
274
274
cfg. header ( "sys/fsuid.h" ) ;
275
+ cfg. header ( "linux/module.h" ) ;
275
276
cfg. header ( "linux/seccomp.h" ) ;
276
277
cfg. header ( "linux/if_ether.h" ) ;
277
278
cfg. header ( "linux/if_tun.h" ) ;
Original file line number Diff line number Diff line change @@ -1458,6 +1458,10 @@ pub const SIOCSRARP: ::c_ulong = 0x00008962;
1458
1458
pub const SIOCGIFMAP : :: c_ulong = 0x00008970 ;
1459
1459
pub const SIOCSIFMAP : :: c_ulong = 0x00008971 ;
1460
1460
1461
+ // linux/module.h
1462
+ pub const MODULE_INIT_IGNORE_MODVERSIONS : :: c_uint = 0x0001 ;
1463
+ pub const MODULE_INIT_IGNORE_VERMAGIC : :: c_uint = 0x0002 ;
1464
+
1461
1465
// Similarity to Linux it's not used but defined for compatibility.
1462
1466
pub const ENOATTR : :: c_int = :: ENODATA ;
1463
1467
Original file line number Diff line number Diff line change @@ -1498,6 +1498,10 @@ pub const ARPD_LOOKUP: ::c_ushort = 0x02;
1498
1498
pub const ARPD_FLUSH : :: c_ushort = 0x03 ;
1499
1499
pub const ATF_MAGIC : :: c_int = 0x80 ;
1500
1500
1501
+ // linux/module.h
1502
+ pub const MODULE_INIT_IGNORE_MODVERSIONS : :: c_uint = 0x0001 ;
1503
+ pub const MODULE_INIT_IGNORE_VERMAGIC : :: c_uint = 0x0002 ;
1504
+
1501
1505
f ! {
1502
1506
pub fn CPU_ZERO ( cpuset: & mut cpu_set_t) -> ( ) {
1503
1507
for slot in cpuset. bits. iter_mut( ) {
You can’t perform that action at this time.
0 commit comments