Initial Commit
- initial default booting image
This commit is contained in:
50
package/dump1090/0001-Fix-compilation-with-GCC15.patch
Normal file
50
package/dump1090/0001-Fix-compilation-with-GCC15.patch
Normal file
@@ -0,0 +1,50 @@
|
||||
From 93be1da123215e8ac15a0deaffedd480e8899f77 Mon Sep 17 00:00:00 2001
|
||||
From: Conrad Kostecki <conrad@kostecki.com>
|
||||
Date: Tue, 22 Apr 2025 00:41:31 +0200
|
||||
Subject: [PATCH] Fix compilation with GCC15
|
||||
|
||||
Upstream: https://github.com/flightaware/dump1090/pull/261
|
||||
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
||||
---
|
||||
ais_charset.c | 2 +-
|
||||
ais_charset.h | 2 +-
|
||||
interactive.c | 2 +-
|
||||
3 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/ais_charset.c b/ais_charset.c
|
||||
index a487e3c..0d3af03 100644
|
||||
--- a/ais_charset.c
|
||||
+++ b/ais_charset.c
|
||||
@@ -1,3 +1,3 @@
|
||||
#include "ais_charset.h"
|
||||
|
||||
-char ais_charset[64] = "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ !\"#$%&'()*+,-./0123456789:;<=>?";
|
||||
+char ais_charset[65] = "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ !\"#$%&'()*+,-./0123456789:;<=>?";
|
||||
diff --git a/ais_charset.h b/ais_charset.h
|
||||
index 93d4a72..95ef373 100644
|
||||
--- a/ais_charset.h
|
||||
+++ b/ais_charset.h
|
||||
@@ -1,6 +1,6 @@
|
||||
#ifndef AIS_CHARSET_H
|
||||
#define AIS_CHARSET_H
|
||||
|
||||
-extern char ais_charset[64];
|
||||
+extern char ais_charset[65];
|
||||
|
||||
#endif
|
||||
diff --git a/interactive.c b/interactive.c
|
||||
index 8761c95..75775ad 100644
|
||||
--- a/interactive.c
|
||||
+++ b/interactive.c
|
||||
@@ -140,7 +140,7 @@ void interactiveShowData(void) {
|
||||
static bool need_clear = true;
|
||||
uint64_t now = mstime();
|
||||
char progress;
|
||||
- char spinner[4] = "|/-\\";
|
||||
+ char spinner[5] = "|/-\\";
|
||||
int valid = 0;
|
||||
double signalMax = -100.0;
|
||||
double signalMin = +100.0;
|
||||
--
|
||||
2.39.5
|
||||
|
||||
13
package/dump1090/Config.in
Normal file
13
package/dump1090/Config.in
Normal file
@@ -0,0 +1,13 @@
|
||||
config BR2_PACKAGE_DUMP1090
|
||||
bool "dump1090"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C11/stdatomic.h
|
||||
select BR2_PACKAGE_NCURSES
|
||||
help
|
||||
Dump1090 is a simple Mode S decoder for RTLSDR devices
|
||||
|
||||
https://github.com/flightaware/dump1090
|
||||
|
||||
comment "dump1090 needs a toolchain w/ threads, gcc >= 4.9"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
3
package/dump1090/dump1090.hash
Normal file
3
package/dump1090/dump1090.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 1135588ea8f3d045601e8ab45702648e339168eee0792b2c4f62fae3d2cc9f3b dump1090-10.2.tar.gz
|
||||
sha256 804f68c803eb5c127c53ad17c4f4e5033ef158e514bb76950dc7b1773f9ce4b0 LICENSE
|
||||
45
package/dump1090/dump1090.mk
Normal file
45
package/dump1090/dump1090.mk
Normal file
@@ -0,0 +1,45 @@
|
||||
################################################################################
|
||||
#
|
||||
# dump1090
|
||||
#
|
||||
################################################################################
|
||||
|
||||
DUMP1090_VERSION = 10.2
|
||||
DUMP1090_SITE = $(call github,flightaware,dump1090,v$(DUMP1090_VERSION))
|
||||
DUMP1090_LICENSE = GPL-2.0+
|
||||
DUMP1090_LICENSE_FILES = LICENSE
|
||||
DUMP1090_DEPENDENCIES = host-pkgconf ncurses
|
||||
DUMP1090_MAKE_OPTS = BLADERF=no CPUFEATURES=no LIMESDR=no
|
||||
|
||||
define DUMP1090_NO_WERROR
|
||||
$(SED) 's/-Werror//' $(@D)/Makefile
|
||||
endef
|
||||
DUMP1090_POST_PATCH_HOOKS += DUMP1090_NO_WERROR
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HACKRF),y)
|
||||
DUMP1090_DEPENDENCIES += hackrf
|
||||
DUMP1090_MAKE_OPTS += HACKRF=yes
|
||||
else
|
||||
DUMP1090_MAKE_OPTS += HACKRF=no
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBRTLSDR),y)
|
||||
DUMP1090_DEPENDENCIES += librtlsdr
|
||||
DUMP1090_MAKE_OPTS += RTLSDR=yes
|
||||
else
|
||||
DUMP1090_MAKE_OPTS += RTLSDR=no
|
||||
endif
|
||||
|
||||
define DUMP1090_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) PREFIX=/usr \
|
||||
-C $(@D) $(DUMP1090_MAKE_OPTS)
|
||||
endef
|
||||
|
||||
define DUMP1090_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -m 0755 -D $(@D)/dump1090 $(TARGET_DIR)/usr/bin/dump1090
|
||||
$(INSTALL) -m 0755 -D $(@D)/view1090 $(TARGET_DIR)/usr/bin/view1090
|
||||
$(INSTALL) -d $(TARGET_DIR)/usr/share/dump1090
|
||||
cp -r $(@D)/public_html/* $(TARGET_DIR)/usr/share/dump1090
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user