From: Marek Vasut Date: Mon, 24 Oct 2011 00:14:23 +0000 (+0000) Subject: SPL: Allow ARM926EJS to avoid compiling in the CPU support code X-Git-Tag: v2011.12-rc1~220^2^2~53 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=99bd341b96d42139429c0d9da58f59b8395e407e;p=u-boot 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 Cc: Stefano Babic Cc: Wolfgang Denk Cc: Detlev Zundel Cc: Scott Wood --- 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))