From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Mon, 14 May 2012 22:55:20 -0600 Subject: [U-Boot] [PATCH 4/9] tegra: Add SPL build support to tegra boards In-Reply-To: <1336633347-8049-5-git-send-email-amartin@nvidia.com> References: <1336633347-8049-1-git-send-email-amartin@nvidia.com> <1336633347-8049-5-git-send-email-amartin@nvidia.com> Message-ID: <4FB1E1B8.3080905@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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?