mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
{esp32,rp2,stm32}/Makefile: Append board variant to BUILD.
This allows switching between variants without clobbering the build output. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
@@ -13,8 +13,13 @@ ifeq ($(wildcard $(BOARD_DIR)/.),)
|
||||
$(error Invalid BOARD specified: $(BOARD_DIR))
|
||||
endif
|
||||
|
||||
# If the build directory is not given, make it reflect the board name.
|
||||
# If the build directory is not given, make it reflect the board name (and
|
||||
# optionally the board variant).
|
||||
ifneq ($(BOARD_VARIANT),)
|
||||
BUILD ?= build-$(BOARD)-$(BOARD_VARIANT)
|
||||
else
|
||||
BUILD ?= build-$(BOARD)
|
||||
endif
|
||||
|
||||
include ../../py/mkenv.mk
|
||||
-include mpconfigport.mk
|
||||
|
||||
Reference in New Issue
Block a user