[oe-commits] Fahad Arslan : speex: configure in float or fixed mode based on TARGET_FPU
git at git.openembedded.org
git at git.openembedded.org
Tue Jan 28 00:48:52 UTC 2014
Module: openembedded-core.git
Branch: master
Commit: e8f707f16a38d85535593a32efff6dcbf4ddb203
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=e8f707f16a38d85535593a32efff6dcbf4ddb203
Author: Fahad Arslan <Fahad_Arslan at mentor.com>
Date: Mon Jan 20 15:38:20 2014 +0500
speex: configure in float or fixed mode based on TARGET_FPU
Decide float or fixed mode usage depending on whether hardware
FPU is present or not.
Signed-off-by: Fahad Arslan <Fahad_Arslan at mentor.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
meta/recipes-multimedia/speex/speex-fpu.inc | 4 ++++
meta/recipes-multimedia/speex/speex_1.2rc1.bb | 4 +++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-multimedia/speex/speex-fpu.inc b/meta/recipes-multimedia/speex/speex-fpu.inc
new file mode 100644
index 0000000..2571d32
--- /dev/null
+++ b/meta/recipes-multimedia/speex/speex-fpu.inc
@@ -0,0 +1,4 @@
+def get_speex_fpu_setting(bb, d):
+ if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
+ return "--enable-fixed-point --disable-float-api --disable-vbr"
+ return ""
diff --git a/meta/recipes-multimedia/speex/speex_1.2rc1.bb b/meta/recipes-multimedia/speex/speex_1.2rc1.bb
index 5de0169..9fd88a3 100644
--- a/meta/recipes-multimedia/speex/speex_1.2rc1.bb
+++ b/meta/recipes-multimedia/speex/speex_1.2rc1.bb
@@ -19,5 +19,7 @@ PARALLEL_MAKE = ""
inherit autotools pkgconfig lib_package
EXTRA_OECONF = " --enable-fixed-point --with-ogg-libraries=${STAGING_LIBDIR} \
- --disable-float-api --disable-vbr \
--with-ogg-includes=${STAGING_INCDIR} --disable-oggtest"
+
+require speex-fpu.inc
+EXTRA_OECONF += "${@get_speex_fpu_setting(bb, d)}"
More information about the Openembedded-commits
mailing list