2016-02-02 18:37:42 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# gr-osmosdr
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-12-28 23:40:43 +01:00
|
|
|
GR_OSMOSDR_VERSION = 0.2.4
|
2020-04-11 11:33:53 +02:00
|
|
|
GR_OSMOSDR_SITE = $(call github,osmocom,gr-osmosdr,v$(GR_OSMOSDR_VERSION))
|
2017-03-30 15:43:33 +02:00
|
|
|
GR_OSMOSDR_LICENSE = GPL-3.0+
|
2016-02-02 18:37:42 +01:00
|
|
|
GR_OSMOSDR_LICENSE_FILES = COPYING
|
|
|
|
|
|
|
|
# gr-osmosdr prevents doing an in-source-tree build
|
|
|
|
GR_OSMOSDR_SUPPORTS_IN_SOURCE_BUILD = NO
|
|
|
|
|
2020-04-11 11:33:53 +02:00
|
|
|
GR_OSMOSDR_DEPENDENCIES = gnuradio host-python3
|
2016-02-02 18:37:42 +01:00
|
|
|
|
2020-03-08 20:47:47 +01:00
|
|
|
GR_OSMOSDR_CONF_OPTS = \
|
|
|
|
-DENABLE_DEFAULT=OFF \
|
|
|
|
-DENABLE_DOXYGEN=OFF
|
2016-02-02 18:37:42 +01:00
|
|
|
|
|
|
|
# For third-party blocks, the gr-osmosdr libraries are mandatory at
|
|
|
|
# compile time.
|
|
|
|
GR_OSMOSDR_INSTALL_STAGING = YES
|
|
|
|
|
2023-03-02 23:12:17 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GNURADIO_PYTHON),y)
|
2024-05-17 19:12:58 +02:00
|
|
|
GR_OSMOSDR_CONF_OPTS += \
|
|
|
|
-DENABLE_PYTHON=ON \
|
|
|
|
-DPYTHON_INCLUDE_DIRS=$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)
|
package/gr-osmosdr: add missing host-python-six dependency to python support
Osmosdr failed to build docs when python support is enabled.
[ 41%] Copying osmosdr docstring templates as pybind headers ...
Traceback (most recent call last):
File "/home/martb/Schreibtisch/DiscoSAT/satos/output/build/gr-osmosdr-0.2.4/docs/doxygen/update_pydoc.py", line 22, in <module>
from doxyxml import DoxyIndex, DoxyClass, DoxyFriend, DoxyFunction, DoxyFile
File "/home/martb/Schreibtisch/DiscoSAT/satos/output/build/gr-osmosdr-0.2.4/docs/doxygen/doxyxml/__init__.py", line 69, in <module>
from .doxyindex import DoxyIndex, DoxyFunction, DoxyParam, DoxyClass, DoxyFile, DoxyNamespace, DoxyGroup, DoxyFriend, DoxyOther
File "/home/martb/Schreibtisch/DiscoSAT/satos/output/build/gr-osmosdr-0.2.4/docs/doxygen/doxyxml/doxyindex.py", line 31, in <module>
from .generated import index
File "/home/martb/Schreibtisch/DiscoSAT/satos/output/build/gr-osmosdr-0.2.4/docs/doxygen/doxyxml/generated/index.py", line 13, in <module>
from . import compound
File "/home/martb/Schreibtisch/DiscoSAT/satos/output/build/gr-osmosdr-0.2.4/docs/doxygen/doxyxml/generated/compound.py", line 15, in <module>
from . import compoundsuper as supermod
File "/home/martb/Schreibtisch/DiscoSAT/satos/output/build/gr-osmosdr-0.2.4/docs/doxygen/doxyxml/generated/compoundsuper.py", line 15, in <module>
import six
ModuleNotFoundError: No module named 'six'
make[2]: *** [python/bindings/CMakeFiles/osmosdr_docstrings.dir/build.make:73: python/bindings/docstring_status] Fehler 1
make[1]: *** [CMakeFiles/Makefile2:332: python/bindings/CMakeFiles/osmosdr_docstrings.dir/all] Fehler 2
Fixes:
http://autobuild.buildroot.net/results/b60e339e52fbc7ed7607a94381aaab6ec64b7a99/
Signed-off-by: Martin Böh <contact@martb.dev>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit cfda1f0b87ebfb7686b82f319c531d4d28fdfd67)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2023-02-23 21:17:33 +01:00
|
|
|
GR_OSMOSDR_DEPENDENCIES += python3 host-python-six
|
2016-02-02 18:37:42 +01:00
|
|
|
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
|
|
|
|
|
2023-02-23 21:18:17 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GR_OSMOSDR_HACKRF),y)
|
|
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_HACKRF=ON
|
|
|
|
GR_OSMOSDR_DEPENDENCIES += hackrf
|
|
|
|
else
|
|
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_HACKRF=OFF
|
|
|
|
endif
|
|
|
|
|
2016-02-02 18:37:42 +01:00
|
|
|
$(eval $(cmake-package))
|