|
|
@ -13,6 +13,12 @@ ifeq ($(wildcard $(BOARD_DIR)/.),) |
|
|
|
$(error Invalid BOARD specified: $(BOARD_DIR)) |
|
|
|
endif |
|
|
|
|
|
|
|
ifneq ($(BOARD_VARIANT),) |
|
|
|
ifeq ($(wildcard $(BOARD_DIR)/mpconfigvariant_$(BOARD_VARIANT).mk),) |
|
|
|
$(error Invalid BOARD_VARIANT specified: $(BOARD_VARIANT)) |
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
# If the build directory is not given, make it reflect the board name (and
|
|
|
|
# optionally the board variant).
|
|
|
|
ifneq ($(BOARD_VARIANT),) |
|
|
@ -23,7 +29,14 @@ endif |
|
|
|
|
|
|
|
include ../../py/mkenv.mk |
|
|
|
-include mpconfigport.mk |
|
|
|
|
|
|
|
# Include board specific .mk file, and optional board variant .mk file.
|
|
|
|
include $(BOARD_DIR)/mpconfigboard.mk |
|
|
|
ifeq ($(BOARD_VARIANT),) |
|
|
|
-include $(BOARD_DIR)/mpconfigvariant.mk |
|
|
|
else |
|
|
|
include $(BOARD_DIR)/mpconfigvariant_$(BOARD_VARIANT).mk |
|
|
|
endif |
|
|
|
|
|
|
|
# qstr definitions (must come before including py.mk)
|
|
|
|
QSTR_DEFS += qstrdefsport.h |
|
|
|