[U-Boot] [PATCH 4/9] tegra: Add SPL build support to tegra boards

Stephen Warren
2012-05-15T04:55:20Z

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 <amartin@nvidia.com>

> 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?