reloader: Integrate into the main build system
This commit is contained in:
parent
59ae03fc67
commit
945546a804
2 changed files with 8 additions and 3 deletions
9
Makefile
9
Makefile
|
@ -1,12 +1,13 @@
|
|||
export PYTHONPATH := $(PWD)/tools/nrfutil:$(PWD)/tools/intelhex:$(PYTHONPATH)
|
||||
|
||||
all : bootloader micropython
|
||||
all : bootloader reloader micropython
|
||||
|
||||
BOARD ?= $(error Please set BOARD=)
|
||||
|
||||
clean :
|
||||
$(RM) -r \
|
||||
bootloader/_build-$(BOARD)_nrf52832 \
|
||||
reloader/build-$(BOARD) reloader/src/boards/$(BOARD)/bootloader.h \
|
||||
micropython/mpy-cross/build \
|
||||
micropython/ports/nrf/build-$(BOARD)-s132
|
||||
|
||||
|
@ -26,6 +27,10 @@ bootloader:
|
|||
python3 tools/hex2c.py bootloader.hex > \
|
||||
reloader/src/boards/$(BOARD)/bootloader.h
|
||||
|
||||
reloader: bootloader
|
||||
$(MAKE) -C reloader/ BOARD=$(BOARD)
|
||||
mv reloader/build-$(BOARD)/reloader.zip .
|
||||
|
||||
softdevice:
|
||||
micropython/ports/nrf/drivers/bluetooth/download_ble_stack.sh
|
||||
|
||||
|
@ -71,5 +76,5 @@ sim:
|
|||
PYTHONPATH=$(PWD)/wasp/boards/simulator:$(PWD)/wasp \
|
||||
python3 -i wasp/main.py
|
||||
|
||||
.PHONY: bootloader docs micropython
|
||||
.PHONY: bootloader reloader docs micropython
|
||||
|
||||
|
|
2
reloader
2
reloader
|
@ -1 +1 @@
|
|||
Subproject commit 5e9a1c85509130af123735aa550ef36b53f772b7
|
||||
Subproject commit 6c403fb0bb04782a3aff6902b4935b9aad9d4a51
|
Loading…
Reference in a new issue