[U-Boot] [patch] u-boot powerpc build error

Aggrwal Poonam-B10812 B10812 at freescale.com
Thu Jan 13 08:19:40 CET 2011



> -----Original Message-----
> From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de]
> On Behalf Of Wood Scott-B07421
> Sent: Thursday, January 13, 2011 5:51 AM
> To: gmane
> Cc: u-boot at lists.denx.de
> Subject: Re: [U-Boot] [patch] u-boot powerpc build error
> 
> On Wed, 12 Jan 2011 13:47:08 +0900
> gmane <goweol at gmail.com> wrote:
> 
> > Hello,
> >
> > I met this error (use GNU make 3.80).
> 
> "else ifdef" appears to be new in make 3.81.
Yes I also faced this error with make 3.80
So I made temporary change in config.mk to get build successful.

> 
> > $ make MPC885ADS_config
> > $ make
> > /home/namsh/work/u-boot/arch/powerpc/config.mk:35: Extraneous text
> > after `else' directive
> > /home/namsh/work/u-boot/arch/powerpc/config.mk:37: *** only one `else'
> > per conditional.  Stop.
> >
> > Regards,
> > namsh
> >
> > diff --git a/arch/powerpc/config.mk b/arch/powerpc/config.mk index
> > 2912604..5eeba9a 100644
> > --- a/arch/powerpc/config.mk
> > +++ b/arch/powerpc/config.mk
> > @@ -32,13 +32,15 @@ PLATFORM_LDFLAGS  += -n --gc-sections
> >   ifdef CONFIG_SYS_LDSCRIPT
> >   # need to strip off double quotes
> >   LDSCRIPT := $(subst ",,$(CONFIG_SYS_LDSCRIPT)) -else ifdef
> > CONFIG_NAND_SPL
> > +else
> > +ifdef CONFIG_NAND_SPL
> >   LDSCRIPT := $(SRCTREE)/$(CONFIG_BOARDDIR)/u-boot-nand.lds
> >   else
> >   ifneq ($(wildcard $(SRCTREE)/arch/powerpc/cpu/$(CPU)/u-boot.lds),)
> >   LDSCRIPT := $(SRCTREE)/arch/powerpc/cpu/$(CPU)/u-boot.lds
> >   endif
> >   endif
> > +endif
> 
> Shouldn't CONFIG_SYS_LDSCRIPT override only the main U-boot's linker
> script, not the NAND SPL?  It's unlikely that the same linker script
> would be used for both.
> 
> If the NAND SPL linker script needs to be overridden (probably unlikely),
> it would need CONFIG_SYS_LDSCRIPT_SPL, similar to
> CONFIG_SYS_TEXT_BASE_SPL.
> 
> I know this isn't your change, but this is where I noticed it. :-)
> 
> -Scott
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot




More information about the U-Boot mailing list