Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] fftwf: Add fftwf package for single precision fft
@ 2013-04-11 14:48 Spenser Gilliland
  2013-04-11 14:48 ` [Buildroot] [PATCH] fs: add uimage support w/ example for cpio Spenser Gilliland
  2013-04-11 17:33 ` [Buildroot] [PATCH] fftwf: Add fftwf package for single precision fft Thomas Petazzoni
  0 siblings, 2 replies; 6+ messages in thread
From: Spenser Gilliland @ 2013-04-11 14:48 UTC (permalink / raw)
  To: buildroot

From: Spenser Gilliland <Spenser309@gmail.com>

The current fftw package only produces double precision floating point
libraries.  This package recompiles the library for single precision and
uses the neon extensions if available.

Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
---
 package/Config.in       |    1 +
 package/fftwf/Config.in |   14 ++++++++++++++
 package/fftwf/fftwf.mk  |   21 +++++++++++++++++++++
 3 files changed, 36 insertions(+)
 create mode 100644 package/fftwf/Config.in
 create mode 100644 package/fftwf/fftwf.mk

diff --git a/package/Config.in b/package/Config.in
index 69d87f0..b1bbfea 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -550,6 +550,7 @@ source "package/libcofi/Config.in"
 source "package/classpath/Config.in"
 source "package/elfutils/Config.in"
 source "package/fftw/Config.in"
+source "package/fftw/Config.in"
 source "package/libargtable2/Config.in"
 source "package/argp-standalone/Config.in"
 source "package/boost/Config.in"
diff --git a/package/fftwf/Config.in b/package/fftwf/Config.in
new file mode 100644
index 0000000..243be02
--- /dev/null
+++ b/package/fftwf/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_FFTWF
+	bool "fftwf"
+	depends on BR2_PACKAGE_FFTW
+	help
+	  Library for computing Fast Fourier Transforms using the ARM Neon
+	  instruction set.
+
+	  This library computes Fast Fourier Transforms (FFT) in one 
+	  or more dimensions.  It is extremely fast. This package 
+	  contains the shared library version of the fftw libraries in 
+	  single precision.
+	
+	  http://www.fftw.org
+           
diff --git a/package/fftwf/fftwf.mk b/package/fftwf/fftwf.mk
new file mode 100644
index 0000000..90fb80e
--- /dev/null
+++ b/package/fftwf/fftwf.mk
@@ -0,0 +1,21 @@
+################################################################################
+#
+# fftwf
+#
+################################################################################
+
+FFTWF_VERSION = 3.3.2
+FFTWF_SITE = http://www.fftw.org
+FFTWF_SOURCE = fftw-$(FFTWF_VERSION).tar.gz
+FFTWF_INSTALL_STAGING = YES
+
+ifeq ($(BR2_ARM_ENABLE_NEON),y)
+FFTWF_CONF_OPT = --enable-single --enable-neon
+FFTWF_CONF_ENV += \
+	CFLAGS="$(TARGET_CFLAGS) -mfpu=neon -mfloat-abi=softfp"
+else
+FFTWF_CONF_OPT = --enable-single
+endif
+
+$(eval $(autotools-package))
+
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-04-11 18:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-11 14:48 [Buildroot] [PATCH] fftwf: Add fftwf package for single precision fft Spenser Gilliland
2013-04-11 14:48 ` [Buildroot] [PATCH] fs: add uimage support w/ example for cpio Spenser Gilliland
2013-04-11 16:41   ` Sören Brinkmann
2013-04-11 17:39   ` Thomas Petazzoni
2013-04-11 17:33 ` [Buildroot] [PATCH] fftwf: Add fftwf package for single precision fft Thomas Petazzoni
2013-04-11 18:17   ` Spenser Gilliland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox