summaryrefslogtreecommitdiffstats
path: root/meta-initramfs
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
parent7fb5af65575987d394f3a8446eb17df8c8680c5b (diff)
downloadmeta-openembedded-392d474544ee469b5770842bf0c6fa7f7b17677e.tar.gz
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')
-rw-r--r--meta-initramfs/classes/klibc.bbclass2
-rw-r--r--meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.5.1.bb1
2 files changed, 2 insertions, 1 deletions
diff --git a/meta-initramfs/classes/klibc.bbclass b/meta-initramfs/classes/klibc.bbclass
index c9de58cec..1ec7b2b05 100644
--- a/meta-initramfs/classes/klibc.bbclass
+++ b/meta-initramfs/classes/klibc.bbclass
@@ -5,6 +5,8 @@ DEPENDS =+ "klcc-cross"
5# Set CC = "${TARGET_PREFIX}klcc -shared" to build the dynamic version. 5# Set CC = "${TARGET_PREFIX}klcc -shared" to build the dynamic version.
6CC_forcevariable = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS}" 6CC_forcevariable = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS}"
7CC_forcevariable_armv4_linux-gnueabi = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS} -march=armv4 -mthumb-interwork" 7CC_forcevariable_armv4_linux-gnueabi = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS} -march=armv4 -mthumb-interwork"
8CC_append_armv7ve = " ${@' -mfloat-abi=${TUNE_CCARGS_MFLOAT}' if (d.getVar('TUNE_CCARGS_MFLOAT') != '') else ''}"
9CC_append_armv7a = " ${@' -mfloat-abi=${TUNE_CCARGS_MFLOAT}' if (d.getVar('TUNE_CCARGS_MFLOAT') != '') else ''}"
8 10
9CPP_forcevariable = "${CC} -E" 11CPP_forcevariable = "${CC} -E"
10 12
diff --git a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.5.1.bb b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.5.1.bb
index 867407723..8ca1ca727 100644
--- a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.5.1.bb
+++ b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.5.1.bb
@@ -21,7 +21,6 @@ SRC_URI = "git://git.infradead.org/mtd-utils.git;tag=b7455d847ab4f9eeeb6a729efc3
21S = "${WORKDIR}/git/" 21S = "${WORKDIR}/git/"
22 22
23EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}include -DWITHOUT_XATTR' 'BUILDDIR=${S}'" 23EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}include -DWITHOUT_XATTR' 'BUILDDIR=${S}'"
24CFLAGS += "${TUNE_CCARGS}"
25 24
26do_install () { 25do_install () {
27 26