summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-04-11 20:12:18 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-04-11 20:12:18 (GMT)
commit50ecff29efb5afd4796ea192982bba10266947fe (patch)
treec5374fe9ac9797658867b7627ca3ca971de64247 /Makefile
parent7ef145cdc5f575ae253b6bd0176375feee61bf86 (diff)
wasp: Automatically generate watch.py for PineTime
This should ensure that main.py is always up to date.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 82e6366..f0fd8ff 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ bootloader:
softdevice:
micropython/ports/nrf/drivers/bluetooth/download_ble_stack.sh
-micropython:
+micropython: wasp/boards/pinetime/watch.py
$(MAKE) -C micropython/mpy-cross
$(RM) micropython/ports/nrf/build-$(BOARD)-s132/frozen_content.c
$(MAKE) -C micropython/ports/nrf \
@@ -39,6 +39,10 @@ micropython:
--application micropython/ports/nrf/build-$(BOARD)-s132/firmware.hex \
micropython.zip
+wasp/boards/pinetime/watch.py : wasp/boards/pinetime/watch.py.in
+ (cd wasp; ../tools/preprocess.py boards/pinetime/watch.py.in > \
+ boards/pinetime/watch.py)
+
dfu:
python3 -m nordicsemi dfu serial --package micropython.zip --port /dev/ttyACM0