summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/stm32/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile
index ffa5b9b7d..d3273e951 100644
--- a/ports/stm32/Makefile
+++ b/ports/stm32/Makefile
@@ -6,7 +6,7 @@ $(error Invalid BOARD specified)
endif
# If the build directory is not given, make it reflect the board name.
-BUILD ?= build-$(BOARD)
+BUILD ?= build-$(BOARD)$(if $(DEBUG),-debug)
include ../../py/mkenv.mk
-include mpconfigport.mk