Makefile: Allow BOARD to come from the environment

This commit is contained in:
Daniel Thompson 2020-02-01 13:40:19 +00:00
parent 262d93c76c
commit a70f82cf74

View file

@ -2,10 +2,10 @@ export PYTHONPATH := $(PWD)/tools/nrfutil:$(PWD)/tools/intelhex:$(PYTHONPATH)
all : bootloader micropython
BOARD=$(error Please set BOARD=)
BOARD ?= $(error Please set BOARD=)
clean :
rm -rf \
$(RM) -r \
bootloader/_build-$(BOARD)_nrf52832 \
micropython/mpy-cross/build \
micropython/ports/nrf/build-$(BOARD)-s132