mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
f7f58d6a6b
* 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
15 lines
465 B
Makefile
15 lines
465 B
Makefile
# 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)
|