meshtasticd deb: Build armv6-compatible binary (#6104)
This commit is contained in:
Vendored
+1
@@ -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,
|
||||||
|
|||||||
Vendored
+9
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user