meshtasticd deb: Build armv6-compatible binary (#6104)

This commit is contained in:
Austin
2025-02-21 09:55:38 +08:00
committed by GitHub
co-authored by GitHub
parent 1be28520a7
commit 3787cf7803
2 changed files with 10 additions and 0 deletions
+1
View File
@@ -3,6 +3,7 @@ Section: misc
Priority: optional Priority: optional
Maintainer: Austin Lane <vidplace7@gmail.com> Maintainer: Austin Lane <vidplace7@gmail.com>
Build-Depends: debhelper-compat (= 13), Build-Depends: debhelper-compat (= 13),
lsb-release,
tar, tar,
gzip, gzip,
platformio, platformio,
+9
View File
@@ -11,6 +11,15 @@ PIO_ENV:=\
PLATFORMIO_LIBDEPS_DIR=pio/libdeps \ PLATFORMIO_LIBDEPS_DIR=pio/libdeps \
PLATFORMIO_PACKAGES_DIR=pio/packages PLATFORMIO_PACKAGES_DIR=pio/packages
# Raspbian armhf builds should be compatible with armv6-hardfloat
# https://www.valvers.com/open-software/raspberry-pi/bare-metal-programming-in-c-part-1/#rpi1-compiler-flags
ifneq (,$(findstring Raspbian,$(shell lsb_release -is)))
ifeq ($(DEB_BUILD_ARCH),armhf)
PIO_ENV+=\
PLATFORMIO_BUILD_FLAGS="-mfloat-abi=hard -mfpu=vfp -march=armv6zk"
endif
endif
override_dh_auto_build: override_dh_auto_build:
# Extract tarballs within source deb # Extract tarballs within source deb
tar -xf pio.tar tar -xf pio.tar