diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-03-31 07:48:29 -0700 |
---|---|---|
committer | Tom Rini <trini@kernel.crashing.org> | 2011-09-22 16:55:35 -0700 |
commit | f0a2cb37fca677390e5b0c33628addb7615fa846 (patch) | |
tree | a568e16572ba4321cfa11987d09a21812b97607e /conf/machine | |
parent | b1b372482515dd1e0bdcd05108d7be28303065d6 (diff) | |
download | openembedded-f0a2cb37fca677390e5b0c33628addb7615fa846.tar.gz |
conf/,gcc-common.inc: Add support for ARM hard float toolchain
Rename ARM_FP_MODE to ARM_FP_ABI
Set target fpu to hard for hardfp ARMv7
Use machine override to add base package arch instead of appending to
OVERRIDES directly
Pass --with-float option to gcc configure taking into account
what float ABI is selected through ARM_FP_ABI
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'conf/machine')
-rw-r--r-- | conf/machine/include/tune-cortexa8.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/conf/machine/include/tune-cortexa8.inc b/conf/machine/include/tune-cortexa8.inc index 2ac0ebfe45..5f556e0514 100644 --- a/conf/machine/include/tune-cortexa8.inc +++ b/conf/machine/include/tune-cortexa8.inc @@ -4,10 +4,10 @@ # [3] https://support.codesourcery.com/GNUToolchain/kbentry29 # Can be 'softfp' or 'hardfp' -ARM_FP_MODE ?= "softfp" +ARM_FP_ABI ?= "softfp" -ARM_FP_OPT = "${@['-mfloat-abi=softfp', '-mfloat-abi=hard'][bb.data.getVar('ARM_FP_MODE', d, 1) == 'hardfp']}" -ARM_FP_PACKAGESUFFIX = "${@['', '-hardfp'][bb.data.getVar('ARM_FP_MODE', d, 1) == 'hardfp']}" +ARM_FP_OPT = "${@['-mfloat-abi=softfp', '-mfloat-abi=hard'][bb.data.getVar('ARM_FP_ABI', d, 1) == 'hardfp']}" +ARM_FP_PACKAGESUFFIX = "${@['', '-hardfp'][bb.data.getVar('ARM_FP_ABI', d, 1) == 'hardfp']}" TARGET_CC_ARCH = "-march=armv7-a -mtune=cortex-a8 -mfpu=neon ${ARM_FP_OPT}" |