summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-multimedia/speex/speex-fpu.inc4
-rw-r--r--meta/recipes-multimedia/speex/speex_1.2rc1.bb4
2 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-multimedia/speex/speex-fpu.inc b/meta/recipes-multimedia/speex/speex-fpu.inc
new file mode 100644
index 0000000000..2571d32484
--- /dev/null
+++ b/meta/recipes-multimedia/speex/speex-fpu.inc
@@ -0,0 +1,4 @@
1def get_speex_fpu_setting(bb, d):
2 if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
3 return "--enable-fixed-point --disable-float-api --disable-vbr"
4 return ""
diff --git a/meta/recipes-multimedia/speex/speex_1.2rc1.bb b/meta/recipes-multimedia/speex/speex_1.2rc1.bb
index 5de0169354..9fd88a39f3 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 = ""
19inherit autotools pkgconfig lib_package 19inherit autotools pkgconfig lib_package
20 20
21EXTRA_OECONF = " --enable-fixed-point --with-ogg-libraries=${STAGING_LIBDIR} \ 21EXTRA_OECONF = " --enable-fixed-point --with-ogg-libraries=${STAGING_LIBDIR} \
22 --disable-float-api --disable-vbr \
23 --with-ogg-includes=${STAGING_INCDIR} --disable-oggtest" 22 --with-ogg-includes=${STAGING_INCDIR} --disable-oggtest"
23
24require speex-fpu.inc
25EXTRA_OECONF += "${@get_speex_fpu_setting(bb, d)}"