* [Buildroot] [git commit branch/next] package/gr-osmosdr: add support for HACKRF receivers
@ 2023-08-30 20:38 Thomas Petazzoni via buildroot
0 siblings, 0 replies; only message in thread
From: Thomas Petazzoni via buildroot @ 2023-08-30 20:38 UTC (permalink / raw)
To: buildroot
[-- Attachment #1: Type: text/plain, Size: 1655 bytes --]
commit: https://git.buildroot.net/buildroot/commit/?id=060b88ace6772ceb016a1ebe45d415f10c194c6c
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next
Signed-off-by: Martin Böh <contact@martb.dev>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
package/gr-osmosdr/Config.in | 13 +++++++++++++
package/gr-osmosdr/gr-osmosdr.mk | 7 +++++++
2 files changed, 20 insertions(+)
diff --git a/package/gr-osmosdr/Config.in b/package/gr-osmosdr/Config.in
index d83de75282..72d3c3f481 100644
--- a/package/gr-osmosdr/Config.in
+++ b/package/gr-osmosdr/Config.in
@@ -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
diff --git a/package/gr-osmosdr/gr-osmosdr.mk b/package/gr-osmosdr/gr-osmosdr.mk
index 6011a67539..8491c005d8 100644
--- a/package/gr-osmosdr/gr-osmosdr.mk
+++ b/package/gr-osmosdr/gr-osmosdr.mk
@@ -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))
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-30 20:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-30 20:38 [Buildroot] [git commit branch/next] package/gr-osmosdr: add support for HACKRF receivers Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).