All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] speex: configure in flaot or fixed mode based on TARGET_FPU
@ 2014-01-20 10:38 Fahad Arslan
  0 siblings, 0 replies; only message in thread
From: Fahad Arslan @ 2014-01-20 10:38 UTC (permalink / raw)
  To: openembedded-core

From: Fahad Arslan <Fahad_Arslan@mentor.com>

Decide flaot or fixed mode usage depending on whether hardware
FPU is present or not.

Signed-off-by: Fahad Arslan <Fahad_Arslan@mentor.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(-)
 create mode 100644 meta/recipes-multimedia/speex/speex-fpu.inc

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 f1ea547..f6dc490 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 = " --with-ogg-libraries=${STAGING_LIBDIR} \
-                 --enable-float-api --disable-vbr \
                  --with-ogg-includes=${STAGING_INCDIR} --disable-oggtest"
+
+require speex-fpu.inc
+EXTRA_OECONF += "${@get_speex_fpu_setting(bb, d)}
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-01-20 10:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-20 10:38 [PATCH] speex: configure in flaot or fixed mode based on TARGET_FPU Fahad Arslan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.