From 9eb9b74d453175686b2975480cfe2722f7115b4e Mon Sep 17 00:00:00 2001 From: Steveis Date: Thu, 11 Jun 2020 21:26:09 +0100 Subject: [PATCH] Update preprocess to use $(BOARD) The preprocess to create watch.py was hard coded for PineTime so changed to $(BOARD) This will be required for other watches like the P8 Signed-off-by: Steve Amor --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 135f63f..7db1c6d 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ reloader: bootloader softdevice: micropython/ports/nrf/drivers/bluetooth/download_ble_stack.sh -micropython: wasp/boards/pinetime/watch.py +micropython: wasp/boards/$(BOARD)/watch.py $(MAKE) -C micropython/mpy-cross $(RM) micropython/ports/nrf/build-$(BOARD)-s132/frozen_content.c $(MAKE) -C micropython/ports/nrf \ @@ -44,9 +44,9 @@ micropython: wasp/boards/pinetime/watch.py --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) +wasp/boards/$(BOARD)/watch.py : wasp/boards/$(BOARD)/watch.py.in + (cd wasp; ../tools/preprocess.py boards/$(BOARD)/watch.py.in > \ + boards/$(BOARD)/watch.py) dfu: python3 -m nordicsemi dfu serial --package micropython.zip --port /dev/ttyACM0