initial buildroot for linux 5.15

This commit is contained in:
Huan.Feng
2021-12-06 14:12:13 +08:00
parent d7767d594e
commit 7b6fc358fa
12736 changed files with 508822 additions and 0 deletions
@@ -0,0 +1,15 @@
Fix build against bluez4.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
--- ussp-push-0.11.orig/src/obex_socket.c 2012-11-01 09:58:51.049538708 +0100
+++ ussp-push-0.11/src/obex_socket.c 2012-11-01 12:10:10.719506951 +0100
@@ -197,7 +197,7 @@ static int bt_sock_name2bth(int devid, c
for (i = 0; i < niinf; i++) {
char devname[128];
- if (hci_remote_name(dd, &piinf[i].bdaddr, sizeof(devname) - 1,
+ if (hci_read_remote_name(dd, &piinf[i].bdaddr, sizeof(devname) - 1,
devname, 100000) >= 0) {
if (strcasecmp(devname, btname) == 0) {
*btaddr = piinf[i].bdaddr;
@@ -0,0 +1,28 @@
From 2d732026044d8e6cd16465ee87a73ac9692c021b Mon Sep 17 00:00:00 2001
From: Samuel Martin <s.martin49@gmail.com>
Date: Fri, 3 Nov 2017 09:04:12 +0100
Subject: [PATCH] fix build again obex/bluez
[fetch from debian source: http://http.debian.net/debian/pool/main/u/ussp-push/ussp-push_0.11-4.debian.tar.xz]
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
src/obex_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/obex_main.c b/src/obex_main.c
index a7126e6..6233d7e 100644
--- a/src/obex_main.c
+++ b/src/obex_main.c
@@ -197,7 +197,7 @@ obex_t *__obex_connect(int devid, void *addr, int timeout, int *err)
*err = -1;
return NULL;
}
- if (!(handle = OBEX_Init(OBEX_TRANS_CUST, obex_event, 0))) {
+ if (!(handle = OBEX_Init(OBEX_TRANS_CUSTOM, obex_event, 0))) {
BTERROR("OBEX_Init failed: %s\n", strerror(errno));
obex_free(gt);
*err = -1;
--
2.15.0
@@ -0,0 +1,47 @@
From eafac77d76d2a23c191a56f715d6c4afc0800da8 Mon Sep 17 00:00:00 2001
From: Samuel Martin <s.martin49@gmail.com>
Date: Fri, 3 Nov 2017 09:10:01 +0100
Subject: [PATCH] add OBEX_CharToUnicode
[fetch from debian source: http://http.debian.net/debian/pool/main/u/ussp-push/ussp-push_0.11-4.debian.tar.xz]
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
src/obex_main.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/src/obex_main.c b/src/obex_main.c
index 6233d7e..971cc37 100644
--- a/src/obex_main.c
+++ b/src/obex_main.c
@@ -84,7 +84,27 @@ void request_done(obex_t * handle, obex_object_t * object, int obex_cmd, int obe
int bt_debug;
+static int OBEX_CharToUnicode(uint8_t *uc, const uint8_t *c, int size)
+{
+ int len, n;
+
+ if (uc == NULL || c == NULL)
+ return -1;
+
+ len = n = strlen((char *) c);
+ if (n*2+2 > size)
+ return -1;
+
+ uc[n*2+1] = 0;
+ uc[n*2] = 0;
+ while (n--) {
+ uc[n*2+1] = c[n];
+ uc[n*2] = 0;
+ }
+
+ return (len * 2) + 2;
+}
/*
* These two functions are from affix/profiles/obex/obex_io.c
--
2.15.0
+21
View File
@@ -0,0 +1,21 @@
config BR2_PACKAGE_USSP_PUSH
bool "ussp-push"
depends on !BR2_STATIC_LIBS # bluez5_utils
depends on BR2_USE_WCHAR # libglib2
depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, alsa-lib, libglib2
depends on BR2_USE_MMU # dbus
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # bluez5_utils
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4 # bluez5_utils
select BR2_PACKAGE_OPENOBEX
select BR2_PACKAGE_BLUEZ5_UTILS
help
ussp-push is an OBEX object pusher for Linux, using the BlueZ
BlueTooth stack.
http://www.xmailserver.org/ussp-push.html
comment "ussp-push needs a toolchain w/ wchar, threads, dynamic library, headers >= 3.4"
depends on BR2_USE_MMU
depends on BR2_TOOLCHAIN_HAS_SYNC_4
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
+4
View File
@@ -0,0 +1,4 @@
# Locally calculated
sha256 bb2748eaed6164812555b4a1e186c4f2820c5ef9ce30f12d7aac28a452719bbd ussp-push-0.11.tar.gz
# License files, locally calculated
sha256 204d8eff92f95aac4df6c8122bc1505f468f3a901e5a4cc08940e0ede1938994 COPYING
+14
View File
@@ -0,0 +1,14 @@
################################################################################
#
# ussp-push
#
################################################################################
USSP_PUSH_VERSION = 0.11
USSP_PUSH_SITE = http://www.xmailserver.org
USSP_PUSH_LICENSE = GPL-2.0+
USSP_PUSH_LICENSE_FILES = COPYING
USSP_PUSH_DEPENDENCIES = bluez5_utils openobex
$(eval $(autotools-package))