ext-toolchain-wrapper: fix uboot/linux with hardfp
authorSpenser Gilliland <spenser@gillilanding.com>
Fri, 19 Jul 2013 23:31:58 +0000 (18:31 -0500)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 20 Jul 2013 22:58:55 +0000 (00:58 +0200)
commitaa86b52ca35b6bd9ebf352c55d4fb3c940c44527
tree8c882edd5be17fe3035bff46b4c18fd4e646836f
parent27c9370344692b7605072f51eaf0275654faa093
ext-toolchain-wrapper: fix uboot/linux with hardfp

The linux kernel and uboot specify -msoft-float in order to prevent floating
point code from being generated.  This causes a conflict when -mfloat-abi=hard
or -mfloat-abi options are specified in the wrapper. This patch removes the
-mfloat-abi option from the options generated by the wrapper only when
-msoft-float, -mhard-float or -mfloat-abi are specified by the user.

[Peter: fix !BR_FLOAT_ABI case, simplify]
Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
toolchain/toolchain-external/ext-toolchain-wrapper.c