[U-Boot] Undefined results when building highbank board

Rob Herring robherring2 at gmail.com
Thu Apr 26 14:54:55 CEST 2012


On 04/26/2012 07:03 AM, Wolfgang Denk wrote:
> Dear Rob,
> 
> arch/arm/cpu/armv7/highbank/config.mk contains this setting:
> 
> 	PLATFORM_CPPFLAGS += -march=armv7-a
> 
> This results in code bueing built with the follwoing compiler options:
> 
>         ... -march=armv5 -march=armv7-a ...
> 
> This is a bad idea - dependign on tool chain used, this may result in
> compiler errors ("error: bad value (armv7-a) for -march= switch"), or
> undefined behaviour, as it is not clear which option is used by the
> compiler.
> 
> Can you please provide a fix?  Thanks!

The issue is I require a wfi assembly instruction for reset, so I would
have to hard code the machine code to work on all compilers.

Rob

> 
> Best regards,
> 
> Wolfgang Denk
> 



More information about the U-Boot mailing list