File tree Expand file tree Collapse file tree 5 files changed +44
-16
lines changed
mipsel-unknown-linux-musl Expand file tree Collapse file tree 5 files changed +44
-16
lines changed Original file line number Diff line number Diff line change @@ -6,19 +6,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
6
6
7
7
RUN mkdir /toolchain
8
8
9
- # Linux kernel version: 4.14.151
10
- # See build_dir/target-mips_24kc_musl/linux-ar71xx_generic /linux-4.14.151
9
+ # Linux kernel version: 5.4.154
10
+ # See build_dir/target-mips_24kc_musl/linux-ath79_generic /linux-5.4.154
11
11
# Musl version: 1.1.24
12
- # See staging_dir/toolchain-mips_24kc_gcc-7 .4.0_musl/info.mk
13
- RUN curl --retry 5 -L https://downloads.openwrt.org/releases/19.07.0-rc1 /targets/ar71xx /generic/openwrt-sdk-19.07.0-rc1-ar71xx- generic_gcc-7 .4.0_musl.Linux-x86_64.tar.xz | \
12
+ # See staging_dir/toolchain-mips_24kc_gcc-8 .4.0_musl/info.mk
13
+ RUN curl --retry 5 -L https://downloads.openwrt.org/releases/21.02.1 /targets/ath79 /generic/openwrt-sdk-21.02.1-ath79- generic_gcc-8 .4.0_musl.Linux-x86_64.tar.xz | \
14
14
tar xJf - -C /toolchain --strip-components=1
15
15
16
16
# See https://lkml.org/lkml/2014/3/14/269
17
17
COPY sysinfo_guard.patch /toolchain
18
- RUN patch /toolchain/staging_dir/toolchain-mips_24kc_gcc-7 .4.0_musl/include/linux/kernel.h </toolchain/sysinfo_guard.patch
18
+ RUN patch /toolchain/staging_dir/toolchain-mips_24kc_gcc-8 .4.0_musl/include/linux/kernel.h </toolchain/sysinfo_guard.patch
19
19
20
- ENV PATH=$PATH:/rust/bin:/toolchain/staging_dir/toolchain-mips_24kc_gcc-7 .4.0_musl/bin \
20
+ ENV PATH=$PATH:/rust/bin:/toolchain/staging_dir/toolchain-mips_24kc_gcc-8 .4.0_musl/bin \
21
21
STAGING_DIR=/toolchain/staging_dir \
22
22
CC_mips_unknown_linux_musl=mips-openwrt-linux-musl-gcc \
23
23
CARGO_TARGET_MIPS_UNKNOWN_LINUX_MUSL_LINKER=mips-openwrt-linux-musl-gcc \
24
- CARGO_TARGET_MIPS_UNKNOWN_LINUX_MUSL_RUNNER="qemu-mips -L /toolchain/staging_dir/toolchain-mips_24kc_gcc-7 .4.0_musl"
24
+ CARGO_TARGET_MIPS_UNKNOWN_LINUX_MUSL_RUNNER="qemu-mips -L /toolchain/staging_dir/toolchain-mips_24kc_gcc-8 .4.0_musl"
Original file line number Diff line number Diff line change @@ -6,19 +6,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
6
6
7
7
RUN mkdir /toolchain
8
8
9
- # Linux kernel version: 4.14.151
10
- # See build_dir/target-mipsel_mips32_musl/linux-brcm47xx_generic/linux-4.14.151
9
+ # Linux kernel version: 5.4.154
10
+ # See build_dir/target-mipsel_mips32_musl/linux-brcm47xx_generic/linux-5.4.154
11
11
# Musl version: 1.1.24
12
- # See staging_dir/toolchain-mipsel_mips32_gcc-7 .4.0_musl/info.mk
13
- RUN curl --retry 5 -L https://downloads.openwrt.org/releases/19.07.0-rc1 /targets/brcm47xx /generic/openwrt-sdk-19.07.0-rc1-brcm47xx- generic_gcc-7 .4.0_musl.Linux-x86_64.tar.xz | \
12
+ # See staging_dir/toolchain-mipsel_mips32_gcc-8 .4.0_musl/info.mk
13
+ RUN curl --retry 5 -L https://downloads.openwrt.org/releases/21.02.1 /targets/bcm47xx /generic/openwrt-sdk-21.02.1-bcm47xx- generic_gcc-8 .4.0_musl.Linux-x86_64.tar.xz | \
14
14
tar xJf - -C /toolchain --strip-components=1
15
15
16
16
# See https://lkml.org/lkml/2014/3/14/269
17
17
COPY sysinfo_guard.patch /toolchain
18
- RUN patch /toolchain/staging_dir/toolchain-mipsel_mips32_gcc-7 .4.0_musl/include/linux/kernel.h </toolchain/sysinfo_guard.patch
18
+ RUN patch /toolchain/staging_dir/toolchain-mipsel_mips32_gcc-8 .4.0_musl/include/linux/kernel.h </toolchain/sysinfo_guard.patch
19
19
20
- ENV PATH=$PATH:/rust/bin:/toolchain/staging_dir/toolchain-mipsel_mips32_gcc-7 .4.0_musl/bin \
20
+ ENV PATH=$PATH:/rust/bin:/toolchain/staging_dir/toolchain-mipsel_mips32_gcc-8 .4.0_musl/bin \
21
21
STAGING_DIR=/toolchain/staging_dir \
22
22
CC_mipsel_unknown_linux_musl=mipsel-openwrt-linux-musl-gcc \
23
23
CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_MUSL_LINKER=mipsel-openwrt-linux-musl-gcc \
24
- CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_MUSL_RUNNER="qemu-mipsel -L /toolchain/staging_dir/toolchain-mipsel_mips32_gcc-7 .4.0_musl"
24
+ CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_MUSL_RUNNER="qemu-mipsel -L /toolchain/staging_dir/toolchain-mipsel_mips32_gcc-8 .4.0_musl"
Original file line number Diff line number Diff line change 5
5
+ #ifdef __GLIBC__
6
6
#include <linux/sysinfo.h>
7
7
+ #endif
8
+ #include <linux/const.h>
8
9
9
- /*
10
- * 'kernel.h' contains some often-used function prototypes etc
10
+ #endif /* _LINUX_KERNEL_H */
Original file line number Diff line number Diff line change @@ -1860,6 +1860,20 @@ pub const O_TMPFILE: ::c_int = 0o20000000 | O_DIRECTORY;
1860
1860
pub const MFD_CLOEXEC : :: c_uint = 0x0001 ;
1861
1861
pub const MFD_ALLOW_SEALING : :: c_uint = 0x0002 ;
1862
1862
pub const MFD_HUGETLB : :: c_uint = 0x0004 ;
1863
+ pub const MFD_HUGE_64KB : :: c_uint = 0x40000000 ;
1864
+ pub const MFD_HUGE_512KB : :: c_uint = 0x4c000000 ;
1865
+ pub const MFD_HUGE_1MB : :: c_uint = 0x50000000 ;
1866
+ pub const MFD_HUGE_2MB : :: c_uint = 0x54000000 ;
1867
+ pub const MFD_HUGE_8MB : :: c_uint = 0x5c000000 ;
1868
+ pub const MFD_HUGE_16MB : :: c_uint = 0x60000000 ;
1869
+ pub const MFD_HUGE_32MB : :: c_uint = 0x64000000 ;
1870
+ pub const MFD_HUGE_256MB : :: c_uint = 0x70000000 ;
1871
+ pub const MFD_HUGE_512MB : :: c_uint = 0x74000000 ;
1872
+ pub const MFD_HUGE_1GB : :: c_uint = 0x78000000 ;
1873
+ pub const MFD_HUGE_2GB : :: c_uint = 0x7c000000 ;
1874
+ pub const MFD_HUGE_16GB : :: c_uint = 0x88000000 ;
1875
+ pub const MFD_HUGE_MASK : :: c_uint = 63 ;
1876
+ pub const MFD_HUGE_SHIFT : :: c_uint = 26 ;
1863
1877
1864
1878
// these are used in the p_type field of Elf32_Phdr and Elf64_Phdr, which has
1865
1879
// the type Elf32Word and Elf64Word respectively. Luckily, both of those are u32
Original file line number Diff line number Diff line change @@ -1820,6 +1820,20 @@ pub const CMSPAR: ::tcflag_t = 0o10000000000;
1820
1820
pub const MFD_CLOEXEC : :: c_uint = 0x0001 ;
1821
1821
pub const MFD_ALLOW_SEALING : :: c_uint = 0x0002 ;
1822
1822
pub const MFD_HUGETLB : :: c_uint = 0x0004 ;
1823
+ pub const MFD_HUGE_64KB : :: c_uint = 0x40000000 ;
1824
+ pub const MFD_HUGE_512KB : :: c_uint = 0x4c000000 ;
1825
+ pub const MFD_HUGE_1MB : :: c_uint = 0x50000000 ;
1826
+ pub const MFD_HUGE_2MB : :: c_uint = 0x54000000 ;
1827
+ pub const MFD_HUGE_8MB : :: c_uint = 0x5c000000 ;
1828
+ pub const MFD_HUGE_16MB : :: c_uint = 0x60000000 ;
1829
+ pub const MFD_HUGE_32MB : :: c_uint = 0x64000000 ;
1830
+ pub const MFD_HUGE_256MB : :: c_uint = 0x70000000 ;
1831
+ pub const MFD_HUGE_512MB : :: c_uint = 0x74000000 ;
1832
+ pub const MFD_HUGE_1GB : :: c_uint = 0x78000000 ;
1833
+ pub const MFD_HUGE_2GB : :: c_uint = 0x7c000000 ;
1834
+ pub const MFD_HUGE_16GB : :: c_uint = 0x88000000 ;
1835
+ pub const MFD_HUGE_MASK : :: c_uint = 63 ;
1836
+ pub const MFD_HUGE_SHIFT : :: c_uint = 26 ;
1823
1837
1824
1838
// linux/close_range.h
1825
1839
pub const CLOSE_RANGE_UNSHARE : :: c_uint = 1 << 1 ;
You can’t perform that action at this time.
0 commit comments