Bluez: Update to 5.56
authorJohnny Vogels <redacted>
Wed, 3 Mar 2021 17:25:05 +0000 (18:25 +0100)
committerJohnny Vogels <redacted>
Wed, 3 Mar 2021 18:35:02 +0000 (19:35 +0100)
Signed-off-by: Johnny Vogels <redacted>
utils/bluez/Makefile
utils/bluez/patches/001-bcm43xx-Add-bcm43xx-3wire-variant.patch
utils/bluez/patches/002-bcm43xx-The-UART-speed-must-be-reset-after-the-firmw.patch
utils/bluez/patches/003-Increase-firmware-load-timeout-to-30s.patch
utils/bluez/patches/004-Move-the-43xx-firmware-into-lib-firmware.patch
utils/bluez/patches/201-readline.patch
utils/bluez/patches/202-fix-endianness.patch
utils/bluez/patches/203-obexd_without_systemd.patch
utils/bluez/patches/205-refresh_adv_manager_for_non-LE_devices.patch

index c1305d9f01a8f26925f0601e903886fd9b598da2..3e3c89b73553c833b113a47f7c0ab37cfc40019c 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=bluez
-PKG_VERSION:=5.55
+PKG_VERSION:=5.56
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@KERNEL/linux/bluetooth/
-PKG_HASH:=8863717113c4897e2ad3271fc808ea245319e6fd95eed2e934fae8e0894e9b88
+PKG_HASH:=59c4dba9fc8aae2a6a5f8f12f19bc1b0c2dc27355c7ca3123eed3fe6bd7d0b9d
 
 PKG_LICENSE:=GPL-2.0-or-later
 PKG_LICENSE_FILES:=COPYING
@@ -111,7 +111,7 @@ endef
 define Package/bluez-utils/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/bdaddr $(1)/usr/bin/
-       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/bccmd $(1)/usr/bin/
+#      $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/bccmd $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/bluemoon $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/btattach $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/btmon $(1)/usr/bin/
index 2a3510b6f771a4b51c3dc942cce8fb02a83571b0..9465ddc704d9746a161d90dce53269f3c39fda35 100644 (file)
@@ -9,7 +9,7 @@ Subject: [PATCH 1/4] bcm43xx: Add bcm43xx-3wire variant
 
 --- a/tools/hciattach.c
 +++ b/tools/hciattach.c
-@@ -1091,6 +1091,9 @@ struct uart_t uart[] = {
+@@ -1078,6 +1078,9 @@ struct uart_t uart[] = {
        { "bcm43xx",    0x0000, 0x0000, HCI_UART_H4,   115200, 3000000,
                                FLOW_CTL, DISABLE_PM, NULL, bcm43xx, NULL  },
  
index 4b68f07bbbd5908f37f924b3d998f94bb61c08ac..3df634110320f0f9bccd8b797d3285715802b2d0 100644 (file)
@@ -10,7 +10,7 @@ Subject: [PATCH 2/4] bcm43xx: The UART speed must be reset after the firmware
 
 --- a/tools/hciattach_bcm43xx.c
 +++ b/tools/hciattach_bcm43xx.c
-@@ -367,11 +367,8 @@ int bcm43xx_init(int fd, int def_speed,
+@@ -354,11 +354,8 @@ int bcm43xx_init(int fd, int def_speed,
                return -1;
  
        if (bcm43xx_locate_patch(FIRMWARE_DIR, chip_name, fw_path)) {
@@ -23,7 +23,7 @@ Subject: [PATCH 2/4] bcm43xx: The UART speed must be reset after the firmware
                if (bcm43xx_load_firmware(fd, fw_path))
                        return -1;
  
-@@ -381,6 +378,7 @@ int bcm43xx_init(int fd, int def_speed,
+@@ -368,6 +365,7 @@ int bcm43xx_init(int fd, int def_speed,
                        return -1;
                }
  
index b99976643bf864fe04f8c19f0f8ce76e8e750a1c..ec13dd7f2f506754d54b456b62f608d96975e534 100644 (file)
@@ -9,7 +9,7 @@ Subject: [PATCH 3/4] Increase firmware load timeout to 30s
 
 --- a/tools/hciattach.c
 +++ b/tools/hciattach.c
-@@ -1240,7 +1240,7 @@ int main(int argc, char *argv[])
+@@ -1227,7 +1227,7 @@ int main(int argc, char *argv[])
  {
        struct uart_t *u = NULL;
        int detach, printpid, raw, opt, i, n, ld, err;
index 355f17b6d72b76686b66b87fb3aabd9dce76ff8c..670d4304c4def9e01a05a52b34e0f2dbfcf79354 100644 (file)
@@ -9,7 +9,7 @@ Subject: [PATCH 4/4] Move the 43xx firmware into /lib/firmware
 
 --- a/tools/hciattach_bcm43xx.c
 +++ b/tools/hciattach_bcm43xx.c
-@@ -44,7 +44,7 @@
+@@ -31,7 +31,7 @@
  #include "hciattach.h"
  
  #ifndef FIRMWARE_DIR
index 9d32c4b6b984f2318cd48eb0dbf286382b35d8ea..0a2f20eb32e8eec166d11f67b2b3179b7f97cdb8 100644 (file)
@@ -1,6 +1,6 @@
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -3212,7 +3212,7 @@ unit_tests = $(am__append_54) unit/test-
+@@ -3225,7 +3225,7 @@ unit_tests = $(am__append_54) unit/test-
  @CLIENT_TRUE@                                 client/gatt.h client/gatt.c
  
  @CLIENT_TRUE@client_bluetoothctl_LDADD = gdbus/libgdbus-internal.la src/libshared-glib.la \
@@ -9,7 +9,7 @@
  
  @ZSH_COMPLETIONS_TRUE@zshcompletiondir = $(ZSH_COMPLETIONDIR)
  @ZSH_COMPLETIONS_TRUE@dist_zshcompletion_DATA = completion/zsh/_bluetoothctl
-@@ -3450,7 +3450,7 @@ unit_tests = $(am__append_54) unit/test-
+@@ -3457,7 +3457,7 @@ unit_tests = $(am__append_54) unit/test-
  
  @MESH_TRUE@@TOOLS_TRUE@tools_meshctl_LDADD = gdbus/libgdbus-internal.la src/libshared-glib.la \
  @MESH_TRUE@@TOOLS_TRUE@                               lib/libbluetooth-internal.la \
@@ -18,7 +18,7 @@
  
  @MESH_TRUE@@TOOLS_TRUE@tools_mesh_cfgclient_SOURCES = tools/mesh-cfgclient.c \
  @MESH_TRUE@@TOOLS_TRUE@                               tools/mesh/model.h tools/mesh/config-model.h \
-@@ -3517,7 +3517,7 @@ unit_tests = $(am__append_54) unit/test-
+@@ -3524,7 +3524,7 @@ unit_tests = $(am__append_54) unit/test-
  @READLINE_TRUE@                                               tools/obex-client-tool.c
  
  @READLINE_TRUE@tools_obex_client_tool_LDADD = lib/libbluetooth-internal.la \
@@ -27,7 +27,7 @@
  
  @READLINE_TRUE@tools_obex_server_tool_SOURCES = $(gobex_sources) $(btio_sources) \
  @READLINE_TRUE@                                               tools/obex-server-tool.c
-@@ -3526,15 +3526,15 @@ unit_tests = $(am__append_54) unit/test-
+@@ -3533,15 +3533,15 @@ unit_tests = $(am__append_54) unit/test-
  @READLINE_TRUE@tools_bluetooth_player_SOURCES = tools/bluetooth-player.c
  @READLINE_TRUE@tools_bluetooth_player_LDADD = gdbus/libgdbus-internal.la \
  @READLINE_TRUE@                               src/libshared-glib.la \
@@ -46,7 +46,7 @@
  
  @DEPRECATED_TRUE@@READLINE_TRUE@attrib_gatttool_SOURCES = attrib/gatttool.c attrib/att.c attrib/gatt.c \
  @DEPRECATED_TRUE@@READLINE_TRUE@                              attrib/gattrib.c btio/btio.c \
-@@ -3543,7 +3543,7 @@ unit_tests = $(am__append_54) unit/test-
+@@ -3550,7 +3550,7 @@ unit_tests = $(am__append_54) unit/test-
  @DEPRECATED_TRUE@@READLINE_TRUE@                              client/display.h
  
  @DEPRECATED_TRUE@@READLINE_TRUE@attrib_gatttool_LDADD = lib/libbluetooth-internal.la \
index a92cdd04ad7a6152dd9a3116e00b57d7dae3157c..f1d9042e73fcc45fcb1c929ca37b0efe99a264a2 100644 (file)
@@ -1,10 +1,10 @@
 --- a/src/shared/util.h
 +++ b/src/shared/util.h
-@@ -26,6 +26,7 @@
+@@ -14,6 +14,7 @@
  #include <alloca.h>
  #include <byteswap.h>
  #include <string.h>
 +#include <endian.h>
  
  #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
+ #define BIT(n)  (1 << (n))
index c79ce3e776ec5aaa49332a5607eac9b469ec21a7..c2f23c1417769518f7d95aaeda144063eb05fdcd 100644 (file)
@@ -18,7 +18,7 @@ directly, and to do so it needs the full path of the daemon.
 
 --- a/Makefile.obexd
 +++ b/Makefile.obexd
-@@ -1,12 +1,12 @@
+@@ -2,12 +2,12 @@
  if SYSTEMD
  systemduserunitdir = $(SYSTEMD_USERUNITDIR)
  systemduserunit_DATA = obexd/src/obex.service
index bee1422b16e6a9eb13a9c20dd998dbe9a849d045..005684add9580692db9b44d20bbfff853b8973c3 100644 (file)
@@ -34,7 +34,7 @@ This commit prevents the call to btd_adv_manager_refresh for non-LE devices.
 
 --- a/src/adapter.c
 +++ b/src/adapter.c
-@@ -573,7 +573,8 @@ static void settings_changed(struct btd_
+@@ -557,7 +557,8 @@ static void settings_changed(struct btd_
                g_dbus_emit_property_changed(dbus_conn, adapter->path,
                                        ADAPTER_INTERFACE, "Discoverable");
                store_adapter_info(adapter);
git clone https://git.99rst.org/PROJECT