initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
From 08467411d7dfc2a2b7ede62e5fdc640748ea1db2 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Wed, 9 Sep 2020 19:14:52 +0200
|
||||
Subject: [PATCH] lib/neardal.h: fix build with gcc 10
|
||||
|
||||
Define neardal_output_cb as extern to avoid the following build failure
|
||||
with gcc 10 (which defaults to -fno-common):
|
||||
|
||||
/srv/storage/autobuild/run/instance-2/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: ./.libs/neardal_adapter.o:(.bss+0x0): multiple definition of `neardal_output_cb'; ./.libs/neardal.o:(.bss+0x68): first defined here
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/7efb100c899b67ffd570f73c202442f95ca5397e
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status: https://github.com/connectivity/neardal/pull/10]
|
||||
---
|
||||
lib/neardal.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/neardal.h b/lib/neardal.h
|
||||
index d1cd18b..3e83595 100644
|
||||
--- a/lib/neardal.h
|
||||
+++ b/lib/neardal.h
|
||||
@@ -638,7 +638,7 @@ neardal_record *neardal_g_variant_to_record(GVariant *in);
|
||||
|
||||
void neardal_trace(const char *func, FILE *fp, char *fmt, ...)
|
||||
__attribute__((format(printf, 3, 4)));
|
||||
-int (*neardal_output_cb)(FILE *fp, const char *fmt, va_list ap);
|
||||
+extern int (*neardal_output_cb)(FILE *fp, const char *fmt, va_list ap);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
--
|
||||
2.28.0
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
config BR2_PACKAGE_NEARDAL
|
||||
bool "neardal"
|
||||
depends on BR2_USE_WCHAR # glib2
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, glib2
|
||||
depends on BR2_USE_MMU # dbus
|
||||
select BR2_PACKAGE_DBUS
|
||||
select BR2_PACKAGE_DBUS_GLIB
|
||||
select BR2_PACKAGE_LIBEDIT
|
||||
help
|
||||
Provides a simple C API to exchange data with the neard NFC
|
||||
manager daemon.
|
||||
|
||||
https://github.com/connectivity/neardal
|
||||
|
||||
if BR2_PACKAGE_NEARDAL
|
||||
|
||||
config BR2_PACKAGE_NEARDAL_NCL
|
||||
bool "ncl tool"
|
||||
help
|
||||
Build and install neardal ncl command line interpreter tool.
|
||||
|
||||
endif
|
||||
|
||||
comment "neardal needs a toolchain w/ wchar, threads"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 dae3c432e619a0d3102c5222d0b8fde74413ae519a64ccaae0fc81d31504aecb neardal-4143d130ed39299bfc59d08d2c7c77dbc7f809e9.tar.gz
|
||||
sha256 296a87e9098d3f2ce1ef80c73c53399dc2c7412f35d4175c45810ea15ed86406 COPYING
|
||||
@@ -0,0 +1,24 @@
|
||||
################################################################################
|
||||
#
|
||||
# neardal
|
||||
#
|
||||
################################################################################
|
||||
|
||||
NEARDAL_VERSION = 4143d130ed39299bfc59d08d2c7c77dbc7f809e9
|
||||
NEARDAL_SITE = $(call github,connectivity,neardal,$(NEARDAL_VERSION))
|
||||
NEARDAL_INSTALL_STAGING = YES
|
||||
NEARDAL_LICENSE = LGPL-2.0
|
||||
NEARDAL_LICENSE_FILES = COPYING
|
||||
|
||||
NEARDAL_DEPENDENCIES = host-pkgconf dbus dbus-glib libedit
|
||||
NEARDAL_AUTORECONF = YES
|
||||
|
||||
define NEARDAL_INSTALL_NCL
|
||||
$(INSTALL) -m 0755 -D $(@D)/ncl/ncl $(TARGET_DIR)/usr/bin/ncl
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_PACKAGE_NEARDAL_NCL),y)
|
||||
NEARDAL_POST_INSTALL_TARGET_HOOKS += NEARDAL_INSTALL_NCL
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user