[U-Boot] Undefined results when building highbank board

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!
Best regards,
Wolfgang Denk

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

Dear Rob Herring,
In message 4F99459F.4060500@gmail.com you wrote:
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.
If it's only for this single instruction that thi sseems to be not so bad an option.
Thanks.
Best regards,
Wolfgang Denk
participants (2)
-
Rob Herring
-
Wolfgang Denk