From mboxrd@z Thu Jan 1 00:00:00 1970 From: Allen Martin Date: Fri, 18 May 2012 15:42:50 -0700 Subject: [U-Boot] [PATCH 4/9] tegra: Add SPL build support to tegra boards In-Reply-To: <4FB1E1B8.3080905@wwwdotorg.org> References: <1336633347-8049-1-git-send-email-amartin@nvidia.com> <1336633347-8049-5-git-send-email-amartin@nvidia.com> <4FB1E1B8.3080905@wwwdotorg.org> Message-ID: <20120518224250.GE30009@nvidia.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, May 14, 2012 at 09:55:20PM -0700, Stephen Warren wrote: > On 05/10/2012 01:02 AM, Allen Martin wrote: > > Include board.c for both SPL and non-SPL build. Don't use timer_init > > from board.c for SPL build. > > > > Signed-off-by: Allen Martin > > > diff --git a/board/nvidia/common/Makefile b/board/nvidia/common/Makefile > > If we're already not building board.c for non-Cortex A9 (so not for SPL) > > > -COBJS-y += board.o > > +COBJS-$(CONFIG_ARMCORTEXA9) += board.o > > > diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c > > > +#ifndef CONFIG_SPL_BUILD > > I'm not sure that this ifdef is necessary since !CONFIG_SPL_BUILD any > time this file is compiled? Oh you're right, looks like my commit message is wrong too, I'll take another look. -Allen -- nvpublic