2019-05-27 20:56:47 +02:00
|
|
|
# Default when RIOTBASE is not set and is executed from the RIOT directory
|
2019-09-09 17:00:59 +02:00
|
|
|
BOARDSDIR ?= $(or $(RIOTBASE),$(CURDIR))/boards
|
2019-05-27 20:56:47 +02:00
|
|
|
|
|
|
|
# List all boards.
|
2019-09-09 17:00:59 +02:00
|
|
|
# By default, all directories in BOARDSDIR except 'common'
|
2019-05-27 20:56:47 +02:00
|
|
|
# use 'wildcard */.' to only list directories
|
2019-09-09 17:00:59 +02:00
|
|
|
ALLBOARDS ?= $(sort $(filter-out common,$(patsubst $(BOARDSDIR)/%/.,%,$(wildcard $(BOARDSDIR)/*/.))))
|
2019-05-27 20:56:47 +02:00
|
|
|
|
|
|
|
# Set the default value from `BOARDS`
|
|
|
|
BOARDS ?= $(ALLBOARDS)
|
|
|
|
|
|
|
|
.PHONY: info-boards
|
|
|
|
info-boards:
|
|
|
|
@echo $(BOARDS)
|