From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Tue, 08 Nov 2011 22:15:38 +0100 Subject: [U-Boot] [PATCH 2/2 V2] SPL: Allow ARM926EJS to avoid compiling in the CPU support code In-Reply-To: <1319451263-15280-1-git-send-email-marek.vasut@gmail.com> References: <1317860006-18212-2-git-send-email-marek.vasut@gmail.com> <1319451263-15280-1-git-send-email-marek.vasut@gmail.com> Message-ID: <4EB99BFA.1080505@aribaud.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Marek, Le 24/10/2011 12:14, Marek Vasut a ?crit : > 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 > --- > arch/arm/cpu/arm926ejs/Makefile | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > > V2: Don't frob with cpu.o as it's going to be removed anyway. > > diff --git a/arch/arm/cpu/arm926ejs/Makefile b/arch/arm/cpu/arm926ejs/Makefile > index 930e0d1..a56ff08 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)) Applied to u-boot-arm/master, thanks! Amicalement, -- Albert.