From patchwork Tue Apr 5 21:33:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton staaf X-Patchwork-Id: 89931 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 5765CB6EFF for ; Wed, 6 Apr 2011 07:44:24 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B5A93280A1; Tue, 5 Apr 2011 23:44:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c0EOuok7MLIB; Tue, 5 Apr 2011 23:44:22 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 70D25280A2; Tue, 5 Apr 2011 23:44:20 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 296D8280A2 for ; Tue, 5 Apr 2011 23:44:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JrWOEeUGbxKT for ; Tue, 5 Apr 2011 23:44:17 +0200 (CEST) X-Greylist: delayed 655 seconds by postgrey-1.27 at theia; Tue, 05 Apr 2011 23:44:15 CEST X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from smtp-out.google.com (smtp-out.google.com [216.239.44.51]) by theia.denx.de (Postfix) with ESMTPS id 074C2280A1 for ; Tue, 5 Apr 2011 23:44:15 +0200 (CEST) Received: from wpaz29.hot.corp.google.com (wpaz29.hot.corp.google.com [172.24.198.93]) by smtp-out.google.com with ESMTP id p35LXIQu026654 for ; Tue, 5 Apr 2011 14:33:18 -0700 Received: from vxd2 (vxd2.prod.google.com [10.241.33.194]) by wpaz29.hot.corp.google.com with ESMTP id p35LXHFS009388 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 5 Apr 2011 14:33:17 -0700 Received: by vxd2 with SMTP id 2so847696vxd.8 for ; Tue, 05 Apr 2011 14:33:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.6.4 with SMTP id 4mr56740vcx.157.1302039197131; Tue, 05 Apr 2011 14:33:17 -0700 (PDT) Received: by 10.220.61.207 with HTTP; Tue, 5 Apr 2011 14:33:17 -0700 (PDT) Date: Tue, 5 Apr 2011 14:33:17 -0700 X-Google-Sender-Auth: GxRTrdeVQBIP9jMMv62fLkOL8aM Message-ID: From: Anton Staaf To: U-Boot X-System-Of-Record: true Cc: Tom Warren Subject: [U-Boot] [PATCH] arm: Tegra2: Fix out of tree builds X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de 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 Cc: Tom Warren Cc: Albert ARIBAUD --- 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