2022-02-08 17:24:08 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# volk
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-10-01 23:37:08 +02:00
|
|
|
VOLK_VERSION = 2.5.2
|
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
|
|
|
|
# See https://github.com/gnuradio/volk/tree/v2.5.1#license for some
|
|
|
|
# details on the licensing.
|
2022-10-02 13:35:59 +02:00
|
|
|
VOLK_LICENSE = GPL-3.0+, LGPL-3.0+
|
2022-02-08 17:24:08 +01:00
|
|
|
VOLK_LICENSE_FILES = COPYING COPYING-LGPL
|
|
|
|
|
|
|
|
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))
|