mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +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:
commit
48bc2ebb9f
@ -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
|
If no emulator is specified by the board configuration (e.g. in its
|
||||||
`Makefile.include`), the default emulator is `renode`.
|
`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
|
## Features
|
||||||
|
|
||||||
Be aware that not all hardware features provided by a board - and described as
|
Be aware that not all hardware features provided by a board - and described as
|
||||||
|
@ -16,6 +16,16 @@ ALLBOARDS := $(sort \
|
|||||||
# Set the default value from `BOARDS`
|
# Set the default value from `BOARDS`
|
||||||
BOARDS ?= $(ALLBOARDS)
|
BOARDS ?= $(ALLBOARDS)
|
||||||
|
|
||||||
.PHONY: info-boards
|
.PHONY: info-boards info-emulated-boards
|
||||||
info-boards:
|
info-boards:
|
||||||
@echo $(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))
|
||||||
|
Loading…
Reference in New Issue
Block a user