]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: tegra2: fix out-of-tree build
authorChe-liang Chiou <clchiou@chromium.org>
Tue, 23 Aug 2011 00:03:12 +0000 (00:03 +0000)
committerWolfgang Denk <wd@denx.de>
Wed, 7 Sep 2011 20:03:53 +0000 (22:03 +0200)
The out-of-tree build fails because the Makefiles in question depend on
source files of another directory but do not explicitly mkdir that
directory.

As a matter of fact, other Makefiles under board/*/ directory that refer
to source files under another directory explicitly call mkdir.

This patch adds explicit mkdir's to the Makefiles in question, and
verifies that out-of-tree build is working.

Signed-off-by: Che-Liang Chiou <clchiou@chromium.org>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
board/nvidia/harmony/Makefile
board/nvidia/seaboard/Makefile

index 9fb6b575a8a72ee380c7e1fb24566b2a714d0089..ebd8e02ab9e2ba295e807bd3103f947bd6c6bd11 100644 (file)
 
 include $(TOPDIR)/config.mk
 
+ifneq ($(OBJTREE),$(SRCTREE))
+$(shell mkdir -p $(obj)../common)
+endif
+
 LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := $(BOARD).o
index 9fb6b575a8a72ee380c7e1fb24566b2a714d0089..ebd8e02ab9e2ba295e807bd3103f947bd6c6bd11 100644 (file)
 
 include $(TOPDIR)/config.mk
 
+ifneq ($(OBJTREE),$(SRCTREE))
+$(shell mkdir -p $(obj)../common)
+endif
+
 LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := $(BOARD).o