From patchwork Sun May 15 01:32:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [10/15] tune-cortexa8.inc: Define variable for controlling FP ABI Date: Sun, 15 May 2011 01:32:27 -0000 From: Saul Wold X-Patchwork-Id: 4049 Message-Id: <72fe1428a39b19acd1669a95a93b5844e31e6cb8.1305422996.git.sgw@linux.intel.com> To: openembedded-core@lists.openembedded.org Cc: Paul Eggleton , Kang Kai From: Khem Raj ARM_FP_ABI also is poked from gcc configure to enable hardfp for parameter Signed-off-by: Khem Raj --- meta/conf/machine/include/tune-cortexa8.inc | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/meta/conf/machine/include/tune-cortexa8.inc b/meta/conf/machine/include/tune-cortexa8.inc index a5b982a..d5e15c6 100644 --- a/meta/conf/machine/include/tune-cortexa8.inc +++ b/meta/conf/machine/include/tune-cortexa8.inc @@ -3,11 +3,17 @@ # [2] http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html # [3] https://support.codesourcery.com/GNUToolchain/kbentry29 -TARGET_CC_ARCH = "-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-tree-vectorize" +# Can be one of ['softfp' 'hardfp'] +ARM_FP_ABI ?= "softfp" + +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} -fno-tree-vectorize" # Other potentially useful options #-ftree-vectorize -ffast-math -fno-omit-frame-pointer -FEED_ARCH = "armv7a" -BASE_PACKAGE_ARCH = "armv7a" -PACKAGE_EXTRA_ARCHS = "arm armv4 armv4t armv5te armv6 armv7 armv7a" +FEED_ARCH = "armv7a${ARM_FP_PACKAGESUFFIX}" +BASE_PACKAGE_ARCH = "armv7a${ARM_FP_PACKAGESUFFIX}" +PACKAGE_EXTRA_ARCHS = "arm armv4 armv4t armv5te armv6 armv7 armv7a${ARM_FP_PACKAGESUFFIX}"