summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2019-03-14 19:27:54 -0700
committerDamien George <damien.p.george@gmail.com>2019-03-18 14:01:43 +1100
commitec6e62efc2426a2edab58e5fad178873a1eaba8c (patch)
tree9f812de77c2f26af95fb7d38aaea7361e2fbda8a
parent696549d2e5cfbd2621bbe037af53e97af96b29c2 (diff)
stm32/mboot: Set USE_MBOOT=1 by default in the Makefile.
This allows boards that need USE_MBOOT to be built properly whether or not USE_MBOOT=1 is specified when building mboot.
-rwxr-xr-x[-rw-r--r--]ports/stm32/mboot/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/stm32/mboot/Makefile b/ports/stm32/mboot/Makefile
index 486d72e19..122abf27a 100644..100755
--- a/ports/stm32/mboot/Makefile
+++ b/ports/stm32/mboot/Makefile
@@ -8,6 +8,10 @@ BUILD ?= build-$(BOARD)
# Allow the directory containing the board configuration to be specified
BOARD_DIR ?= $(abspath ../boards/$(BOARD))
+# Set USE_MBOOT to 1 so that TEXT0_ADDR gets set properly for those boards
+# that can be built with or without mboot.
+USE_MBOOT ?= 1
+
# Sanity check that the board configuration directory exists
ifeq ($(wildcard $(BOARD_DIR)/.),)
$(error Invalid BOARD specified: $(BOARD_DIR))