2022-02-08 17:24:08 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# volk
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2023-02-21 15:40:18 +01:00
|
|
|
VOLK_VERSION = 3.0.0
|
2022-02-08 17:24:08 +01:00
|
|
|
VOLK_SITE = https://github.com/gnuradio/volk/releases/download/v$(VOLK_VERSION)
|
|
|
|
VOLK_SOURCE = volk-$(VOLK_VERSION).tar.xz
|
2023-02-21 15:40:18 +01:00
|
|
|
VOLK_LICENSE = LGPL-3.0+
|
|
|
|
VOLK_LICENSE_FILES = COPYING
|
2022-02-08 17:24:08 +01:00
|
|
|
|
|
|
|
VOLK_SUPPORTS_IN_SOURCE_BUILD = NO
|
|
|
|
|
|
|
|
# host-python-mako are needed for volk to compile
|
2022-09-27 10:05:49 +02:00
|
|
|
VOLK_DEPENDENCIES = host-python3 host-python-mako
|
2022-02-08 17:24:08 +01:00
|
|
|
|
|
|
|
VOLK_CONF_OPTS = \
|
|
|
|
-DPYTHON_EXECUTABLE=$(HOST_DIR)/bin/python3 \
|
|
|
|
-DENABLE_MODTOOL=OFF \
|
|
|
|
-DENABLE_TESTING=OFF \
|
|
|
|
-DENABLE_PROFILING=OFF \
|
|
|
|
-DVOLK_PYTHON_DIR=lib/python$(PYTHON3_VERSION_MAJOR)/site-packages
|
|
|
|
|
|
|
|
# For third-party blocks, the volk library is mandatory at
|
|
|
|
# compile time.
|
|
|
|
VOLK_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
|
|
VOLK_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ORC),y)
|
|
|
|
VOLK_DEPENDENCIES += orc
|
|
|
|
VOLK_CONF_OPTS += -DENABLE_ORC=ON
|
|
|
|
else
|
|
|
|
VOLK_CONF_OPTS += -DENABLE_ORC=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|