diff --git a/ports/stm32/mboot/Makefile b/ports/stm32/mboot/Makefile index 9908194237..389f9f5d0f 100755 --- a/ports/stm32/mboot/Makefile +++ b/ports/stm32/mboot/Makefile @@ -6,7 +6,7 @@ BOARD ?= $(notdir $(BOARD_DIR:/=)) else # If not given on the command line, then default to PYBV10. BOARD ?= PYBV10 -BOARD_DIR ?= ../boards/$(BOARD) +BOARD_DIR ?= $(abspath ../boards/$(BOARD)) endif # If the build directory is not given, make it reflect the board name.