Skip to content

Commit 76a7e87

Browse files
committed
makefiles/info-global.inc.mk: replicate Makefile.include BOARDSDIR fallback
1 parent 8cb5e10 commit 76a7e87

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

makefiles/info-global.inc.mk

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.PHONY: info-buildsizes info-buildsizes-diff info-features-missing \
22
info-boards-features-missing
33

4+
BOARDSDIR_GLOBAL := $(BOARDSDIR)
45
USEMODULE_GLOBAL := $(USEMODULE)
56
USEPKG_GLOBAL := $(USEPKG)
67
FEATURES_REQUIRED_GLOBAL := $(FEATURES_REQUIRED)
@@ -31,6 +32,12 @@ define board_unsatisfied_features
3132
undefine CPU
3233
undefine CPU_MODEL
3334

35+
# Replicate Makefile.include reseting of BOARDSDIR if BOARD is not found
36+
# in BOARDSDIR
37+
ifeq (,$(wildcard $(BOARDSDIR_GLOBAL)/$(BOARD)))
38+
BOARDSDIR = $(RIOTBOARD)
39+
endif
40+
3441
include $(RIOTBASE)/Makefile.features
3542

3643
include $(RIOTMAKE)/defaultmodules.inc.mk

0 commit comments

Comments
 (0)