All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/rtl_433: new package
@ 2021-07-24 20:28 Fabrice Fontaine
  0 siblings, 0 replies; only message in thread
From: Fabrice Fontaine @ 2021-07-24 20:28 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine

rtl_433 (despite the name) is a generic data receiver, mainly for the
433.92 MHz, 868 MHz (SRD), 315 MHz, 345 MHz, and 915 MHz ISM bands.

https://github.com/merbanan/rtl_433

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 DEVELOPERS                   |  1 +
 package/Config.in            |  1 +
 package/rtl_433/Config.in    | 16 ++++++++++++++++
 package/rtl_433/rtl_433.hash |  4 ++++
 package/rtl_433/rtl_433.mk   | 27 +++++++++++++++++++++++++++
 5 files changed, 49 insertions(+)
 create mode 100644 package/rtl_433/Config.in
 create mode 100644 package/rtl_433/rtl_433.hash
 create mode 100644 package/rtl_433/rtl_433.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index 76dcafd0dd..9799e060e9 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -914,6 +914,7 @@ F:	package/python-jedi/
 F:	package/python-parso/
 F:	package/python-yatl/
 F:	package/rocksdb/
+F:	package/rtl_433/
 F:	package/rygel/
 F:	package/safeclib/
 F:	package/snort3/
diff --git a/package/Config.in b/package/Config.in
index b9d0414385..7a713049e7 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2071,6 +2071,7 @@ menu "Miscellaneous"
 	source "package/proj/Config.in"
 	source "package/qemu/Config.in"
 	source "package/qpdf/Config.in"
+	source "package/rtl_433/Config.in"
 	source "package/shared-mime-info/Config.in"
 	source "package/sunwait/Config.in"
 	source "package/taskd/Config.in"
diff --git a/package/rtl_433/Config.in b/package/rtl_433/Config.in
new file mode 100644
index 0000000000..4b1a26b1d9
--- /dev/null
+++ b/package/rtl_433/Config.in
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_RTL_433
+	bool "rtl_433"
+	depends on BR2_USE_MMU # fork()
+	depends on !BR2_STATIC_LIBS
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	select BR2_PACKAGE_LIBOPENSSL_ENABLE_PSK if BR2_PACKAGE_LIBOPENSSL
+	help
+	  rtl_433 (despite the name) is a generic data receiver, mainly
+ 	  for the 433.92 MHz, 868 MHz (SRD), 315 MHz, 345 MHz, and 915
+	  MHz ISM bands.
+
+	  https://github.com/merbanan/rtl_433
+
+comment "rtl_433 needs a toolchain w/ dynamic library, threads"
+	depends on BR2_USE_MMU
+	depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/rtl_433/rtl_433.hash b/package/rtl_433/rtl_433.hash
new file mode 100644
index 0000000000..9ace444b78
--- /dev/null
+++ b/package/rtl_433/rtl_433.hash
@@ -0,0 +1,4 @@
+# Locally calculated
+sha256  d8b87535b4e65264018771b6b288259d81137482fc938d01e0c03ac071c03bd5  rtl_433-21.05.tar.gz
+# License file, locally calculated
+sha256  ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6  COPYING
diff --git a/package/rtl_433/rtl_433.mk b/package/rtl_433/rtl_433.mk
new file mode 100644
index 0000000000..fc32aa679b
--- /dev/null
+++ b/package/rtl_433/rtl_433.mk
@@ -0,0 +1,27 @@
+################################################################################
+#
+# rtl_433
+#
+################################################################################
+
+RTL_433_VERSION = 21.05
+RTL_433_SITE = $(call github,merbanan,rtl_433,$(RTL_433_VERSION))
+RTL_433_LICENSE = GPL-2.0+
+RTL_433_LICENSE_FILES = COPYING
+RTL_433_CONF_OPTS = -DENABLE_SOAPYSDR=OFF
+
+ifeq ($(BR2_PACKAGE_LIBRTLSDR),y)
+RTL_433_DEPENDENCIES += librtlsdr
+RTL_433_CONF_OPTS += -DENABLE_RTLSDR=ON
+else
+RTL_433_CONF_OPTS += -DENABLE_RTLSDR=OFF
+endif
+
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+RTL_433_DEPENDENCIES += openssl
+RTL_433_CONF_OPTS += -DENABLE_OPENSSL=ON
+else
+RTL_433_CONF_OPTS += -DENABLE_OPENSSL=OFF
+endif
+
+$(eval $(cmake-package))
-- 
2.30.2

_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-24 20:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-24 20:28 [Buildroot] [PATCH 1/1] package/rtl_433: new package Fabrice Fontaine

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.