summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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