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.
This commit is contained in:
Dave Hylands 2019-03-14 19:27:54 -07:00 committed by Damien George
parent 696549d2e5
commit ec6e62efc2

4
ports/stm32/mboot/Makefile Normal file → Executable file
View File

@ -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))