package/gr-osmosdr: add support for HACKRF receivers

Signed-off-by: Martin Böh <contact@martb.dev>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Martin Böh 2023-02-23 21:18:17 +01:00 committed by Thomas Petazzoni
parent bea949996e
commit 060b88ace6
2 changed files with 20 additions and 0 deletions

View File

@ -36,4 +36,17 @@ config BR2_PACKAGE_GR_OSMOSDR_RFSPACE
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

View File

@ -54,4 +54,11 @@ else
GR_OSMOSDR_CONF_OPTS += -DENABLE_RFSPACE=OFF
endif
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
$(eval $(cmake-package))