package/gnuradio: add gr-uhd option
authorGwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Mon, 8 Feb 2021 15:19:15 +0000 (16:19 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 9 Feb 2021 21:39:07 +0000 (22:39 +0100)
GNURadio has a block to use USRP, through UHD, to receive or transmit RF
signals.

Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/gnuradio/Config.in
package/gnuradio/gnuradio.mk

index c7b01b454b53c2d623070b05232787a6f8da3b46..738088802ee0fd733019bd72a96a9c364c59de16 100644 (file)
@@ -156,4 +156,13 @@ config BR2_PACKAGE_GNURADIO_TRELLIS
        help
          Trellis coded modulation blocks
 
+config BR2_PACKAGE_GNURADIO_UHD
+       bool "gr-uhd support"
+       select BR2_PACKAGE_UHD
+       select BR2_PACKAGE_GNURADIO_ANALOG
+       select BR2_PACKAGE_GNURADIO_BLOCKS
+       select BR2_PACKAGE_GNURADIO_FILTER
+       help
+         UHD support
+
 endif
index 0a818cfc24016204608cbb6a77e7d54c093801f3..1f4458db929a8a51bb497c98aea106f41bd7d0ba 100644 (file)
@@ -149,6 +149,13 @@ else
 GNURADIO_CONF_OPTS += -DENABLE_GR_TRELLIS=OFF
 endif
 
+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
+
 ifeq ($(BR2_PACKAGE_GNURADIO_UTILS),y)
 GNURADIO_CONF_OPTS += -DENABLE_GR_UTILS=ON
 else