mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-08 14:12:05 +00:00
18 lines
432 B
Makefile
Executable File
18 lines
432 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
# Use the "dh" sequencer
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_build:
|
|
# Terrible hack to use modern platformio to build the native version
|
|
python3 -m venv venv
|
|
source venv/bin/activate
|
|
pip install platformio
|
|
platformio run -e native
|
|
deactivate
|
|
rm -rf venv
|
|
# 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
|