summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-02-01 13:40:19 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-02-01 13:40:19 (GMT)
commita70f82cf74a62f4774182f97c01fbb0225d87943 (patch)
tree8545ffb65a3ba014d8af7b6f6fc13bc62fe3b2ad /Makefile
parent262d93c76cca638a832cf21cc44393df31bc7940 (diff)
Makefile: Allow BOARD to come from the environment
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c990d14..ffed1fa 100644
--- a/Makefile
+++ b/Makefile
@@ -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