summaryrefslogtreecommitdiff
path: root/board/freescale/p1010rdb/Makefile
diff options
context:
space:
mode:
authorPrabhakar Kushwaha <prabhakar@freescale.com>2013-04-16 13:28:12 +0530
committerAndy Fleming <afleming@freescale.com>2013-06-20 16:09:07 -0500
commit0fa934d235c282e8efd119fc14a18315a8666930 (patch)
treef5ba5143a55d85340127fcf34b6789c140628a89 /board/freescale/p1010rdb/Makefile
parent3a88179d03dfc41154e5bf12826c800dee864b7c (diff)
downloadu-boot-imx-0fa934d235c282e8efd119fc14a18315a8666930.zip
u-boot-imx-0fa934d235c282e8efd119fc14a18315a8666930.tar.gz
u-boot-imx-0fa934d235c282e8efd119fc14a18315a8666930.tar.bz2
board/p1010rdb:Add NAND boot support using new SPL format
- defines constants - Add spl_minimal.c to initialise DDR - update TLB entries as per NAND boot - remove nand_spl support for P1010RDB Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'board/freescale/p1010rdb/Makefile')
-rw-r--r--board/freescale/p1010rdb/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/board/freescale/p1010rdb/Makefile b/board/freescale/p1010rdb/Makefile
index 4c705b6..e6563be 100644
--- a/board/freescale/p1010rdb/Makefile
+++ b/board/freescale/p1010rdb/Makefile
@@ -24,11 +24,27 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(BOARD).o
+MINIMAL=
+
+ifdef CONFIG_SPL_BUILD
+ifdef CONFIG_SPL_INIT_MINIMAL
+MINIMAL=y
+endif
+endif
+
+ifdef MINIMAL
+
+COBJS-y += spl_minimal.o tlb.o law.o
+
+else
+
COBJS-y += $(BOARD).o
COBJS-y += ddr.o
COBJS-y += law.o
COBJS-y += tlb.o
+endif
+
SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS-y))
SOBJS := $(addprefix $(obj),$(SOBJS))