config BR2_PACKAGE_GR_OSMOSDR
	bool "gr-osmosdr"
	depends on BR2_PACKAGE_GNURADIO
	select BR2_PACKAGE_GNURADIO_BLOCKS
	select BR2_PACKAGE_GNURADIO_FFT
	select BR2_PACKAGE_GNURADIO_FILTER
	help
	  GNU Radio block for interfacing with various radio hardware

	  http://osmocom.org/projects/osmosdr

if BR2_PACKAGE_GR_OSMOSDR

config BR2_PACKAGE_GR_OSMOSDR_IQFILE
	bool "IQ File Source support"
	help
	  Enable IQ File Source support

config BR2_PACKAGE_GR_OSMOSDR_RTLSDR
	bool "Osmocom RTLSDR support"
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # librtlsdr -> libusb
	select BR2_PACKAGE_LIBRTLSDR
	help
	  Enable Osmocom RTLSDR support

comment "Osmocom RTLSDR support needs a toolchain w/ gcc >= 4.9"
	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9

config BR2_PACKAGE_GR_OSMOSDR_RTLSDR_TCP
	bool "RTLSDR TCP Client support"
	help
	  Enable RTLSDR TCP client support

config BR2_PACKAGE_GR_OSMOSDR_RFSPACE
	bool "RFSPACE Receivers support"
	help
	  Enable RFSPACE Receivers support

config BR2_PACKAGE_GR_OSMOSDR_HACKRF
	bool "Osmocom HACKRF support"
	depends on !BR2_STATIC_LIBS # hackrf
	depends on BR2_TOOLCHAIN_HAS_THREADS # hackrf
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # hackrf
	select BR2_PACKAGE_HACKRF
	help
	  Enable Osmocom HACKRF support

comment "hackrf support needs a toolchain w/ threads, dynamic library, gcc >= 4.9"
	depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || \
		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9

endif
