From: Wolfgang Denk Date: Mon, 5 Sep 2011 21:37:27 +0200 Subject: [U-Boot] [PATCH] harmony / seaboard: fix out of tree building In-Reply-To: <1315242025-5360-1-git-send-email-wd@denx.de> References: <1315242025-5360-1-git-send-email-wd@denx.de> Message-ID: <1315251447-23869-1-git-send-email-wd@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Out of tree building of the "harmony" and "seaboard" boards failed like this: Configuring for harmony board... Assembler messages: Fatal error: can't create /work/wd/tmp-arm/board/nvidia/harmony/../common/board.o: No such file or directory make[1]: *** [/work/wd/tmp-arm/board/nvidia/harmony/../common/board.o] Error 2 Signed-off-by: Wolfgang Denk Cc: Albert ARIBAUD Cc: Tom Warren --- This replaces [PATCH] harmony: fix out of tree building; both Nvidia boards have the same problem, so fix them in one go. board/nvidia/harmony/Makefile | 4 ++++ board/nvidia/seaboard/Makefile | 4 ++++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/board/nvidia/harmony/Makefile b/board/nvidia/harmony/Makefile index 9fb6b57..ebd8e02 100644 --- a/board/nvidia/harmony/Makefile +++ b/board/nvidia/harmony/Makefile @@ -24,6 +24,10 @@ include $(TOPDIR)/config.mk +ifneq ($(OBJTREE),$(SRCTREE)) +$(shell mkdir -p $(obj)../common) +endif + LIB = $(obj)lib$(BOARD).o COBJS := $(BOARD).o diff --git a/board/nvidia/seaboard/Makefile b/board/nvidia/seaboard/Makefile index 9fb6b57..ebd8e02 100644 --- a/board/nvidia/seaboard/Makefile +++ b/board/nvidia/seaboard/Makefile @@ -24,6 +24,10 @@ include $(TOPDIR)/config.mk +ifneq ($(OBJTREE),$(SRCTREE)) +$(shell mkdir -p $(obj)../common) +endif + LIB = $(obj)lib$(BOARD).o COBJS := $(BOARD).o -- 1.7.6