mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #11662 from cladmi/pr/make/boards.inc.mk
makefiles/boards.inc.mk: list boards variables
This commit is contained in:
commit
c4c79f4684
1
Makefile
1
Makefile
@ -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
|
||||
|
@ -97,6 +97,9 @@ include $(RIOTMAKE)/color.inc.mk
|
||||
# include concurrency helpers
|
||||
include $(RIOTMAKE)/info-nproc.inc.mk
|
||||
|
||||
# List of boards variables
|
||||
include $(RIOTMAKE)/boards.inc.mk
|
||||
|
||||
GLOBAL_GOALS += buildtest info-boards-supported info-boards-features-missing info-buildsizes info-buildsizes-diff
|
||||
ifneq (, $(filter $(GLOBAL_GOALS), $(MAKECMDGOALS)))
|
||||
BOARD=none
|
||||
|
@ -21,3 +21,5 @@ info-applications-supported-boards:
|
||||
@for dir in $(APPLICATION_DIRS); do \
|
||||
make --no-print-directory -C $${dir} info-boards-supported 2>/dev/null | xargs -n 1 echo $${dir}; \
|
||||
done
|
||||
# BOARDS values from 'boards.inc.mk' to only evaluate it once
|
||||
info-applications-supported-boards: export BOARDS ?=
|
||||
|
14
makefiles/boards.inc.mk
Normal file
14
makefiles/boards.inc.mk
Normal 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)
|
@ -37,7 +37,6 @@ define board_missing_features
|
||||
endif
|
||||
endef
|
||||
|
||||
BOARDS ?= $(shell find $(RIOTBOARD)/* -maxdepth 0 -type d \! -name "common" -exec basename {} \;)
|
||||
BOARDS := $(filter $(if $(BOARD_WHITELIST), $(BOARD_WHITELIST), %), $(BOARDS))
|
||||
BOARDS := $(filter-out $(BOARD_BLACKLIST), $(BOARDS))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user