Patchwork [1/1] QT4: use '-no-neon' if cpu does not support neon

login
register
mail settings
Submitter rongqing.li@windriver.com
Date Feb. 1, 2013, 7:10 a.m.
Message ID <c5542b7a6ce2324c11b2c133227d6922ebd48d95.1359688928.git.rongqing.li@windriver.com>
Download mbox | patch
Permalink /patch/43789/
State Accepted
Commit 8eab3f5e7ab0aacf4af8a5de98e7c3d32a8a6e19
Headers show

Comments

rongqing.li@windriver.com - Feb. 1, 2013, 7:10 a.m.
From: "Roy.Li" <rongqing.li@windriver.com>

Some armv7a cpu does not support neon, like SPEAr1310,
so we should check against "neon" in TUNE_FEATURES.

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
---
 meta/recipes-qt/qt4/qt4-embedded_4.8.4.bb |    4 ++--
 meta/recipes-qt/qt4/qt4-x11-free_4.8.4.bb |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

Patch

diff --git a/meta/recipes-qt/qt4/qt4-embedded_4.8.4.bb b/meta/recipes-qt/qt4/qt4-embedded_4.8.4.bb
index 5a3dc65..0f417c9 100644
--- a/meta/recipes-qt/qt4/qt4-embedded_4.8.4.bb
+++ b/meta/recipes-qt/qt4/qt4-embedded_4.8.4.bb
@@ -1,9 +1,9 @@ 
 require qt4-${PV}.inc
 require qt4-embedded.inc
 
-PR = "${INC_PR}.1"
+PR = "${INC_PR}.2"
 
-QT_CONFIG_FLAGS_append_armv6 = " -no-neon "
+QT_CONFIG_FLAGS_append_arm = "${@bb.utils.contains("TUNE_FEATURES", "neon", "", "-no-neon" ,d)}"
 
 QT_CONFIG_FLAGS += " \
  -exceptions \
diff --git a/meta/recipes-qt/qt4/qt4-x11-free_4.8.4.bb b/meta/recipes-qt/qt4/qt4-x11-free_4.8.4.bb
index 9b03ff2..a589fbe 100644
--- a/meta/recipes-qt/qt4/qt4-x11-free_4.8.4.bb
+++ b/meta/recipes-qt/qt4/qt4-x11-free_4.8.4.bb
@@ -1,9 +1,9 @@ 
 require qt4-x11-free.inc
 require qt4-${PV}.inc
 
-PR = "${INC_PR}.1"
+PR = "${INC_PR}.2"
 
-QT_CONFIG_FLAGS_append_armv6 = " -no-neon "
+QT_CONFIG_FLAGS_append_arm = "${@bb.utils.contains("TUNE_FEATURES", "neon", "", "-no-neon" ,d)}"
 
 QT_CONFIG_FLAGS += " \
  -no-embedded \