File tree 4 files changed +18
-19
lines changed
4 files changed +18
-19
lines changed Original file line number Diff line number Diff line change 28
28
},
29
29
"type" : " commonjs" ,
30
30
"config" : {
31
- "glibc" : " >=2.28 "
31
+ "glibc" : " >=2.31 "
32
32
},
33
33
"os" : [
34
34
" linux"
Original file line number Diff line number Diff line change 1
- FROM debian:buster
1
+ FROM debian:bullseye
2
2
LABEL maintainer=
"Lovell Fuller <[email protected] >"
3
3
4
- # Create Debian 10 (glibc 2.28 ) container suitable for cross-compiling Linux ARMv6 binaries
4
+ # Create Debian 11 (glibc 2.31 ) container suitable for cross-compiling Linux ARMv6 binaries
5
5
6
6
# Path settings
7
7
ENV \
8
8
RUSTUP_HOME="/usr/local/rustup" \
9
9
CARGO_HOME="/usr/local/cargo" \
10
- PATH="/usr/local/cargo/bin:/root/tools/x64-gcc-6.5.0/arm-rpi-linux-gnueabihf/bin: $PATH"
10
+ PATH="/usr/local/cargo/bin:$PATH"
11
11
12
12
# Build dependencies
13
13
RUN \
19
19
autoconf \
20
20
autopoint \
21
21
cmake \
22
+ crossbuild-essential-armhf \
22
23
gettext \
23
24
git \
24
25
gperf \
30
31
python3-packaging \
31
32
python3-pip \
32
33
&& \
33
- mkdir /root/tools && \
34
- curl -Ls https://github.com/rvagg/rpi-newer-crosstools/archive/master.tar.gz | tar xzC /root/tools --strip-components=1 && \
35
34
curl https://sh.rustup.rs -sSf | sh -s -- -y \
36
35
--no-modify-path \
37
36
--profile minimal \
44
43
ENV \
45
44
PKG_CONFIG="arm-linux-gnueabihf-pkg-config --static" \
46
45
PLATFORM="linux-armv6" \
47
- CHOST="arm-rpi- linux-gnueabihf" \
46
+ CHOST="arm-linux-gnueabihf" \
48
47
RUST_TARGET="arm-unknown-linux-gnueabihf" \
49
48
FLAGS="-marm -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard" \
50
49
WITHOUT_NEON="true" \
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ set(CMAKE_SYSTEM_NAME Linux)
2
2
set (CMAKE_SYSTEM_VERSION 1)
3
3
set (CMAKE_SYSTEM_PROCESSOR armv6-a)
4
4
5
- SET (CMAKE_C_COMPILER arm-rpi- linux-gnueabihf-gcc)
6
- set (CMAKE_CXX_COMPILER arm-rpi- linux-gnueabihf-g++)
7
- SET (CMAKE_AR arm-rpi- linux-gnueabihf-ar)
8
- SET (CMAKE_STRIP arm-rpi- linux-gnueabihf-strip)
9
- SET (CMAKE_RANLIB arm-rpi- linux-gnueabihf-ranlib)
5
+ SET (CMAKE_C_COMPILER arm-linux-gnueabihf-gcc)
6
+ set (CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++)
7
+ SET (CMAKE_AR arm-linux-gnueabihf-ar)
8
+ SET (CMAKE_STRIP arm-linux-gnueabihf-strip)
9
+ SET (CMAKE_RANLIB arm-linux-gnueabihf-ranlib)
10
10
11
11
set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
12
12
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ cpu = 'armv6-a'
5
5
endian = ' little'
6
6
7
7
[binaries]
8
- c = ' arm-rpi- linux-gnueabihf-gcc'
9
- cpp = ' arm-rpi- linux-gnueabihf-g++'
10
- ar = ' arm-rpi- linux-gnueabihf-ar'
11
- nm = ' arm-rpi- linux-gnueabihf-gcc-nm'
12
- ld = ' arm-rpi- linux-gnueabihf-gcc-ld'
13
- strip = ' arm-rpi- linux-gnueabihf-strip'
14
- ranlib = ' arm-rpi- linux-gnueabihf-gcc-ranlib'
8
+ c = ' arm-linux-gnueabihf-gcc'
9
+ cpp = ' arm-linux-gnueabihf-g++'
10
+ ar = ' arm-linux-gnueabihf-ar'
11
+ nm = ' arm-linux-gnueabihf-gcc-nm'
12
+ ld = ' arm-linux-gnueabihf-gcc-ld'
13
+ strip = ' arm-linux-gnueabihf-strip'
14
+ ranlib = ' arm-linux-gnueabihf-gcc-ranlib'
15
15
16
16
[built-in options]
17
17
libdir = ' lib'
You can’t perform that action at this time.
0 commit comments