qemu/boards: Change boards to use a subdirectory like other ports.

This commit moves `<board>.mk` to `<board>/mpconfigboard.mk` for all qemu
boards, making it the same as other bare-metal ports.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2025-01-14 15:16:36 +11:00
parent 6db29978ac
commit b4f53a0e51
6 changed files with 6 additions and 1 deletions

View File

@@ -2,6 +2,11 @@
# Initial setup of Makefile environment
BOARD ?= MPS2_AN385
BOARD_DIR ?= boards/$(BOARD)
ifeq ($(wildcard $(BOARD_DIR)/.),)
$(error Invalid BOARD specified: $(BOARD_DIR))
endif
# Make the build directory reflect the board.
BUILD ?= build-$(BOARD)
@@ -10,7 +15,7 @@ include ../../py/mkenv.mk
-include mpconfigport.mk
# Include board specific .mk file.
include boards/$(BOARD).mk
include $(BOARD_DIR)/mpconfigboard.mk
# qstr definitions (must come before including py.mk)
QSTR_DEFS = qstrdefsport.h