2025-01-04 19:39:37 +00:00
|
|
|
#!/usr/bin/make -f
|
2025-01-05 16:22:11 +00:00
|
|
|
# export DH_VERBOSE = 1
|
2025-01-04 19:39:37 +00:00
|
|
|
|
|
|
|
# Use the "dh" sequencer
|
|
|
|
%:
|
|
|
|
dh $@
|
|
|
|
|
2025-01-05 16:22:11 +00:00
|
|
|
# https://docs.platformio.org/en/latest/envvars.html
|
|
|
|
PIO_ENV:=\
|
2025-01-05 21:26:31 +00:00
|
|
|
PLATFORMIO_CORE_DIR=pio/core \
|
2025-01-05 16:22:11 +00:00
|
|
|
PLATFORMIO_LIBDEPS_DIR=pio/libdeps \
|
|
|
|
PLATFORMIO_PACKAGES_DIR=pio/packages
|
|
|
|
|
2025-01-04 19:39:37 +00:00
|
|
|
override_dh_auto_build:
|
2025-01-05 16:22:11 +00:00
|
|
|
# Build with platformio
|
2025-01-06 01:38:08 +00:00
|
|
|
tar -xf pio.tar
|
2025-01-05 16:22:11 +00:00
|
|
|
$(PIO_ENV) platformio run -e native
|
2025-01-04 19:39:37 +00:00
|
|
|
# Move the binary and default config to the correct name
|
|
|
|
mv .pio/build/native/program .pio/build/native/meshtasticd
|
|
|
|
cp bin/config-dist.yaml bin/config.yaml
|