linux-next: omap2plus_defconfig not building

Russell King - ARM Linux linux at arm.linux.org.uk
Mon Nov 8 05:25:25 EST 2010


On Mon, Nov 08, 2010 at 10:20:51AM +0000, Catalin Marinas wrote:
> On Mon, 2010-11-08 at 10:14 +0000, Russell King - ARM Linux wrote:
> > On Mon, Nov 08, 2010 at 09:48:13AM +0000, Catalin Marinas wrote:
> > > Russell had a better idea for handling this, not sure whether it went
> > > into -next. It was basically adding -march=armv7-a to
> > > CFLAGS_swp_emulate.o in arch/arm/kernel/Makefile since we can't trigger
> > > an undef fault for SWP on ARMv6 anyway.
> > 
> > It's probably not a good idea to override the compiler architecture,
> > but just allow the assembler to accept the instruction.  -Wa,-march=armv7-a
> > should be good enough.
> 
> Yes, even better via AFLAGS.

Not by AFLAGS unless you want to rewrite swp_emulate entirely in assembler!
AFLAGS is used for .S -> .o.  CFLAGS is used for .c -> .o.

> Do you have a patch already or I should push one?

I've already fixed it.



More information about the linux-arm-kernel mailing list