{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:
parent
1a99f74063
commit
97ffc53ec9
@ -17,8 +17,13 @@ ifeq ($(wildcard $(BOARD_DIR)/.),)
|
|||||||
$(error Invalid BOARD specified: $(BOARD_DIR))
|
$(error Invalid BOARD specified: $(BOARD_DIR))
|
||||||
endif
|
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)
|
BUILD ?= build-$(BOARD)
|
||||||
|
endif
|
||||||
|
|
||||||
# Device serial settings.
|
# Device serial settings.
|
||||||
PORT ?= /dev/ttyUSB0
|
PORT ?= /dev/ttyUSB0
|
||||||
|
@ -17,7 +17,13 @@ ifeq ($(wildcard $(BOARD_DIR)/.),)
|
|||||||
$(error Invalid BOARD specified: $(BOARD_DIR))
|
$(error Invalid BOARD specified: $(BOARD_DIR))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# 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)
|
BUILD ?= build-$(BOARD)
|
||||||
|
endif
|
||||||
|
|
||||||
$(VERBOSE)MAKESILENT = -s
|
$(VERBOSE)MAKESILENT = -s
|
||||||
|
|
||||||
|
@ -13,8 +13,13 @@ ifeq ($(wildcard $(BOARD_DIR)/.),)
|
|||||||
$(error Invalid BOARD specified: $(BOARD_DIR))
|
$(error Invalid BOARD specified: $(BOARD_DIR))
|
||||||
endif
|
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)
|
BUILD ?= build-$(BOARD)
|
||||||
|
endif
|
||||||
|
|
||||||
include ../../py/mkenv.mk
|
include ../../py/mkenv.mk
|
||||||
-include mpconfigport.mk
|
-include mpconfigport.mk
|
||||||
|
Loading…
x
Reference in New Issue
Block a user