QT4: use '-no-neon' if cpu does not support neon
authorRoy.Li <rongqing.li@windriver.com>
Fri, 1 Feb 2013 07:10:29 +0000 (15:10 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Feb 2013 15:54:01 +0000 (15:54 +0000)
Some armv7a cpu does not support neon, like SPEAr1310,
so we should check against "neon" in TUNE_FEATURES.

(From OE-Core rev: 173d430ab2a06fb86f1c5bb0ca60376dd2fdbdfb)

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-qt/qt4/qt4-embedded_4.8.4.bb
meta/recipes-qt/qt4/qt4-x11-free_4.8.4.bb

index 5a3dc65..0f417c9 100644 (file)
@@ -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 \
index 9b03ff2..a589fbe 100644 (file)
@@ -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 \