diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2013-07-16 10:03:12 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-07-16 13:44:00 +0200 |
commit | d774551787fc737823fe645bb3efd758619690a2 (patch) | |
tree | eba362f50e708a71ff27f3e830721cad09f135b9 /toolchain/toolchain-external/ext-toolchain-wrapper.c | |
parent | 3c71b90ce3fb5782a36bcca28f7cffae670352ed (diff) | |
download | buildroot-d774551787fc737823fe645bb3efd758619690a2.tar.gz buildroot-d774551787fc737823fe645bb3efd758619690a2.zip |
arch: introduce BR2_GCC_TARGET_{FPU, FLOAT_ABI}
Buildroot already has the BR2_GCC_TARGET_{TUNE,ARCH,ABI,CPU} hidden
kconfig strings that allow per-architecture Config.in files to feed
the appropriate values of --with-{tune,arch,abi-cpu} when building
gcc, or the appropriate flags for the external toolchain wrapper.
This commit has two additional options:
BR2_GCC_TARGET_{FPU,FLOAT_ABI}, that allows to define the
--with-{fpu,float} gcc configure options for the internal backend, or
the -m{fpu,float-abi} options for the flags of the external toolchain
wrapper.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'toolchain/toolchain-external/ext-toolchain-wrapper.c')
-rw-r--r-- | toolchain/toolchain-external/ext-toolchain-wrapper.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/toolchain/toolchain-external/ext-toolchain-wrapper.c b/toolchain/toolchain-external/ext-toolchain-wrapper.c index 9d79d68adf..f81aed4935 100644 --- a/toolchain/toolchain-external/ext-toolchain-wrapper.c +++ b/toolchain/toolchain-external/ext-toolchain-wrapper.c @@ -38,6 +38,12 @@ static char *predef_args[] = { #ifdef BR_ABI "-mabi=" BR_ABI, #endif +#ifdef BR_FLOAT_ABI + "-mfloat-abi=" BR_FLOAT_ABI, +#endif +#ifdef BR2_FPU + "-mfpu=" BR_FPU, +#endif #ifdef BR_SOFTFLOAT "-msoft-float", #endif /* BR_SOFTFLOAT */ |