fca8b60f86
fftw's library name depends on the precision option. Consequently, it's possible to install multiple flavor on the same target. This patch breaks fftw single precision into a new package and: - makes BR2_PACKAGE_FFTW_PRECISION_SINGLE select BR2_PACKAGE_FFTW_SINGLE to keep compatibility with packages that use BR2_PACKAGE_FFTW_PRECISION_SINGLE. This option will be removed in a follow-up commit; - removes the BR2_PACKAGE_FFTW_USE_SSE and BR2_PACKAGE_FFTW_USE_NEON otpions since they are only used for single precision. The corresponding CPU-capability options are directly handled in the fftw-single package; - makes fftw depend on fftw-single when this package is enabled. Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> [Yann/Thomas: - Force --disable-single in FFTW_CONF_OPTS, just for the sake of clarity (fftw is no longer going to build the single variant) - Use FFTW_SINGLE_DL_SUBDIR to avoid downloading fftw multiple times - Minor reformatting tweaks in fftw-single.mk - Do not deprecate BR2_PACKAGE_FFTW_PRECISION_SINGLE and instead make it select BR2_PACKAGE_FFTW_SINGLE, so that packages using BR2_PACKAGE_FFTW_PRECISION_SINGLE continue to work.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
38 lines
1.0 KiB
Makefile
38 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# 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))
|