Skip to content

Commit

Permalink
Revert "linux-armv6: upgrade to Debian 11 (glibc 2.31)"
Browse files Browse the repository at this point in the history
This reverts commit d8ce721.
  • Loading branch information
lovell committed Aug 12, 2024
1 parent cb57c8e commit fd99a03
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion npm/linux-arm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"type": "commonjs",
"config": {
"glibc": ">=2.31"
"glibc": ">=2.28"
},
"os": [
"linux"
Expand Down
11 changes: 6 additions & 5 deletions platforms/linux-armv6/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM debian:bullseye
FROM debian:buster
LABEL maintainer="Lovell Fuller <npm@lovell.info>"

# Create Debian 11 (glibc 2.31) container suitable for cross-compiling Linux ARMv6 binaries
# Create Debian 10 (glibc 2.28) container suitable for cross-compiling Linux ARMv6 binaries

# Path settings
ENV \
RUSTUP_HOME="/usr/local/rustup" \
CARGO_HOME="/usr/local/cargo" \
PATH="/usr/local/cargo/bin:$PATH"
PATH="/usr/local/cargo/bin:/root/tools/x64-gcc-6.5.0/arm-rpi-linux-gnueabihf/bin:$PATH"

# Build dependencies
RUN \
Expand All @@ -19,7 +19,6 @@ RUN \
autoconf \
autopoint \
cmake \
crossbuild-essential-armhf \
gettext \
git \
gperf \
Expand All @@ -31,6 +30,8 @@ RUN \
python3-packaging \
python3-pip \
&& \
mkdir /root/tools && \
curl -Ls https://github.com/rvagg/rpi-newer-crosstools/archive/master.tar.gz | tar xzC /root/tools --strip-components=1 && \
curl https://sh.rustup.rs -sSf | sh -s -- -y \
--no-modify-path \
--profile minimal \
Expand All @@ -43,7 +44,7 @@ RUN \
ENV \
PKG_CONFIG="arm-linux-gnueabihf-pkg-config --static" \
PLATFORM="linux-armv6" \
CHOST="arm-linux-gnueabihf" \
CHOST="arm-rpi-linux-gnueabihf" \
RUST_TARGET="arm-unknown-linux-gnueabihf" \
FLAGS="-marm -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard" \
WITHOUT_NEON="true" \
Expand Down
10 changes: 5 additions & 5 deletions platforms/linux-armv6/Toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_VERSION 1)
set(CMAKE_SYSTEM_PROCESSOR armv6-a)

SET(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc)
set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++)
SET(CMAKE_AR arm-linux-gnueabihf-ar)
SET(CMAKE_STRIP arm-linux-gnueabihf-strip)
SET(CMAKE_RANLIB arm-linux-gnueabihf-ranlib)
SET(CMAKE_C_COMPILER arm-rpi-linux-gnueabihf-gcc)
set(CMAKE_CXX_COMPILER arm-rpi-linux-gnueabihf-g++)
SET(CMAKE_AR arm-rpi-linux-gnueabihf-ar)
SET(CMAKE_STRIP arm-rpi-linux-gnueabihf-strip)
SET(CMAKE_RANLIB arm-rpi-linux-gnueabihf-ranlib)

set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
Expand Down
14 changes: 7 additions & 7 deletions platforms/linux-armv6/meson.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ cpu = 'armv6-a'
endian = 'little'

[binaries]
c = 'arm-linux-gnueabihf-gcc'
cpp = 'arm-linux-gnueabihf-g++'
ar = 'arm-linux-gnueabihf-ar'
nm = 'arm-linux-gnueabihf-gcc-nm'
ld = 'arm-linux-gnueabihf-gcc-ld'
strip = 'arm-linux-gnueabihf-strip'
ranlib = 'arm-linux-gnueabihf-gcc-ranlib'
c = 'arm-rpi-linux-gnueabihf-gcc'
cpp = 'arm-rpi-linux-gnueabihf-g++'
ar = 'arm-rpi-linux-gnueabihf-ar'
nm = 'arm-rpi-linux-gnueabihf-gcc-nm'
ld = 'arm-rpi-linux-gnueabihf-gcc-ld'
strip = 'arm-rpi-linux-gnueabihf-strip'
ranlib = 'arm-rpi-linux-gnueabihf-gcc-ranlib'

[built-in options]
libdir = 'lib'
Expand Down

0 comments on commit fd99a03

Please sign in to comment.