3256b273d3
liquid-dsp has the following code: So, if it uses the external fftw library, it can only use the fftwf variant, i.e the fftw-single variant. Otherwise, it uses its internal FFT library. There is no way for liquid-dsp to use fftw-double or fftw-long-double. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
48 lines
1.5 KiB
Makefile
48 lines
1.5 KiB
Makefile
################################################################################
|
|
#
|
|
# liquid-dsp
|
|
#
|
|
################################################################################
|
|
|
|
LIQUID_DSP_VERSION = v1.3.0
|
|
LIQUID_DSP_SITE = $(call github,jgaeddert,liquid-dsp,$(LIQUID_DSP_VERSION))
|
|
LIQUID_DSP_LICENSE = MIT
|
|
LIQUID_DSP_LICENSE_FILES = LICENSE
|
|
LIQUID_DSP_INSTALL_STAGING = YES
|
|
LIQUID_DSP_AUTORECONF = YES
|
|
|
|
LIQUID_DSP_CONF_ENV = \
|
|
ax_cv_have_mmx_ext=$(if $(BR2_X86_CPU_HAS_MMX),yes,no) \
|
|
ax_cv_have_sse_ext=$(if $(BR2_X86_CPU_HAS_SSE),yes,no) \
|
|
ax_cv_have_sse2_ext=$(if $(BR2_X86_CPU_HAS_SSE2),yes,no) \
|
|
ax_cv_have_sse3_ext=$(if $(BR2_X86_CPU_HAS_SSE3),yes,no) \
|
|
ax_cv_have_ssse3_ext=$(if $(BR2_X86_CPU_HAS_SSSE3),yes,no) \
|
|
ax_cv_have_sse41_ext=$(if $(BR2_X86_CPU_HAS_SSE4),yes,no) \
|
|
ax_cv_have_sse42_ext=$(if $(BR2_X86_CPU_HAS_SSE42),yes,no) \
|
|
ax_cv_have_avx_ext=$(if $(BR2_X86_CPU_HAS_AVX),yes,no)
|
|
|
|
LIQUID_DSP_CFLAGS = $(TARGET_CFLAGS)
|
|
LIQUID_DSP_LDFLAGS = $(TARGET_LDFLAGS)
|
|
|
|
# Speed over accuracy trade off
|
|
ifeq ($(BR2_PACKAGE_LIQUID_DSP_FAST),y)
|
|
LIQUID_DSP_CFLAGS += -ffast-math
|
|
endif
|
|
|
|
# use FFTW instead of built-in FFT
|
|
ifeq ($(BR2_PACKAGE_FFTW_PRECISION_SINGLE),y)
|
|
LIQUID_DSP_LDFLAGS += -lfftw3f
|
|
LIQUID_DSP_DEPENDENCIES += fftw
|
|
endif
|
|
|
|
# disable altivec, it has build issues
|
|
ifeq ($(BR2_powerpc)$(BR2_powerpc64)$(BR2_powerpc64le),y)
|
|
LIQUID_DSP_CONF_OPTS += --enable-simdoverride
|
|
endif
|
|
|
|
LIQUID_DSP_CONF_OPTS += \
|
|
CFLAGS="$(LIQUID_DSP_CFLAGS)" \
|
|
LDFLAGS="$(LIQUID_DSP_LDFLAGS)"
|
|
|
|
$(eval $(autotools-package))
|