2025-01-04 14:39:37 -05:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
|
|
|
|
# Use the "dh" sequencer
|
|
|
|
|
%:
|
|
|
|
|
dh $@
|
|
|
|
|
|
|
|
|
|
override_dh_auto_build:
|
|
|
|
|
# Terrible hack to use modern platformio to build the native version
|
2025-01-04 15:41:49 -06:00
|
|
|
# python3 -m venv venv
|
|
|
|
|
# . venv/bin/activate
|
|
|
|
|
pip install platformio --break-system-packages
|
2025-01-04 14:37:13 -06:00
|
|
|
platformio run -e native
|
2025-01-04 15:41:49 -06:00
|
|
|
# deactivate
|
|
|
|
|
# rm -rf venv
|
2025-01-04 14:39:37 -05: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
|