summaryrefslogtreecommitdiff
path: root/arch/powerpc/cpu/mpc83xx/Makefile
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2012-12-06 13:33:17 +0000
committerKim Phillips <kim.phillips@freescale.com>2012-12-19 17:45:44 -0600
commit06f60ae3e454e15a410a0d4e96769bf938af8fcb (patch)
tree782054a8a7c564a760bd612f07c4ec455c1782a9 /arch/powerpc/cpu/mpc83xx/Makefile
parent74752baa738ee9dafe69d726910e26da56f6f722 (diff)
downloadu-boot-imx-06f60ae3e454e15a410a0d4e96769bf938af8fcb.zip
u-boot-imx-06f60ae3e454e15a410a0d4e96769bf938af8fcb.tar.gz
u-boot-imx-06f60ae3e454e15a410a0d4e96769bf938af8fcb.tar.bz2
powerpc/mpc83xx: add support for new SPL
This adds arch support for PPC mpc83xx to boot "minimal" (4K) SPLs using the new infrastructure. Existing nand_spl targets are updated to deal with the name change from nand_init.c to spl_minimal.c (as in theory this isn't limited to NAND anymore). Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'arch/powerpc/cpu/mpc83xx/Makefile')
-rw-r--r--arch/powerpc/cpu/mpc83xx/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/mpc83xx/Makefile b/arch/powerpc/cpu/mpc83xx/Makefile
index 687f5e9..8a470b8 100644
--- a/arch/powerpc/cpu/mpc83xx/Makefile
+++ b/arch/powerpc/cpu/mpc83xx/Makefile
@@ -27,8 +27,22 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(CPU).o
+MINIMAL=
+
+ifdef CONFIG_SPL_BUILD
+ifdef CONFIG_SPL_INIT_MINIMAL
+MINIMAL=y
+endif
+endif
+
START = start.o
+ifdef MINIMAL
+
+COBJS-y += spl_minimal.o
+
+else
+
COBJS-y += traps.o
COBJS-y += cpu.o
COBJS-y += cpu_init.o
@@ -51,6 +65,8 @@ COBJS-y += spd_sdram.o
endif
COBJS-$(CONFIG_FSL_DDR2) += law.o
+endif # not minimal
+
COBJS := $(COBJS-y)
SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) $(addprefix $(obj),$(COBJS_LN-y:.o=.c))
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS) $(COBJS_LN-y))