From ec6e62efc2426a2edab58e5fad178873a1eaba8c Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Thu, 14 Mar 2019 19:27:54 -0700 Subject: [PATCH] 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. --- ports/stm32/mboot/Makefile | 4 ++++ 1 file changed, 4 insertions(+) mode change 100644 => 100755 ports/stm32/mboot/Makefile diff --git a/ports/stm32/mboot/Makefile b/ports/stm32/mboot/Makefile old mode 100644 new mode 100755 index 486d72e19a..122abf27aa --- 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))