1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #16975 from aabadie/pr/make/emulated_boards_list

make: add info-emulated-boards helper target
This commit is contained in:
Alexandre Abadie 2021-10-12 13:28:20 +02:00 committed by GitHub
commit 48bc2ebb9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 1 deletions

View File

@ -17,6 +17,13 @@ with the `RIOT_EMULATOR` variable. Possible values are `qemu` and `renode`.
If no emulator is specified by the board configuration (e.g. in its
`Makefile.include`), the default emulator is `renode`.
The boards with emulator supported can be listed using the
`info-emulated-boards` target:
```
$ make info-emulated-boards
```
## Features
Be aware that not all hardware features provided by a board - and described as

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))