Skip to content

Commit b4f53a0

Browse files
committed
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 <[email protected]>
1 parent 6db2997 commit b4f53a0

File tree

6 files changed

+6
-1
lines changed

6 files changed

+6
-1
lines changed

ports/qemu/Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# Initial setup of Makefile environment
33

44
BOARD ?= MPS2_AN385
5+
BOARD_DIR ?= boards/$(BOARD)
6+
7+
ifeq ($(wildcard $(BOARD_DIR)/.),)
8+
$(error Invalid BOARD specified: $(BOARD_DIR))
9+
endif
510

611
# Make the build directory reflect the board.
712
BUILD ?= build-$(BOARD)
@@ -10,7 +15,7 @@ include ../../py/mkenv.mk
1015
-include mpconfigport.mk
1116

1217
# Include board specific .mk file.
13-
include boards/$(BOARD).mk
18+
include $(BOARD_DIR)/mpconfigboard.mk
1419

1520
# qstr definitions (must come before including py.mk)
1621
QSTR_DEFS = qstrdefsport.h

0 commit comments

Comments
 (0)