apps/platform masks the assumption that the board directory in in-tree

This commit is contained in:
Gregory Nutt 2015-05-22 11:39:19 -06:00
parent 9cdff3ad6e
commit 1c82d1d4a6

View File

@ -60,8 +60,13 @@ endif
PLATFORMDIR = $(APPDIR)$(DELIM)platform$(DELIM)board
DUMMYDIR = $(APPDIR)$(DELIM)platform$(DELIM)dummy
BOARDDIR = $(APPDIR)$(DELIM)platform$(DELIM)$(CONFIG_ARCH_BOARD)
LINKDIR = $(if $(wildcard $(BOARDDIR)$(DELIM)Make.defs),$(BOARDDIR),$(DUMMYDIR))
ifeq ($(CONFIG_ARCH_BOARD_CUSTOM),y)
LINKDIR = $(DUMMYDIR)
else
BOARDDIR = $(APPDIR)$(DELIM)platform$(DELIM)$(CONFIG_ARCH_BOARD)
LINKDIR = $(if $(wildcard $(BOARDDIR)$(DELIM)Make.defs),$(BOARDDIR),$(DUMMYDIR))
endif
VPATH = board