summaryrefslogtreecommitdiff
path: root/arch/powerpc/cpu/mpc85xx/Makefile
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2012-09-20 21:35:21 (GMT)
committerScott Wood <scottwood@freescale.com>2012-11-26 21:41:24 (GMT)
commit4b919725b66152edd8c7cecc9e42864eec12c57d (patch)
tree1f22eb24bfa099955ff594b358e3915bf227d6ea /arch/powerpc/cpu/mpc85xx/Makefile
parenta179eb0a4b2c76df388012e5bc73c43489a660e9 (diff)
downloadu-boot-4b919725b66152edd8c7cecc9e42864eec12c57d.tar.xz
spl/powerpc: introduce CONFIG_SPL_INIT_MINIMAL
cpu_init_nand.c is renamed to spl_minimal.c as it is not really NAND-specific. Signed-off-by: Scott Wood <scottwood@freescale.com> --- v2: factor out START, and change cpu_init_nand.c to spl_minimal.c Cc: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'arch/powerpc/cpu/mpc85xx/Makefile')
-rw-r--r--arch/powerpc/cpu/mpc85xx/Makefile19
1 files changed, 18 insertions, 1 deletions
diff --git a/arch/powerpc/cpu/mpc85xx/Makefile b/arch/powerpc/cpu/mpc85xx/Makefile
index a7dbfa7..4c2b104 100644
--- a/arch/powerpc/cpu/mpc85xx/Makefile
+++ b/arch/powerpc/cpu/mpc85xx/Makefile
@@ -28,7 +28,22 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(CPU).o
-START = start.o resetvec.o
+MINIMAL=
+
+ifdef CONFIG_SPL_BUILD
+ifdef CONFIG_SPL_INIT_MINIMAL
+MINIMAL=y
+endif
+endif
+
+START = start.o resetvec.o
+
+ifdef MINIMAL
+
+COBJS-y += cpu_init_early.o tlb.o spl_minimal.o
+
+else
+
SOBJS-$(CONFIG_MP) += release.o
SOBJS = $(SOBJS-y)
@@ -132,6 +147,8 @@ COBJS-y += traps.o
# Stub implementations of cache management functions for USB
COBJS-y += cache.o
+endif # not minimal
+
COBJS = $(COBJS-y)
SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)