2015-10-09 19:20:16 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# liquid-dsp
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-07-30 18:18:45 +02:00
|
|
|
LIQUID_DSP_VERSION = v1.3.0
|
2015-10-09 19:20:16 +02:00
|
|
|
LIQUID_DSP_SITE = $(call github,jgaeddert,liquid-dsp,$(LIQUID_DSP_VERSION))
|
|
|
|
LIQUID_DSP_LICENSE = MIT
|
2015-10-12 00:06:32 +02:00
|
|
|
LIQUID_DSP_LICENSE_FILES = LICENSE
|
2015-10-09 19:20:16 +02:00
|
|
|
LIQUID_DSP_INSTALL_STAGING = YES
|
|
|
|
LIQUID_DSP_AUTORECONF = YES
|
|
|
|
|
2015-10-14 10:43:54 +02:00
|
|
|
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)
|
|
|
|
|
2015-10-09 19:20:16 +02:00
|
|
|
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
|
2019-01-21 14:51:09 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_FFTW_SINGLE),y)
|
2015-10-09 19:20:16 +02:00
|
|
|
LIQUID_DSP_LDFLAGS += -lfftw3f
|
2019-01-21 14:51:09 +01:00
|
|
|
LIQUID_DSP_DEPENDENCIES += fftw-single
|
2015-10-09 19:20:16 +02:00
|
|
|
endif
|
|
|
|
|
2015-11-10 15:10:05 +01:00
|
|
|
# disable altivec, it has build issues
|
2016-12-05 04:30:57 +01:00
|
|
|
ifeq ($(BR2_powerpc)$(BR2_powerpc64)$(BR2_powerpc64le),y)
|
2015-11-10 15:10:05 +01:00
|
|
|
LIQUID_DSP_CONF_OPTS += --enable-simdoverride
|
|
|
|
endif
|
|
|
|
|
2015-10-09 19:20:16 +02:00
|
|
|
LIQUID_DSP_CONF_OPTS += \
|
|
|
|
CFLAGS="$(LIQUID_DSP_CFLAGS)" \
|
|
|
|
LDFLAGS="$(LIQUID_DSP_LDFLAGS)"
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|