diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-09-13 10:44:19 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-09-18 10:16:23 +0200 |
commit | 392d474544ee469b5770842bf0c6fa7f7b17677e (patch) | |
tree | a8023b0408907854d718eebf067d0c223bd7b255 /meta-initramfs | |
parent | 7fb5af65575987d394f3a8446eb17df8c8680c5b (diff) | |
download | meta-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.bbclass | 2 | ||||
-rw-r--r-- | meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.5.1.bb | 1 |
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. |
6 | CC_forcevariable = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS}" | 6 | CC_forcevariable = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS}" |
7 | CC_forcevariable_armv4_linux-gnueabi = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS} -march=armv4 -mthumb-interwork" | 7 | CC_forcevariable_armv4_linux-gnueabi = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS} -march=armv4 -mthumb-interwork" |
8 | CC_append_armv7ve = " ${@' -mfloat-abi=${TUNE_CCARGS_MFLOAT}' if (d.getVar('TUNE_CCARGS_MFLOAT') != '') else ''}" | ||
9 | CC_append_armv7a = " ${@' -mfloat-abi=${TUNE_CCARGS_MFLOAT}' if (d.getVar('TUNE_CCARGS_MFLOAT') != '') else ''}" | ||
8 | 10 | ||
9 | CPP_forcevariable = "${CC} -E" | 11 | CPP_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 | |||
21 | S = "${WORKDIR}/git/" | 21 | S = "${WORKDIR}/git/" |
22 | 22 | ||
23 | EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}include -DWITHOUT_XATTR' 'BUILDDIR=${S}'" | 23 | EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}include -DWITHOUT_XATTR' 'BUILDDIR=${S}'" |
24 | CFLAGS += "${TUNE_CCARGS}" | ||
25 | 24 | ||
26 | do_install () { | 25 | do_install () { |
27 | 26 | ||