From 1c82d1d4a6f5f4f30dd6ca846ac128c327eb6294 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 22 May 2015 11:39:19 -0600 Subject: [PATCH] apps/platform masks the assumption that the board directory in in-tree --- platform/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/platform/Makefile b/platform/Makefile index 86b412932..8b69d976b 100644 --- a/platform/Makefile +++ b/platform/Makefile @@ -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