mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
5
package/fftw/fftw-single/Config.in
Normal file
5
package/fftw/fftw-single/Config.in
Normal file
@@ -0,0 +1,5 @@
|
||||
config BR2_PACKAGE_FFTW_SINGLE
|
||||
bool "fftw-single"
|
||||
help
|
||||
Compile fftw in single precision, i.e. use 'float'
|
||||
for floating point type.
|
||||
1
package/fftw/fftw-single/fftw-single.hash
Symbolic link
1
package/fftw/fftw-single/fftw-single.hash
Symbolic link
@@ -0,0 +1 @@
|
||||
../fftw.hash
|
||||
37
package/fftw/fftw-single/fftw-single.mk
Normal file
37
package/fftw/fftw-single/fftw-single.mk
Normal file
@@ -0,0 +1,37 @@
|
||||
################################################################################
|
||||
#
|
||||
# fftw-single
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FFTW_SINGLE_VERSION = $(FFTW_VERSION)
|
||||
FFTW_SINGLE_SOURCE = fftw-$(FFTW_VERSION).tar.gz
|
||||
FFTW_SINGLE_SITE = $(FFTW_SITE)
|
||||
FFTW_SINGLE_DL_SUBDIR = fftw
|
||||
FFTW_SINGLE_INSTALL_STAGING = $(FFTW_INSTALL_STAGING)
|
||||
FFTW_SINGLE_LICENSE = $(FFTW_LICENSE)
|
||||
FFTW_SINGLE_LICENSE_FILES = $(FFTW_LICENSE_FILES)
|
||||
|
||||
FFTW_SINGLE_CONF_ENV = $(FFTW_COMMON_CONF_ENV)
|
||||
|
||||
FFTW_SINGLE_CONF_OPTS = \
|
||||
$(FFTW_COMMON_CONF_OPTS) \
|
||||
CFLAGS="$(FFTW_SINGLE_CFLAGS)" \
|
||||
--enable-single
|
||||
|
||||
FFTW_SINGLE_CFLAGS = $(FFTW_COMMON_CFLAGS)
|
||||
|
||||
# x86 optimisations
|
||||
FFTW_SINGLE_CONF_OPTS += \
|
||||
$(if $(BR2_X86_CPU_HAS_SSE),--enable,--disable)-sse \
|
||||
$(if $(BR2_X86_CPU_HAS_SSE2),--enable,--disable)-sse2
|
||||
|
||||
# ARM optimisations
|
||||
ifeq ($(BR2_ARM_CPU_HAS_NEON):$(BR2_ARM_SOFT_FLOAT),y:)
|
||||
FFTW_SINGLE_CONF_OPTS += --enable-neon
|
||||
FFTW_SINGLE_CFLAGS += -mfpu=neon
|
||||
else
|
||||
FFTW_SINGLE_CONF_OPTS += --disable-neon
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user