Skip to content

Commit 04f1ed0

Browse files
committed
make: add info-emulated-boards helper target
1 parent fa1456a commit 04f1ed0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

makefiles/boards.inc.mk

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ ALLBOARDS := $(sort \
1616
# Set the default value from `BOARDS`
1717
BOARDS ?= $(ALLBOARDS)
1818

19-
.PHONY: info-boards
19+
.PHONY: info-boards info-emulated-boards
2020
info-boards:
2121
@echo $(BOARDS)
22+
23+
EMULATED_BOARDS_RENODE := $(wildcard $(BOARDSDIRS)/*/dist/board.resc)
24+
EMULATED_BOARDS_QEMU := microbit
25+
EMULATED_BOARDS := \
26+
$(EMULATED_BOARDS_QEMU) \
27+
$(foreach board_path,$(EMULATED_BOARDS_RENODE),$(subst $(strip $(BOARDSDIRS)/),,$(subst /dist/board.resc,,$(board_path))))
28+
#
29+
30+
info-emulated-boards:
31+
@echo $(sort $(EMULATED_BOARDS))

0 commit comments

Comments
 (0)