[Buildroot] [git commit] package/fftw: enable threads when the toolchain has them

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Mar 16 18:44:02 UTC 2015


commit: http://git.buildroot.net/buildroot/commit/?id=4ce91aa31b0a2e8b1aa35079f293411042fe4e6c
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
[based on a patch by Guillaume]
Cc: guillaume william brs <guillaume.bressaix at gmail.com>
Cc: Gwenhael Goavec-Merou <gwenhael.goavec-merou at trabucayre.com>
Tested-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou at trabucayre.com>
Reviewed-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou at trabucayre.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 package/fftw/fftw.mk |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/package/fftw/fftw.mk b/package/fftw/fftw.mk
index 3acde57..aea3910 100644
--- a/package/fftw/fftw.mk
+++ b/package/fftw/fftw.mk
@@ -29,6 +29,13 @@ FFTW_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_USE_SSE2),--enable,--disable)-sse2
 FFTW_CONF_OPTS += $(if $(BR2_PACKAGE_FFTW_USE_NEON),--enable,--disable)-neon
 FFTW_CFLAGS += $(if $(BR2_PACKAGE_FFTW_USE_NEON),-mfpu=neon)
 
+# Generic optimisations
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+FFTW_CONF_OPTS += --enable-threads --with-combined-threads
+else
+FFTW_CONF_OPTS += --disable-threads
+endif
+
 FFTW_CONF_OPTS += CFLAGS="$(FFTW_CFLAGS)"
 
 $(eval $(autotools-package))


More information about the buildroot mailing list