2015-03-13 09:24:10 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# gnuradio
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-10-19 15:43:28 +02:00
|
|
|
GNURADIO_VERSION = 3.10.4.0
|
|
|
|
GNURADIO_SITE = $(call github,gnuradio,gnuradio,v$(GNURADIO_VERSION))
|
2017-03-30 15:43:33 +02:00
|
|
|
GNURADIO_LICENSE = GPL-3.0+
|
2015-03-13 09:24:10 +01:00
|
|
|
GNURADIO_LICENSE_FILES = COPYING
|
|
|
|
|
|
|
|
GNURADIO_SUPPORTS_IN_SOURCE_BUILD = NO
|
|
|
|
|
|
|
|
GNURADIO_DEPENDENCIES = \
|
2021-10-26 23:47:03 +02:00
|
|
|
host-python3 \
|
2020-01-17 12:02:29 +01:00
|
|
|
boost \
|
|
|
|
log4cpp \
|
2022-02-08 17:24:09 +01:00
|
|
|
gmp \
|
2022-10-19 15:43:28 +02:00
|
|
|
spdlog \
|
2022-02-08 17:24:09 +01:00
|
|
|
volk
|
2015-03-13 09:24:10 +01:00
|
|
|
|
|
|
|
GNURADIO_CONF_OPTS = \
|
2021-11-29 17:50:01 +01:00
|
|
|
-DPYTHON_EXECUTABLE=$(HOST_DIR)/bin/python3 \
|
2015-03-13 09:24:10 +01:00
|
|
|
-DENABLE_DEFAULT=OFF \
|
|
|
|
-DENABLE_VOLK=ON \
|
2019-02-06 15:10:43 +01:00
|
|
|
-DENABLE_GNURADIO_RUNTIME=ON \
|
2022-02-08 17:24:09 +01:00
|
|
|
-DENABLE_INTERNAL_VOLK=OFF \
|
2020-01-17 12:02:29 +01:00
|
|
|
-DENABLE_TESTING=OFF \
|
2019-02-06 21:16:03 +01:00
|
|
|
-DXMLTO_EXECUTABLE=NOTFOUND
|
2015-03-13 09:24:10 +01:00
|
|
|
|
|
|
|
# For third-party blocks, the gnuradio libraries are mandatory at
|
|
|
|
# compile time.
|
|
|
|
GNURADIO_INSTALL_STAGING = YES
|
|
|
|
|
2017-07-05 19:23:01 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
|
|
GNURADIO_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
|
|
|
|
endif
|
|
|
|
|
2020-01-04 19:30:58 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ORC),y)
|
|
|
|
GNURADIO_DEPENDENCIES += orc
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_ORC=ON
|
|
|
|
else
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_ORC=OFF
|
|
|
|
endif
|
|
|
|
|
2015-04-10 12:01:54 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GNURADIO_ANALOG),y)
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_ANALOG=ON
|
|
|
|
else
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_ANALOG=OFF
|
|
|
|
endif
|
|
|
|
|
2016-04-29 10:12:12 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GNURADIO_AUDIO),y)
|
|
|
|
ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
|
|
|
|
GNURADIO_DEPENDENCIES += alsa-lib
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_PORTAUDIO),y)
|
|
|
|
GNURADIO_DEPENDENCIES += portaudio
|
|
|
|
endif
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_AUDIO=ON
|
|
|
|
else
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_AUDIO=OFF
|
|
|
|
endif
|
|
|
|
|
2015-03-13 09:24:10 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GNURADIO_BLOCKS),y)
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_BLOCKS=ON
|
|
|
|
else
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_BLOCKS=OFF
|
|
|
|
endif
|
|
|
|
|
2015-04-10 12:01:54 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GNURADIO_CHANNELS),y)
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_CHANNELS=ON
|
|
|
|
else
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_CHANNELS=OFF
|
|
|
|
endif
|
|
|
|
|
2016-04-29 10:12:13 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GNURADIO_CTRLPORT),y)
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_CTRLPORT=ON
|
|
|
|
else
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_CTRLPORT=OFF
|
|
|
|
endif
|
|
|
|
|
2015-04-10 12:01:54 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GNURADIO_DIGITAL),y)
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_DIGITAL=ON
|
|
|
|
else
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_DIGITAL=OFF
|
|
|
|
endif
|
|
|
|
|
2020-06-05 15:24:32 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GNURADIO_DTV),y)
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_DTV=ON
|
|
|
|
else
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_DTV=OFF
|
|
|
|
endif
|
|
|
|
|
2015-04-10 12:01:54 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GNURADIO_FEC),y)
|
2016-11-22 10:18:21 +01:00
|
|
|
GNURADIO_DEPENDENCIES += gsl
|
2015-04-10 12:01:54 +02:00
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_FEC=ON
|
|
|
|
else
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_FEC=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GNURADIO_FFT),y)
|
2019-01-21 14:51:02 +01:00
|
|
|
GNURADIO_DEPENDENCIES += fftw-single
|
2015-04-10 12:01:54 +02:00
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_FFT=ON
|
|
|
|
else
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_FFT=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_GNURADIO_FILTER),y)
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_FILTER=ON
|
|
|
|
else
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_FILTER=OFF
|
|
|
|
endif
|
|
|
|
|
2015-03-13 09:24:10 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GNURADIO_PYTHON),y)
|
2022-10-19 15:43:28 +02:00
|
|
|
GNURADIO_DEPENDENCIES += python3 python-pybind \
|
|
|
|
host-python-numpy host-python-packaging
|
2015-03-13 09:24:10 +01:00
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_PYTHON=ON
|
2020-04-12 17:26:10 +02:00
|
|
|
# mandatory to install python modules in site-packages and to use
|
|
|
|
# correct path for python libraries
|
|
|
|
GNURADIO_CONF_OPTS += -DGR_PYTHON_RELATIVE=ON \
|
2022-02-06 11:29:55 +01:00
|
|
|
-DGR_PYTHON_DIR=lib/python$(PYTHON3_VERSION_MAJOR)/site-packages
|
2015-03-13 09:24:10 +01:00
|
|
|
else
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_PYTHON=OFF
|
|
|
|
endif
|
|
|
|
|
2020-06-05 15:24:31 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GNURADIO_QTGUI),y)
|
|
|
|
GNURADIO_DEPENDENCIES += qt5base python-pyqt5 qwt
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_QTGUI=ON
|
|
|
|
else
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_QTGUI=OFF
|
|
|
|
endif
|
|
|
|
|
2015-04-10 12:01:54 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GNURADIO_TRELLIS),y)
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_TRELLIS=ON
|
|
|
|
else
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_TRELLIS=OFF
|
|
|
|
endif
|
|
|
|
|
2021-02-08 16:19:15 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GNURADIO_UHD),y)
|
|
|
|
GNURADIO_DEPENDENCIES += uhd
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_UHD=ON
|
|
|
|
else
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_UHD=OFF
|
|
|
|
endif
|
|
|
|
|
2015-04-10 12:01:54 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GNURADIO_UTILS),y)
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_UTILS=ON
|
|
|
|
else
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_UTILS=OFF
|
|
|
|
endif
|
|
|
|
|
2018-06-25 21:12:37 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GNURADIO_ZEROMQ),y)
|
|
|
|
GNURADIO_DEPENDENCIES += cppzmq
|
|
|
|
ifeq ($(BR2_PACKAGE_GNURADIO_PYTHON),y)
|
|
|
|
GNURADIO_DEPENDENCIES += python-pyzmq
|
|
|
|
endif
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_ZEROMQ=ON
|
|
|
|
else
|
|
|
|
GNURADIO_CONF_OPTS += -DENABLE_GR_ZEROMQ=OFF
|
|
|
|
endif
|
|
|
|
|
2015-03-13 09:24:10 +01:00
|
|
|
$(eval $(cmake-package))
|