diff options
| author | Steveis <SteveAmor@users.noreply.github.com> | 2020-06-11 20:26:09 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-06-17 17:56:20 (GMT) |
| commit | 9eb9b74d453175686b2975480cfe2722f7115b4e (patch) | |
| tree | dee8ad1332d28d5002b00290ab035bf4a712dec4 /Makefile | |
| parent | 823e85584d3363f6a6a775c3ff6eca55e6c7e00d (diff) | |
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 <steveamor@users.noreply.github.com>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |
