gnuradio: add zeromq support
authorGwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Mon, 25 Jun 2018 19:12:37 +0000 (21:12 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 1 Jul 2018 19:10:07 +0000 (21:10 +0200)
This patch adds support for sink/source GNURadio blocks to send/receive
zeromq data stream.

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/gnuradio/Config.in
package/gnuradio/gnuradio.mk

index 178bdc8861fb5b6e7b7c2d7e28371647fba5fef1..d2892faff2f0d6f531d785b25bfab5bcf6eb2d01 100644 (file)
@@ -69,6 +69,13 @@ config BR2_PACKAGE_GNURADIO_UTILS
        help
          Misc python utilities
 
+config BR2_PACKAGE_GNURADIO_ZEROMQ
+       bool "gr-zeromq support"
+       select BR2_PACKAGE_CPPZMQ
+       select BR2_PACKAGE_PYTHON_PYZMQ if BR2_PACKAGE_GNURADIO_PYTHON
+       help
+         zeromq communication support
+
 comment "gr-fft, -filter, -analog, -channels, -digital, -trellis, -pager, -qtgui depends fftw's single precision"
        depends on !BR2_PACKAGE_FFTW_PRECISION_SINGLE
 
index e79f848388cb1230ebd17c9d5473f1ca636ca604..9573b65b73d00c932b3786ce34dc75b9db41462a 100644 (file)
@@ -147,4 +147,14 @@ else
 GNURADIO_CONF_OPTS += -DENABLE_GR_UTILS=OFF
 endif
 
+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
+
 $(eval $(cmake-package))