From patchwork Thu Apr 11 14:48:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: fftwf: Add fftwf package for single precision fft X-Patchwork-Submitter: Spenser Gilliland X-Patchwork-Id: 235777 Message-Id: <1365691684-30663-1-git-send-email-spenser@gillilanding.com> To: buildroot@busybox.net Cc: Spenser Gilliland Date: Thu, 11 Apr 2013 09:48:03 -0500 From: Spenser Gilliland List-Id: Discussion and development of buildroot From: Spenser Gilliland 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 --- 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)) +