f931ac2819
Drop BR2_PACKAGE_GR_OSMOSDR_PYTHON as disabling python will raise the following build failure if BR2_PACKAGE_GNURADIO_PYTHON is set since bump of gnuradio to version 3.10.4.0 in commite37c110bea
and51d3ad9732
: CMake Error at lib/CMakeLists.txt:51 (add_library): Target "gnuradio-osmosdr" links to target "Python::Module" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing? No entry in Config.in.legacy is needed as python support in gr-osmosdr will now automatically be enabled if BR2_PACKAGE_GNURADIO_PYTHON is set Fixes: - http://autobuild.buildroot.org/results/49e9f7bf8bfc7008688c1a3bc3744b7d3be3ce18 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
58 lines
1.4 KiB
Makefile
58 lines
1.4 KiB
Makefile
################################################################################
|
|
#
|
|
# gr-osmosdr
|
|
#
|
|
################################################################################
|
|
|
|
GR_OSMOSDR_VERSION = 0.2.4
|
|
GR_OSMOSDR_SITE = $(call github,osmocom,gr-osmosdr,v$(GR_OSMOSDR_VERSION))
|
|
GR_OSMOSDR_LICENSE = GPL-3.0+
|
|
GR_OSMOSDR_LICENSE_FILES = COPYING
|
|
|
|
# gr-osmosdr prevents doing an in-source-tree build
|
|
GR_OSMOSDR_SUPPORTS_IN_SOURCE_BUILD = NO
|
|
|
|
GR_OSMOSDR_DEPENDENCIES = gnuradio host-python3
|
|
|
|
GR_OSMOSDR_CONF_OPTS = \
|
|
-DENABLE_DEFAULT=OFF \
|
|
-DENABLE_DOXYGEN=OFF
|
|
|
|
# For third-party blocks, the gr-osmosdr libraries are mandatory at
|
|
# compile time.
|
|
GR_OSMOSDR_INSTALL_STAGING = YES
|
|
|
|
ifeq ($(BR2_PACKAGE_GNURADIO_PYTHON),y)
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_PYTHON=ON
|
|
GR_OSMOSDR_DEPENDENCIES += python3
|
|
else
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_PYTHON=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GR_OSMOSDR_IQFILE),y)
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_FILE=ON
|
|
else
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_FILE=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GR_OSMOSDR_RTLSDR),y)
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_RTL=ON
|
|
GR_OSMOSDR_DEPENDENCIES += librtlsdr
|
|
else
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_RTL=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GR_OSMOSDR_RTLSDR_TCP),y)
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_RTL_TCP=ON
|
|
else
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_RTL_TCP=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GR_OSMOSDR_RFSPACE),y)
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_RFSPACE=ON
|
|
else
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_RFSPACE=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|