[U-Boot] [PATCH] arm: Tegra2: Fix out of tree builds

Anton Staaf robotboy at chromium.org
Tue Apr 5 23:33:17 CEST 2011


Create the board/nvidia/common directory in the out of tree build
directory.

Without this patch building out of tree results in a failure to create
the board.o file in the build directory tree.

Signed-off-by: Anton Staaf <robotboy at chromium.org>
Cc: Tom Warren <twarren at nvidia.com>
Cc: Albert ARIBAUD <albert.aribaud at free.fr>
---

An alternative solution would be to create a Makefile in the common directory
that creates an object/library that each board depends on.  I'm not sure which
is better.

 board/nvidia/harmony/Makefile  |    2 ++
 board/nvidia/seaboard/Makefile |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/board/nvidia/harmony/Makefile b/board/nvidia/harmony/Makefile
index 3a146cb..4f4373b 100644
--- a/board/nvidia/harmony/Makefile
+++ b/board/nvidia/harmony/Makefile
@@ -24,6 +24,8 @@

 include $(TOPDIR)/config.mk

+$(shell mkdir -p $(obj)../common)
+
 LIB    = $(obj)lib$(BOARD).o

 COBJS  += ../common/board.o
diff --git a/board/nvidia/seaboard/Makefile b/board/nvidia/seaboard/Makefile
index 3a146cb..4f4373b 100644
--- a/board/nvidia/seaboard/Makefile
+++ b/board/nvidia/seaboard/Makefile
@@ -24,6 +24,8 @@

 include $(TOPDIR)/config.mk

+$(shell mkdir -p $(obj)../common)
+
 LIB    = $(obj)lib$(BOARD).o

 COBJS  += ../common/board.o
-- 
1.7.3.1


More information about the U-Boot mailing list