[meta-ti] Denys Dmytriyenko : boot-monitor: pass float ABI flag to fix gcc-4.9. 1 issue with stubs

Arago Project git git at arago-project.org
Tue Oct 7 16:04:31 PDT 2014


Module: meta-ti
Branch: daisy
Commit: 51621f90c114ee335a1ef29cc49968416ddf35a4
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=51621f90c114ee335a1ef29cc49968416ddf35a4

Author: Denys Dmytriyenko <denys at ti.com>
Date:   Wed Oct  8 04:25:30 2014 +0000

boot-monitor: pass float ABI flag to fix gcc-4.9.1 issue with stubs

Otherwise fails with the below error, similar to am33x-cm3:

fatal error: gnu/stubs-soft.h: No such file or directory

Signed-off-by: Denys Dmytriyenko <denys at ti.com>

---

 recipes-bsp/boot-monitor/boot-monitor_git.bb |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/recipes-bsp/boot-monitor/boot-monitor_git.bb b/recipes-bsp/boot-monitor/boot-monitor_git.bb
index 6e68213..6967be7 100644
--- a/recipes-bsp/boot-monitor/boot-monitor_git.bb
+++ b/recipes-bsp/boot-monitor/boot-monitor_git.bb
@@ -1,11 +1,5 @@
 DESCRIPTION = "Boot Monitor - TI ARM Boot monitor code"
-EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
-
 LICENSE = "BSD"
-
-BOOT_MONITOR_BINARY ?= "skern.bin"
-BOOT_MONITOR_IMAGE  ?= "skern-${MACHINE}.bin"
-
 LIC_FILES_CHKSUM = "file://COPYING;md5=25fe219a6febf6e5bb45beda1b2eb315"
 
 COMPATIBLE_MACHINE = "keystone"
@@ -22,6 +16,13 @@ S = "${WORKDIR}/git"
 #Tag "K2_BM_14.05"
 SRCREV = "0e3ffe1ea4a0cee38ae2406901b7cf4d5324b5e9"
 
+BOOT_MONITOR_BINARY ?= "skern.bin"
+BOOT_MONITOR_IMAGE  ?= "skern-${MACHINE}.bin"
+
+FLOATABI = "${@base_contains("TUNE_FEATURES", "vfp", base_contains("TUNE_FEATURES", "callconvention-hard", " -mfloat-abi=hard", " -mfloat-abi=softfp", d), "" ,d)}"
+
+EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${FLOATABI}""
+
 do_compile () {
 	unset LDFLAGS
 	unset CFLAGS



More information about the meta-ti mailing list