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

makefiles/boards.inc.mk: list boards variables

* Add a variable to list all boards without using 'find'.
* By default 'BOARDS' is the list of all boards.
* Add the 'info-boards' target that lists BOARDS.
* Use in RIOT/Makefile
This commit is contained in:
Gaëtan Harter 2019-05-27 20:56:47 +02:00
parent b9c15c3084
commit f7f58d6a6b
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B
2 changed files with 15 additions and 0 deletions

View File

@ -40,6 +40,7 @@ welcome:
print-versions:
@./dist/tools/ci/print_toolchain_versions.sh
include makefiles/boards.inc.mk
include makefiles/app_dirs.inc.mk
-include makefiles/tests.inc.mk

14
makefiles/boards.inc.mk Normal file
View File

@ -0,0 +1,14 @@
# Default when RIOTBASE is not set and is executed from the RIOT directory
RIOTBOARD ?= $(or $(RIOTBASE),$(CURDIR))/boards
# List all boards.
# By default, all directories in RIOTBOARD except 'common'
# use 'wildcard */.' to only list directories
ALLBOARDS ?= $(sort $(filter-out common,$(patsubst $(RIOTBOARD)/%/.,%,$(wildcard $(RIOTBOARD)/*/.))))
# Set the default value from `BOARDS`
BOARDS ?= $(ALLBOARDS)
.PHONY: info-boards
info-boards:
@echo $(BOARDS)