1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 04:52:59 +01:00

Merge pull request #13198 from fjmolinas/pr_fix_info_board_RIOTBASE

makefiles/boards.inc.mk: set RIOTBOARD
This commit is contained in:
Leandro Lanzieri 2020-01-27 09:57:45 +01:00 committed by GitHub
commit c5dfc7d16c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
# Default when RIOTBASE is not set and is executed from the RIOT directory
BOARDSDIR ?= $(or $(RIOTBASE),$(CURDIR))/boards
RIOTBOARD ?= $(or $(RIOTBASE),$(CURDIR))/boards
BOARDSDIR ?= $(RIOTBOARD)
# List all boards in a directory
# By default, all directories in BOARDSDIR except 'common'
@ -11,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)