aboutsummaryrefslogtreecommitdiffstats
path: root/meta-initramfs/classes
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-09-13 10:44:19 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-09-18 10:16:23 +0200
commit392d474544ee469b5770842bf0c6fa7f7b17677e (patch)
treea8023b0408907854d718eebf067d0c223bd7b255 /meta-initramfs/classes
parent7fb5af65575987d394f3a8446eb17df8c8680c5b (diff)
downloadmeta-openembedded-contrib-392d474544ee469b5770842bf0c6fa7f7b17677e.tar.gz
meta-openembedded-contrib-392d474544ee469b5770842bf0c6fa7f7b17677e.tar.bz2
meta-openembedded-contrib-392d474544ee469b5770842bf0c6fa7f7b17677e.zip
klibc.bbclass: Add -mfloat-abi on arm
Default toolchain is not configured for hard float therefore we need to pass the right -mfloat-abi option Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-initramfs/classes')
-rw-r--r--meta-initramfs/classes/klibc.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-initramfs/classes/klibc.bbclass b/meta-initramfs/classes/klibc.bbclass
index c9de58cec6..1ec7b2b05c 100644
--- a/meta-initramfs/classes/klibc.bbclass
+++ b/meta-initramfs/classes/klibc.bbclass
@@ -5,6 +5,8 @@ DEPENDS =+ "klcc-cross"
# Set CC = "${TARGET_PREFIX}klcc -shared" to build the dynamic version.
CC_forcevariable = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS}"
CC_forcevariable_armv4_linux-gnueabi = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS} -march=armv4 -mthumb-interwork"
+CC_append_armv7ve = " ${@' -mfloat-abi=${TUNE_CCARGS_MFLOAT}' if (d.getVar('TUNE_CCARGS_MFLOAT') != '') else ''}"
+CC_append_armv7a = " ${@' -mfloat-abi=${TUNE_CCARGS_MFLOAT}' if (d.getVar('TUNE_CCARGS_MFLOAT') != '') else ''}"
CPP_forcevariable = "${CC} -E"