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

makefiles/boards.inc.mk: simply expand ALLBOARDS

We can't use memoized here since if we don't expand immediatly
the value for BOARDSDIR might change.
This commit is contained in:
Francisco Molina 2020-01-24 17:59:46 +01:00
parent 1f844fb99a
commit ff70ad377a

View File

@ -12,8 +12,8 @@ ifneq ($(RIOTBOARD),$(BOARDSDIR))
ALLBOARDS_RIOTBOARD ?= $(call _get_boards_in_directory,$(RIOTBOARD))
endif
# Get all boards
ALLBOARDS ?= $(sort $(call _get_boards_in_directory,$(BOARDSDIR)) $(ALLBOARDS_RIOTBOARD))
# Use `:=` so that it is evaluated before BOARDSDIR gets eventually changed
ALLBOARDS := $(sort $(call _get_boards_in_directory,$(BOARDSDIR)) $(ALLBOARDS_RIOTBOARD))
# Set the default value from `BOARDS`
BOARDS ?= $(ALLBOARDS)