* [Buildroot] [PATCH 1/1] package/gr-osmosdr: add support for HACKRF receivers
@ 2023-02-23 20:18 Martin Böh via buildroot
2023-02-23 22:33 ` Thomas Petazzoni via buildroot
2023-08-30 20:39 ` Thomas Petazzoni via buildroot
0 siblings, 2 replies; 3+ messages in thread
From: Martin Böh via buildroot @ 2023-02-23 20:18 UTC (permalink / raw)
To: buildroot; +Cc: Martin Böh, Gwenhael Goavec-Merou
Signed-off-by: Martin Böh <contact@martb.dev>
---
package/gr-osmosdr/Config.in | 6 ++++++
package/gr-osmosdr/gr-osmosdr.mk | 7 +++++++
2 files changed, 13 insertions(+)
diff --git a/package/gr-osmosdr/Config.in b/package/gr-osmosdr/Config.in
index 04fa10be80..05b5c46a63 100644
--- a/package/gr-osmosdr/Config.in
+++ b/package/gr-osmosdr/Config.in
@@ -43,4 +43,10 @@ config BR2_PACKAGE_GR_OSMOSDR_RFSPACE
help
Enable RFSPACE Receivers support
+config BR2_PACKAGE_GR_OSMOSDR_HACKRF
+ bool "Osmocom HACKRF support"
+ depends on BR2_PACKAGE_HACKRF
+ help
+ Enable Osmocom HACKRF support
+
endif
diff --git a/package/gr-osmosdr/gr-osmosdr.mk b/package/gr-osmosdr/gr-osmosdr.mk
index b96a32a221..78c7fa30da 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))
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/gr-osmosdr: add support for HACKRF receivers
2023-02-23 20:18 [Buildroot] [PATCH 1/1] package/gr-osmosdr: add support for HACKRF receivers Martin Böh via buildroot
@ 2023-02-23 22:33 ` Thomas Petazzoni via buildroot
2023-08-30 20:39 ` Thomas Petazzoni via buildroot
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-02-23 22:33 UTC (permalink / raw)
To: Martin Böh via buildroot; +Cc: Gwenhael Goavec-Merou, Martin Böh
Hello Martin,
On Thu, 23 Feb 2023 21:18:17 +0100
Martin Böh via buildroot <buildroot@buildroot.org> wrote:
> +config BR2_PACKAGE_GR_OSMOSDR_HACKRF
> + bool "Osmocom HACKRF support"
> + depends on BR2_PACKAGE_HACKRF
We would normally use a select BR2_PACKAGE_HACKRF here, which means you
have to replicate the depends on from hackrf:
depends on !BR2_STATIC_LIBS # hackrf
depends on BR2_TOOLCHAIN_HAS_THREADS # hackrf
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # hackrf
and the corresponding Config.in comment:
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
Best regards,
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [Buildroot] [PATCH 1/1] package/gr-osmosdr: add support for HACKRF receivers
2023-02-23 20:18 [Buildroot] [PATCH 1/1] package/gr-osmosdr: add support for HACKRF receivers Martin Böh via buildroot
2023-02-23 22:33 ` Thomas Petazzoni via buildroot
@ 2023-08-30 20:39 ` Thomas Petazzoni via buildroot
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-08-30 20:39 UTC (permalink / raw)
To: Martin Böh via buildroot; +Cc: Gwenhael Goavec-Merou, Martin Böh
Hello Martin,
On Thu, 23 Feb 2023 21:18:17 +0100
Martin Böh via buildroot <buildroot@buildroot.org> wrote:
> Signed-off-by: Martin Böh <contact@martb.dev>
> ---
> package/gr-osmosdr/Config.in | 6 ++++++
> package/gr-osmosdr/gr-osmosdr.mk | 7 +++++++
> 2 files changed, 13 insertions(+)
Applied to next after changing the "depends on" to a "select" like I
suggested in my review back in February.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-08-30 20:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-23 20:18 [Buildroot] [PATCH 1/1] package/gr-osmosdr: add support for HACKRF receivers Martin Böh via buildroot
2023-02-23 22:33 ` Thomas Petazzoni via buildroot
2023-08-30 20:39 ` Thomas Petazzoni via buildroot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.