make: add info-emulated-boards helper target

This commit is contained in:
Alexandre Abadie 2021-10-12 10:39:57 +02:00
parent fa1456ac99
commit 04f1ed0274
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -16,6 +16,16 @@ ALLBOARDS := $(sort \
# Set the default value from `BOARDS`
BOARDS ?= $(ALLBOARDS)
.PHONY: info-boards
.PHONY: info-boards info-emulated-boards
info-boards:
@echo $(BOARDS)
EMULATED_BOARDS_RENODE := $(wildcard $(BOARDSDIRS)/*/dist/board.resc)
EMULATED_BOARDS_QEMU := microbit
EMULATED_BOARDS := \
$(EMULATED_BOARDS_QEMU) \
$(foreach board_path,$(EMULATED_BOARDS_RENODE),$(subst $(strip $(BOARDSDIRS)/),,$(subst /dist/board.resc,,$(board_path))))
#
info-emulated-boards:
@echo $(sort $(EMULATED_BOARDS))