summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2011-10-24 00:14:23 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-11-08 22:16:53 +0100
commit99bd341b96d42139429c0d9da58f59b8395e407e (patch)
tree6da3a9970a6c8a2bbed7451c58bad38141262ba3
parent46b5ccbfe299887fa1f8b15d494d0a5f0e75ee2e (diff)
downloadtalos-obmc-uboot-99bd341b96d42139429c0d9da58f59b8395e407e.tar.gz
talos-obmc-uboot-99bd341b96d42139429c0d9da58f59b8395e407e.zip
SPL: Allow ARM926EJS to avoid compiling in the CPU support code
This allows the SPL to avoid compiling in the CPU support code. Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Wolfgang Denk <wd@denx.de> Cc: Detlev Zundel <dzu@denx.de> Cc: Scott Wood <scottwood@freescale.com>
-rw-r--r--arch/arm/cpu/arm926ejs/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/cpu/arm926ejs/Makefile b/arch/arm/cpu/arm926ejs/Makefile
index 930e0d1bfc..a56ff08c90 100644
--- a/arch/arm/cpu/arm926ejs/Makefile
+++ b/arch/arm/cpu/arm926ejs/Makefile
@@ -28,6 +28,12 @@ LIB = $(obj)lib$(CPU).o
START = start.o
COBJS = cpu.o
+ifdef CONFIG_SPL_BUILD
+ifdef CONFIG_SPL_NO_CPU_SUPPORT_CODE
+START :=
+endif
+endif
+
SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
START := $(addprefix $(obj),$(START))
OpenPOWER on IntegriCloud