mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v2] librtlsdr: New package. Version 0.8
@ 2021-11-18 13:49 Christian Melki
  2021-11-18 13:49 ` [ptxdist] [PATCH v2] dump1090fa: New package. Version 6.1 Christian Melki
  2021-11-29 13:51 ` [ptxdist] [APPLIED] librtlsdr: New package. Version 0.8 Michael Olbrich
  0 siblings, 2 replies; 5+ messages in thread
From: Christian Melki @ 2021-11-18 13:49 UTC (permalink / raw)
  To: ptxdist

librtlsdr is a library for using RealTek DVB-T receivers as
SDR (Software Defined Radio). This library is used by various
tools to tune into bands and decode radio data.

Signed-off-by: Christian Melki <christian.melki@t2data.com>
---
 rules/librtlsdr.in   | 29 +++++++++++++++++++
 rules/librtlsdr.make | 66 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 95 insertions(+)
 create mode 100644 rules/librtlsdr.in
 create mode 100644 rules/librtlsdr.make

diff --git a/rules/librtlsdr.in b/rules/librtlsdr.in
new file mode 100644
index 000000000..6f53ee7bb
--- /dev/null
+++ b/rules/librtlsdr.in
@@ -0,0 +1,29 @@
+## SECTION=system_libraries
+
+menuconfig LIBRTLSDR
+	tristate
+	prompt "librtlsdr		      "
+	select HOST_CMAKE
+	select LIBUSB
+	help
+	  Realtek SDR (Software Defined Radio) library.
+
+if LIBRTLSDR
+
+comment "Install options   ---"
+
+config LIBRTLSDR_TOOLS
+	bool
+	default y
+	prompt "Install tools		  "
+	help
+	  Installs rtl-sdr tools.
+
+config LIBRTLSDR_UDEV
+	bool
+	default y
+	prompt "Install udev rules	  "
+	help
+	  Installs udev rules.
+
+endif
diff --git a/rules/librtlsdr.make b/rules/librtlsdr.make
new file mode 100644
index 000000000..64f3492bd
--- /dev/null
+++ b/rules/librtlsdr.make
@@ -0,0 +1,66 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Christian Melki <christian.melki@t2data.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_LIBRTLSDR) += librtlsdr
+
+#
+# Paths and names
+#
+LIBRTLSDR_VERSION	:= 0.8.0
+LIBRTLSDR_MD5		:= 64f31f30f79cd91e4cd70b0a8edcff4e
+LIBRTLSDR		:= librtlsdr-$(LIBRTLSDR_VERSION)
+LIBRTLSDR_SUFFIX	:= tar.gz
+LIBRTLSDR_URL		:= https://github.com/librtlsdr/librtlsdr/archive/refs/tags/v$(LIBRTLSDR_VERSION).$(LIBRTLSDR_SUFFIX)
+LIBRTLSDR_SOURCE	:= $(SRCDIR)/$(LIBRTLSDR).$(LIBRTLSDR_SUFFIX)
+LIBRTLSDR_DIR		:= $(BUILDDIR)/$(LIBRTLSDR)
+LIBRTLSDR_LICENSE	:= GPL-2.0-only
+LIBRTLSDR_LICENSE_FILES	:= \
+	file://COPYING;md5=751419260aa954499f7abaabaa882bbe
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBRTLSDR_CONF_TOOL := cmake
+LIBRTLSDR_CONF_OPT := \
+	$(CROSS_CMAKE_USR) \
+	-DCMAKE_INSTALL_LIBDIR=/usr/$(CROSS_LIB_DIR) \
+	-DLIB_INSTALL_DIR=/usr/$(CROSS_LIB_DIR) \
+	-DENABLE_SHARED=ON \
+	-DINSTALL_UDEV_RULES=ON
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/librtlsdr.targetinstall:
+	@$(call targetinfo)
+	@$(call install_init, librtlsdr)
+	@$(call install_fixup, librtlsdr,PRIORITY,optional)
+	@$(call install_fixup, librtlsdr,SECTION,base)
+	@$(call install_fixup, librtlsdr,AUTHOR,"Christian Melki <christian.melki@t2data.com>")
+	@$(call install_fixup, librtlsdr,DESCRIPTION,missing)
+	@$(call install_lib, librtlsdr, 0, 0, 0644, librtlsdr)
+
+ifdef PTXCONF_LIBRTLSDR_TOOLS
+	@$(call install_glob, librtlsdr, 0, 0, -, /usr/bin, *rtl_*,)
+endif
+
+ifdef PTXCONF_LIBRTLSDR_UDEV
+	@$(call install_copy, librtlsdr, 0, 0, 0644, \
+		$(LIBRTLSDR_PKGDIR)/etc/udev/rules.d/rtl-sdr.rules, \
+		/usr/lib/udev/rules.d/81-rtl-sdr.rules)
+endif
+
+	@$(call install_finish, librtlsdr)
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.30.2


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ptxdist] [PATCH v2] dump1090fa: New package. Version 6.1
  2021-11-18 13:49 [ptxdist] [PATCH v2] librtlsdr: New package. Version 0.8 Christian Melki
@ 2021-11-18 13:49 ` Christian Melki
  2021-11-25 15:32   ` Michael Olbrich
  2021-11-29 13:51 ` [ptxdist] [APPLIED] librtlsdr: New package. Version 0.8 Michael Olbrich
  1 sibling, 1 reply; 5+ messages in thread
From: Christian Melki @ 2021-11-18 13:49 UTC (permalink / raw)
  To: ptxdist

dump1090 from FlightAware is an ADS-B decoder
(Automatic Dependent Surveillance-Broadcast).
ADS-B is used by aircrafts to signal their presence.
Using an RTL (very cheap) based SDR (Software Defined Radio),
you can easily build your own ADS-B decoder.

Signed-off-by: Christian Melki <christian.melki@t2data.com>
---
 .../dump1090fa-6.1/fix_cpufeatures_arch.patch | 61 ++++++++++++++
 patches/dump1090fa-6.1/series                 |  2 +
 rules/dump1090fa.in                           |  8 ++
 rules/dump1090fa.make                         | 82 +++++++++++++++++++
 4 files changed, 153 insertions(+)
 create mode 100644 patches/dump1090fa-6.1/fix_cpufeatures_arch.patch
 create mode 100644 patches/dump1090fa-6.1/series
 create mode 100644 rules/dump1090fa.in
 create mode 100644 rules/dump1090fa.make

diff --git a/patches/dump1090fa-6.1/fix_cpufeatures_arch.patch b/patches/dump1090fa-6.1/fix_cpufeatures_arch.patch
new file mode 100644
index 000000000..270a35846
--- /dev/null
+++ b/patches/dump1090fa-6.1/fix_cpufeatures_arch.patch
@@ -0,0 +1,61 @@
+From 059e48b82beb4fb920cca977b02db1ceb48facb9 Mon Sep 17 00:00:00 2001
+From: Oliver Jowett <oliver.jowett@flightaware.com>
+Date: Thu, 23 Sep 2021 13:23:17 +0800
+Subject: [PATCH] Allow env vars (not only command line overrides) to set
+ CPUFEATURES_{ARCH,UNAME}. Change CPUFEATURES_{ARCH,UNAME} defaults to use
+ {ARCH,UNAME} values.
+
+Fixes #158
+---
+ Makefile             | 8 ++++++--
+ Makefile.cpufeatures | 4 ++--
+ 2 files changed, 8 insertions(+), 4 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index a85d154c5..9d81ed157 100644
+--- a/Makefile
++++ b/Makefile
+@@ -39,7 +39,11 @@ else
+   LIMESDR ?= no
+ endif
+ 
+-UNAME := $(shell uname)
++HOST_UNAME := $(shell uname)
++HOST_ARCH := $(shell uname -m)
++
++UNAME ?= $(HOST_UNAME)
++ARCH ?= $(HOST_ARCH)
+ 
+ ifeq ($(UNAME), Linux)
+   CPPFLAGS += -D_DEFAULT_SOURCE
+@@ -150,7 +154,6 @@ endif
+ ## starch (runtime DSP code selection) mix, architecture-specific
+ ##
+ 
+-ARCH ?= $(shell uname -m)
+ ifneq ($(CPUFEATURES),yes)
+   # need to be able to detect CPU features at runtime to enable any non-standard compiler flags
+   STARCH_MIX := generic
+@@ -180,6 +183,7 @@ include dsp/generated/makefile.$(STARCH_MIX)
+ showconfig:
+ 	@echo "Building with:" >&2
+ 	@echo "  Version string:  $(DUMP1090_VERSION)" >&2
++	@echo "  Architecture:    $(ARCH)" >&2
+ 	@echo "  DSP mix:         $(STARCH_MIX)" >&2
+ 	@echo "  RTLSDR support:  $(RTLSDR)" >&2
+ 	@echo "  BladeRF support: $(BLADERF)" >&2
+diff --git a/Makefile.cpufeatures b/Makefile.cpufeatures
+index 8c3b8418d..6b4289978 100644
+--- a/Makefile.cpufeatures
++++ b/Makefile.cpufeatures
+@@ -2,8 +2,8 @@
+ 
+ # cmake integration is a little tricky, so let's do this by hand for now
+ 
+-CPUFEATURES_UNAME := $(shell uname)
+-CPUFEATURES_ARCH := $(shell uname -m)
++CPUFEATURES_UNAME ?= $(UNAME)
++CPUFEATURES_ARCH ?= $(ARCH)
+ 
+ CPUFEATURES_OBJS := cpu_features/src/filesystem.o cpu_features/src/stack_line_reader.o cpu_features/src/string_view.o
+ CPUFEATURES_CFLAGS := -std=c99 -O -g -DSTACK_LINE_READER_BUFFER_SIZE=1024 -DNDEBUG
diff --git a/patches/dump1090fa-6.1/series b/patches/dump1090fa-6.1/series
new file mode 100644
index 000000000..cc3b46e66
--- /dev/null
+++ b/patches/dump1090fa-6.1/series
@@ -0,0 +1,2 @@
+fix_cpufeatures_arch.patch
+
diff --git a/rules/dump1090fa.in b/rules/dump1090fa.in
new file mode 100644
index 000000000..5738ba17e
--- /dev/null
+++ b/rules/dump1090fa.in
@@ -0,0 +1,8 @@
+## SECTION=networking
+
+menuconfig DUMP1090FA
+	tristate
+	prompt "dump1090fa		      "
+	select LIBRTLSDR
+	help
+	  FlightAware MODE-S/ADS-B decoder.
\ No newline at end of file
diff --git a/rules/dump1090fa.make b/rules/dump1090fa.make
new file mode 100644
index 000000000..88242b0fc
--- /dev/null
+++ b/rules/dump1090fa.make
@@ -0,0 +1,82 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Christian Melki <christian.melki@t2data.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_DUMP1090FA) += dump1090fa
+
+#
+# Paths and names
+#
+DUMP1090FA_VERSION		:= 6.1
+DUMP1090FA_MD5			:= a7cb661bc23974f8bf7650ce26b6e0be
+DUMP1090FA			:= dump1090fa-$(DUMP1090FA_VERSION)
+DUMP1090FA_SUFFIX		:= tar.gz
+DUMP1090FA_URL			:= https://github.com/flightaware/dump1090/archive/refs/tags/v$(DUMP1090FA_VERSION).$(DUMP1090FA_SUFFIX)
+DUMP1090FA_SOURCE		:= $(SRCDIR)/$(DUMP1090FA).$(DUMP1090FA_SUFFIX)
+DUMP1090FA_DIR			:= $(BUILDDIR)/$(DUMP1090FA)
+DUMP1090FA_LICENSE		:= GPL-2.0-only
+DUMP1090FA_LICENSE_FILES	:= \
+	file://COPYING;md5=751419260aa954499f7abaabaa882bbe
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+ifdef PTXCONF_ARCH_X86
+DUMP1090FA_ARCH		:= x86
+ifdef PTXCONF_ARCH_X86_64
+DUMP1090FA_ARCH		:= x86_64
+endif
+endif
+ifdef PTXCONF_ARCH_ARM
+DUMP1090FA_ARCH		:= arm
+endif
+ifdef PTXCONF_ARCH_ARM64
+DUMP1090FA_ARCH		:= aarch64
+endif
+
+DUMP1090FA_CONF_TOOL := NO
+DUMP1090FA_MAKE_ENV := \
+	$(CROSS_ENV) \
+	BLADERF=no \
+	LIMESDR=no \
+	HACKRF=no \
+	RTLSDR=yes \
+	ARCH=$(DUMP1090FA_ARCH) \
+	CPUFEATURES_ARCH=$(DUMP1090FA_ARCH) \
+	CPUFEATURES_UNAME="Linux"
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/dump1090fa.install:
+	@$(call targetinfo)
+	@install -vD -m 755 $(DUMP1090FA_DIR)/dump1090 $(DUMP1090FA_PKGDIR)/usr/bin/dump1090-fa
+	$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/dump1090fa.targetinstall:
+	@$(call targetinfo)
+	@$(call install_init, dump1090fa)
+	@$(call install_fixup, dump1090fa,PRIORITY,optional)
+	@$(call install_fixup, dump1090fa,SECTION,base)
+	@$(call install_fixup, dump1090fa,AUTHOR,"Christian Melki <christian.melki@t2data.com>")
+	@$(call install_fixup, dump1090fa,DESCRIPTION,missing)
+	@$(call install_copy, dump1090fa, 0, 0, 0755, -, /usr/bin/dump1090-fa)
+
+	@$(call install_finish, dump1090fa)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.30.2


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] [PATCH v2] dump1090fa: New package. Version 6.1
  2021-11-18 13:49 ` [ptxdist] [PATCH v2] dump1090fa: New package. Version 6.1 Christian Melki
@ 2021-11-25 15:32   ` Michael Olbrich
  2021-11-25 17:36     ` Christian Melki
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Olbrich @ 2021-11-25 15:32 UTC (permalink / raw)
  To: Christian Melki; +Cc: ptxdist

On Thu, Nov 18, 2021 at 02:49:31PM +0100, Christian Melki wrote:
> dump1090 from FlightAware is an ADS-B decoder
> (Automatic Dependent Surveillance-Broadcast).
> ADS-B is used by aircrafts to signal their presence.
> Using an RTL (very cheap) based SDR (Software Defined Radio),
> you can easily build your own ADS-B decoder.

You ignored all my review feedback.

Michael

> Signed-off-by: Christian Melki <christian.melki@t2data.com>
> ---
>  .../dump1090fa-6.1/fix_cpufeatures_arch.patch | 61 ++++++++++++++
>  patches/dump1090fa-6.1/series                 |  2 +
>  rules/dump1090fa.in                           |  8 ++
>  rules/dump1090fa.make                         | 82 +++++++++++++++++++
>  4 files changed, 153 insertions(+)
>  create mode 100644 patches/dump1090fa-6.1/fix_cpufeatures_arch.patch
>  create mode 100644 patches/dump1090fa-6.1/series
>  create mode 100644 rules/dump1090fa.in
>  create mode 100644 rules/dump1090fa.make
> 
> diff --git a/patches/dump1090fa-6.1/fix_cpufeatures_arch.patch b/patches/dump1090fa-6.1/fix_cpufeatures_arch.patch
> new file mode 100644
> index 000000000..270a35846
> --- /dev/null
> +++ b/patches/dump1090fa-6.1/fix_cpufeatures_arch.patch
> @@ -0,0 +1,61 @@
> +From 059e48b82beb4fb920cca977b02db1ceb48facb9 Mon Sep 17 00:00:00 2001
> +From: Oliver Jowett <oliver.jowett@flightaware.com>
> +Date: Thu, 23 Sep 2021 13:23:17 +0800
> +Subject: [PATCH] Allow env vars (not only command line overrides) to set
> + CPUFEATURES_{ARCH,UNAME}. Change CPUFEATURES_{ARCH,UNAME} defaults to use
> + {ARCH,UNAME} values.
> +
> +Fixes #158
> +---
> + Makefile             | 8 ++++++--
> + Makefile.cpufeatures | 4 ++--
> + 2 files changed, 8 insertions(+), 4 deletions(-)
> +
> +diff --git a/Makefile b/Makefile
> +index a85d154c5..9d81ed157 100644
> +--- a/Makefile
> ++++ b/Makefile
> +@@ -39,7 +39,11 @@ else
> +   LIMESDR ?= no
> + endif
> + 
> +-UNAME := $(shell uname)
> ++HOST_UNAME := $(shell uname)
> ++HOST_ARCH := $(shell uname -m)
> ++
> ++UNAME ?= $(HOST_UNAME)
> ++ARCH ?= $(HOST_ARCH)
> + 
> + ifeq ($(UNAME), Linux)
> +   CPPFLAGS += -D_DEFAULT_SOURCE
> +@@ -150,7 +154,6 @@ endif
> + ## starch (runtime DSP code selection) mix, architecture-specific
> + ##
> + 
> +-ARCH ?= $(shell uname -m)
> + ifneq ($(CPUFEATURES),yes)
> +   # need to be able to detect CPU features at runtime to enable any non-standard compiler flags
> +   STARCH_MIX := generic
> +@@ -180,6 +183,7 @@ include dsp/generated/makefile.$(STARCH_MIX)
> + showconfig:
> + 	@echo "Building with:" >&2
> + 	@echo "  Version string:  $(DUMP1090_VERSION)" >&2
> ++	@echo "  Architecture:    $(ARCH)" >&2
> + 	@echo "  DSP mix:         $(STARCH_MIX)" >&2
> + 	@echo "  RTLSDR support:  $(RTLSDR)" >&2
> + 	@echo "  BladeRF support: $(BLADERF)" >&2
> +diff --git a/Makefile.cpufeatures b/Makefile.cpufeatures
> +index 8c3b8418d..6b4289978 100644
> +--- a/Makefile.cpufeatures
> ++++ b/Makefile.cpufeatures
> +@@ -2,8 +2,8 @@
> + 
> + # cmake integration is a little tricky, so let's do this by hand for now
> + 
> +-CPUFEATURES_UNAME := $(shell uname)
> +-CPUFEATURES_ARCH := $(shell uname -m)
> ++CPUFEATURES_UNAME ?= $(UNAME)
> ++CPUFEATURES_ARCH ?= $(ARCH)
> + 
> + CPUFEATURES_OBJS := cpu_features/src/filesystem.o cpu_features/src/stack_line_reader.o cpu_features/src/string_view.o
> + CPUFEATURES_CFLAGS := -std=c99 -O -g -DSTACK_LINE_READER_BUFFER_SIZE=1024 -DNDEBUG
> diff --git a/patches/dump1090fa-6.1/series b/patches/dump1090fa-6.1/series
> new file mode 100644
> index 000000000..cc3b46e66
> --- /dev/null
> +++ b/patches/dump1090fa-6.1/series
> @@ -0,0 +1,2 @@
> +fix_cpufeatures_arch.patch
> +
> diff --git a/rules/dump1090fa.in b/rules/dump1090fa.in
> new file mode 100644
> index 000000000..5738ba17e
> --- /dev/null
> +++ b/rules/dump1090fa.in
> @@ -0,0 +1,8 @@
> +## SECTION=networking
> +
> +menuconfig DUMP1090FA
> +	tristate
> +	prompt "dump1090fa		      "
> +	select LIBRTLSDR
> +	help
> +	  FlightAware MODE-S/ADS-B decoder.
> \ No newline at end of file
> diff --git a/rules/dump1090fa.make b/rules/dump1090fa.make
> new file mode 100644
> index 000000000..88242b0fc
> --- /dev/null
> +++ b/rules/dump1090fa.make
> @@ -0,0 +1,82 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2021 by Christian Melki <christian.melki@t2data.com>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_DUMP1090FA) += dump1090fa
> +
> +#
> +# Paths and names
> +#
> +DUMP1090FA_VERSION		:= 6.1
> +DUMP1090FA_MD5			:= a7cb661bc23974f8bf7650ce26b6e0be
> +DUMP1090FA			:= dump1090fa-$(DUMP1090FA_VERSION)
> +DUMP1090FA_SUFFIX		:= tar.gz
> +DUMP1090FA_URL			:= https://github.com/flightaware/dump1090/archive/refs/tags/v$(DUMP1090FA_VERSION).$(DUMP1090FA_SUFFIX)
> +DUMP1090FA_SOURCE		:= $(SRCDIR)/$(DUMP1090FA).$(DUMP1090FA_SUFFIX)
> +DUMP1090FA_DIR			:= $(BUILDDIR)/$(DUMP1090FA)
> +DUMP1090FA_LICENSE		:= GPL-2.0-only
> +DUMP1090FA_LICENSE_FILES	:= \
> +	file://COPYING;md5=751419260aa954499f7abaabaa882bbe
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +ifdef PTXCONF_ARCH_X86
> +DUMP1090FA_ARCH		:= x86
> +ifdef PTXCONF_ARCH_X86_64
> +DUMP1090FA_ARCH		:= x86_64
> +endif
> +endif
> +ifdef PTXCONF_ARCH_ARM
> +DUMP1090FA_ARCH		:= arm
> +endif
> +ifdef PTXCONF_ARCH_ARM64
> +DUMP1090FA_ARCH		:= aarch64
> +endif
> +
> +DUMP1090FA_CONF_TOOL := NO
> +DUMP1090FA_MAKE_ENV := \
> +	$(CROSS_ENV) \
> +	BLADERF=no \
> +	LIMESDR=no \
> +	HACKRF=no \
> +	RTLSDR=yes \
> +	ARCH=$(DUMP1090FA_ARCH) \
> +	CPUFEATURES_ARCH=$(DUMP1090FA_ARCH) \
> +	CPUFEATURES_UNAME="Linux"
> +
> +# ----------------------------------------------------------------------------
> +# Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/dump1090fa.install:
> +	@$(call targetinfo)
> +	@install -vD -m 755 $(DUMP1090FA_DIR)/dump1090 $(DUMP1090FA_PKGDIR)/usr/bin/dump1090-fa
> +	$(call touch)
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/dump1090fa.targetinstall:
> +	@$(call targetinfo)
> +	@$(call install_init, dump1090fa)
> +	@$(call install_fixup, dump1090fa,PRIORITY,optional)
> +	@$(call install_fixup, dump1090fa,SECTION,base)
> +	@$(call install_fixup, dump1090fa,AUTHOR,"Christian Melki <christian.melki@t2data.com>")
> +	@$(call install_fixup, dump1090fa,DESCRIPTION,missing)
> +	@$(call install_copy, dump1090fa, 0, 0, 0755, -, /usr/bin/dump1090-fa)
> +
> +	@$(call install_finish, dump1090fa)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make
> -- 
> 2.30.2
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] [PATCH v2] dump1090fa: New package. Version 6.1
  2021-11-25 15:32   ` Michael Olbrich
@ 2021-11-25 17:36     ` Christian Melki
  0 siblings, 0 replies; 5+ messages in thread
From: Christian Melki @ 2021-11-25 17:36 UTC (permalink / raw)
  To: ptxdist

On 11/25/21 16:32, Michael Olbrich wrote:
> On Thu, Nov 18, 2021 at 02:49:31PM +0100, Christian Melki wrote:
>> dump1090 from FlightAware is an ADS-B decoder
>> (Automatic Dependent Surveillance-Broadcast).
>> ADS-B is used by aircrafts to signal their presence.
>> Using an RTL (very cheap) based SDR (Software Defined Radio),
>> you can easily build your own ADS-B decoder.
> 
> You ignored all my review feedback.
> 
> Michael
> 

Oops! Sorry. Wasn't my intention.

>> Signed-off-by: Christian Melki <christian.melki@t2data.com>
>> ---
>>  .../dump1090fa-6.1/fix_cpufeatures_arch.patch | 61 ++++++++++++++
>>  patches/dump1090fa-6.1/series                 |  2 +
>>  rules/dump1090fa.in                           |  8 ++
>>  rules/dump1090fa.make                         | 82 +++++++++++++++++++
>>  4 files changed, 153 insertions(+)
>>  create mode 100644 patches/dump1090fa-6.1/fix_cpufeatures_arch.patch
>>  create mode 100644 patches/dump1090fa-6.1/series
>>  create mode 100644 rules/dump1090fa.in
>>  create mode 100644 rules/dump1090fa.make
>>
>> diff --git a/patches/dump1090fa-6.1/fix_cpufeatures_arch.patch b/patches/dump1090fa-6.1/fix_cpufeatures_arch.patch
>> new file mode 100644
>> index 000000000..270a35846
>> --- /dev/null
>> +++ b/patches/dump1090fa-6.1/fix_cpufeatures_arch.patch
>> @@ -0,0 +1,61 @@
>> +From 059e48b82beb4fb920cca977b02db1ceb48facb9 Mon Sep 17 00:00:00 2001
>> +From: Oliver Jowett <oliver.jowett@flightaware.com>
>> +Date: Thu, 23 Sep 2021 13:23:17 +0800
>> +Subject: [PATCH] Allow env vars (not only command line overrides) to set
>> + CPUFEATURES_{ARCH,UNAME}. Change CPUFEATURES_{ARCH,UNAME} defaults to use
>> + {ARCH,UNAME} values.
>> +
>> +Fixes #158
>> +---
>> + Makefile             | 8 ++++++--
>> + Makefile.cpufeatures | 4 ++--
>> + 2 files changed, 8 insertions(+), 4 deletions(-)
>> +
>> +diff --git a/Makefile b/Makefile
>> +index a85d154c5..9d81ed157 100644
>> +--- a/Makefile
>> ++++ b/Makefile
>> +@@ -39,7 +39,11 @@ else
>> +   LIMESDR ?= no
>> + endif
>> + 
>> +-UNAME := $(shell uname)
>> ++HOST_UNAME := $(shell uname)
>> ++HOST_ARCH := $(shell uname -m)
>> ++
>> ++UNAME ?= $(HOST_UNAME)
>> ++ARCH ?= $(HOST_ARCH)
>> + 
>> + ifeq ($(UNAME), Linux)
>> +   CPPFLAGS += -D_DEFAULT_SOURCE
>> +@@ -150,7 +154,6 @@ endif
>> + ## starch (runtime DSP code selection) mix, architecture-specific
>> + ##
>> + 
>> +-ARCH ?= $(shell uname -m)
>> + ifneq ($(CPUFEATURES),yes)
>> +   # need to be able to detect CPU features at runtime to enable any non-standard compiler flags
>> +   STARCH_MIX := generic
>> +@@ -180,6 +183,7 @@ include dsp/generated/makefile.$(STARCH_MIX)
>> + showconfig:
>> + 	@echo "Building with:" >&2
>> + 	@echo "  Version string:  $(DUMP1090_VERSION)" >&2
>> ++	@echo "  Architecture:    $(ARCH)" >&2
>> + 	@echo "  DSP mix:         $(STARCH_MIX)" >&2
>> + 	@echo "  RTLSDR support:  $(RTLSDR)" >&2
>> + 	@echo "  BladeRF support: $(BLADERF)" >&2
>> +diff --git a/Makefile.cpufeatures b/Makefile.cpufeatures
>> +index 8c3b8418d..6b4289978 100644
>> +--- a/Makefile.cpufeatures
>> ++++ b/Makefile.cpufeatures
>> +@@ -2,8 +2,8 @@
>> + 
>> + # cmake integration is a little tricky, so let's do this by hand for now
>> + 
>> +-CPUFEATURES_UNAME := $(shell uname)
>> +-CPUFEATURES_ARCH := $(shell uname -m)
>> ++CPUFEATURES_UNAME ?= $(UNAME)
>> ++CPUFEATURES_ARCH ?= $(ARCH)
>> + 
>> + CPUFEATURES_OBJS := cpu_features/src/filesystem.o cpu_features/src/stack_line_reader.o cpu_features/src/string_view.o
>> + CPUFEATURES_CFLAGS := -std=c99 -O -g -DSTACK_LINE_READER_BUFFER_SIZE=1024 -DNDEBUG
>> diff --git a/patches/dump1090fa-6.1/series b/patches/dump1090fa-6.1/series
>> new file mode 100644
>> index 000000000..cc3b46e66
>> --- /dev/null
>> +++ b/patches/dump1090fa-6.1/series
>> @@ -0,0 +1,2 @@
>> +fix_cpufeatures_arch.patch
>> +
>> diff --git a/rules/dump1090fa.in b/rules/dump1090fa.in
>> new file mode 100644
>> index 000000000..5738ba17e
>> --- /dev/null
>> +++ b/rules/dump1090fa.in
>> @@ -0,0 +1,8 @@
>> +## SECTION=networking
>> +
>> +menuconfig DUMP1090FA
>> +	tristate
>> +	prompt "dump1090fa		      "
>> +	select LIBRTLSDR
>> +	help
>> +	  FlightAware MODE-S/ADS-B decoder.
>> \ No newline at end of file
>> diff --git a/rules/dump1090fa.make b/rules/dump1090fa.make
>> new file mode 100644
>> index 000000000..88242b0fc
>> --- /dev/null
>> +++ b/rules/dump1090fa.make
>> @@ -0,0 +1,82 @@
>> +# -*-makefile-*-
>> +#
>> +# Copyright (C) 2021 by Christian Melki <christian.melki@t2data.com>
>> +#
>> +# For further information about the PTXdist project and license conditions
>> +# see the README file.
>> +#
>> +
>> +#
>> +# We provide this package
>> +#
>> +PACKAGES-$(PTXCONF_DUMP1090FA) += dump1090fa
>> +
>> +#
>> +# Paths and names
>> +#
>> +DUMP1090FA_VERSION		:= 6.1
>> +DUMP1090FA_MD5			:= a7cb661bc23974f8bf7650ce26b6e0be
>> +DUMP1090FA			:= dump1090fa-$(DUMP1090FA_VERSION)
>> +DUMP1090FA_SUFFIX		:= tar.gz
>> +DUMP1090FA_URL			:= https://github.com/flightaware/dump1090/archive/refs/tags/v$(DUMP1090FA_VERSION).$(DUMP1090FA_SUFFIX)
>> +DUMP1090FA_SOURCE		:= $(SRCDIR)/$(DUMP1090FA).$(DUMP1090FA_SUFFIX)
>> +DUMP1090FA_DIR			:= $(BUILDDIR)/$(DUMP1090FA)
>> +DUMP1090FA_LICENSE		:= GPL-2.0-only
>> +DUMP1090FA_LICENSE_FILES	:= \
>> +	file://COPYING;md5=751419260aa954499f7abaabaa882bbe
>> +
>> +# ----------------------------------------------------------------------------
>> +# Prepare
>> +# ----------------------------------------------------------------------------
>> +
>> +ifdef PTXCONF_ARCH_X86
>> +DUMP1090FA_ARCH		:= x86
>> +ifdef PTXCONF_ARCH_X86_64
>> +DUMP1090FA_ARCH		:= x86_64
>> +endif
>> +endif
>> +ifdef PTXCONF_ARCH_ARM
>> +DUMP1090FA_ARCH		:= arm
>> +endif
>> +ifdef PTXCONF_ARCH_ARM64
>> +DUMP1090FA_ARCH		:= aarch64
>> +endif
>> +
>> +DUMP1090FA_CONF_TOOL := NO
>> +DUMP1090FA_MAKE_ENV := \
>> +	$(CROSS_ENV) \
>> +	BLADERF=no \
>> +	LIMESDR=no \
>> +	HACKRF=no \
>> +	RTLSDR=yes \
>> +	ARCH=$(DUMP1090FA_ARCH) \
>> +	CPUFEATURES_ARCH=$(DUMP1090FA_ARCH) \
>> +	CPUFEATURES_UNAME="Linux"
>> +
>> +# ----------------------------------------------------------------------------
>> +# Install
>> +# ----------------------------------------------------------------------------
>> +
>> +$(STATEDIR)/dump1090fa.install:
>> +	@$(call targetinfo)
>> +	@install -vD -m 755 $(DUMP1090FA_DIR)/dump1090 $(DUMP1090FA_PKGDIR)/usr/bin/dump1090-fa
>> +	$(call touch)
>> +
>> +# ----------------------------------------------------------------------------
>> +# Target-Install
>> +# ----------------------------------------------------------------------------
>> +
>> +$(STATEDIR)/dump1090fa.targetinstall:
>> +	@$(call targetinfo)
>> +	@$(call install_init, dump1090fa)
>> +	@$(call install_fixup, dump1090fa,PRIORITY,optional)
>> +	@$(call install_fixup, dump1090fa,SECTION,base)
>> +	@$(call install_fixup, dump1090fa,AUTHOR,"Christian Melki <christian.melki@t2data.com>")
>> +	@$(call install_fixup, dump1090fa,DESCRIPTION,missing)
>> +	@$(call install_copy, dump1090fa, 0, 0, 0755, -, /usr/bin/dump1090-fa)
>> +
>> +	@$(call install_finish, dump1090fa)
>> +
>> +	@$(call touch)
>> +
>> +# vim: syntax=make
>> -- 
>> 2.30.2
>>
>>
>> _______________________________________________
>> ptxdist mailing list
>> ptxdist@pengutronix.de
>> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
>>
> 


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] [APPLIED] librtlsdr: New package. Version 0.8
  2021-11-18 13:49 [ptxdist] [PATCH v2] librtlsdr: New package. Version 0.8 Christian Melki
  2021-11-18 13:49 ` [ptxdist] [PATCH v2] dump1090fa: New package. Version 6.1 Christian Melki
@ 2021-11-29 13:51 ` Michael Olbrich
  1 sibling, 0 replies; 5+ messages in thread
From: Michael Olbrich @ 2021-11-29 13:51 UTC (permalink / raw)
  To: ptxdist; +Cc: Christian Melki

Thanks, applied as 423ab3e0d44f52f52011785091cd7ade9d1725e8.

Michael

[sent from post-receive hook]

On Mon, 29 Nov 2021 14:51:01 +0100, Christian Melki <christian.melki@t2data.com> wrote:
> librtlsdr is a library for using RealTek DVB-T receivers as
> SDR (Software Defined Radio). This library is used by various
> tools to tune into bands and decode radio data.
> 
> Signed-off-by: Christian Melki <christian.melki@t2data.com>
> Message-Id: <20211118134931.3603813-1-christian.melki@t2data.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/librtlsdr.in b/rules/librtlsdr.in
> new file mode 100644
> index 000000000000..6f53ee7bbedc
> --- /dev/null
> +++ b/rules/librtlsdr.in
> @@ -0,0 +1,29 @@
> +## SECTION=system_libraries
> +
> +menuconfig LIBRTLSDR
> +	tristate
> +	prompt "librtlsdr		      "
> +	select HOST_CMAKE
> +	select LIBUSB
> +	help
> +	  Realtek SDR (Software Defined Radio) library.
> +
> +if LIBRTLSDR
> +
> +comment "Install options   ---"
> +
> +config LIBRTLSDR_TOOLS
> +	bool
> +	default y
> +	prompt "Install tools		  "
> +	help
> +	  Installs rtl-sdr tools.
> +
> +config LIBRTLSDR_UDEV
> +	bool
> +	default y
> +	prompt "Install udev rules	  "
> +	help
> +	  Installs udev rules.
> +
> +endif
> diff --git a/rules/librtlsdr.make b/rules/librtlsdr.make
> new file mode 100644
> index 000000000000..64f3492bd2ca
> --- /dev/null
> +++ b/rules/librtlsdr.make
> @@ -0,0 +1,66 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2021 by Christian Melki <christian.melki@t2data.com>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_LIBRTLSDR) += librtlsdr
> +
> +#
> +# Paths and names
> +#
> +LIBRTLSDR_VERSION	:= 0.8.0
> +LIBRTLSDR_MD5		:= 64f31f30f79cd91e4cd70b0a8edcff4e
> +LIBRTLSDR		:= librtlsdr-$(LIBRTLSDR_VERSION)
> +LIBRTLSDR_SUFFIX	:= tar.gz
> +LIBRTLSDR_URL		:= https://github.com/librtlsdr/librtlsdr/archive/refs/tags/v$(LIBRTLSDR_VERSION).$(LIBRTLSDR_SUFFIX)
> +LIBRTLSDR_SOURCE	:= $(SRCDIR)/$(LIBRTLSDR).$(LIBRTLSDR_SUFFIX)
> +LIBRTLSDR_DIR		:= $(BUILDDIR)/$(LIBRTLSDR)
> +LIBRTLSDR_LICENSE	:= GPL-2.0-only
> +LIBRTLSDR_LICENSE_FILES	:= \
> +	file://COPYING;md5=751419260aa954499f7abaabaa882bbe
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +LIBRTLSDR_CONF_TOOL := cmake
> +LIBRTLSDR_CONF_OPT := \
> +	$(CROSS_CMAKE_USR) \
> +	-DCMAKE_INSTALL_LIBDIR=/usr/$(CROSS_LIB_DIR) \
> +	-DLIB_INSTALL_DIR=/usr/$(CROSS_LIB_DIR) \
> +	-DENABLE_SHARED=ON \
> +	-DINSTALL_UDEV_RULES=ON
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/librtlsdr.targetinstall:
> +	@$(call targetinfo)
> +	@$(call install_init, librtlsdr)
> +	@$(call install_fixup, librtlsdr,PRIORITY,optional)
> +	@$(call install_fixup, librtlsdr,SECTION,base)
> +	@$(call install_fixup, librtlsdr,AUTHOR,"Christian Melki <christian.melki@t2data.com>")
> +	@$(call install_fixup, librtlsdr,DESCRIPTION,missing)
> +	@$(call install_lib, librtlsdr, 0, 0, 0644, librtlsdr)
> +
> +ifdef PTXCONF_LIBRTLSDR_TOOLS
> +	@$(call install_glob, librtlsdr, 0, 0, -, /usr/bin, *rtl_*,)
> +endif
> +
> +ifdef PTXCONF_LIBRTLSDR_UDEV
> +	@$(call install_copy, librtlsdr, 0, 0, 0644, \
> +		$(LIBRTLSDR_PKGDIR)/etc/udev/rules.d/rtl-sdr.rules, \
> +		/usr/lib/udev/rules.d/81-rtl-sdr.rules)
> +endif
> +
> +	@$(call install_finish, librtlsdr)
> +	@$(call touch)
> +
> +# vim: syntax=make

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-11-29 13:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-18 13:49 [ptxdist] [PATCH v2] librtlsdr: New package. Version 0.8 Christian Melki
2021-11-18 13:49 ` [ptxdist] [PATCH v2] dump1090fa: New package. Version 6.1 Christian Melki
2021-11-25 15:32   ` Michael Olbrich
2021-11-25 17:36     ` Christian Melki
2021-11-29 13:51 ` [ptxdist] [APPLIED] librtlsdr: New package. Version 0.8 Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox