Decide float or fixed mode usage depending on whether hardware
FPU is present or not.
Signed-off-by: Fahad Arslan <Fahad_Arslan@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
--- /dev/null
+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 ""
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)}"