[Buildroot] [PATCHv3 08/14] configs: use new EABIhf option for beaglebone_defconfig

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Jul 16 15:23:02 UTC 2013


Dear Spenser Gilliland,

On Tue, 16 Jul 2013 10:06:22 -0500, Spenser Gilliland wrote:

> In summary, uboot will keep -msoft-float and will not accept the patch
> for reasons of preventing possible floating point assembly being
> generated.
> 
> IMHO: the simple solution could be to just do a CFLAGS=$(filter
> -mfloat-abi=hard, $(TARGET_CFLAGS)) when passing to uboot as uboot
> should not generate any float code at all.

That's not possible because -mfloat-abi=hard is not passed through
CFLAGS, but directly hardcoded into the external toolchain wrapper. The
reasoning for hardcoding that into the external toolchain wrapper is
that people using $(O)/host/usr/bin/<arch>-gcc to build their own stuff
outside of Buildroot will automagically get the proper flags, without
having to worry about this.

So we can't just "filter" flags in uboot.mk as you suggest,
unfortunately.

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com


More information about the buildroot mailing list