diff options
| author | Guðni Már Gilbert <gudni.m.g@gmail.com> | 2024-09-09 23:44:44 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-09-11 11:56:37 +0100 |
| commit | 0c87811b71e6b09b135c5866f53d17591eb8e2ef (patch) | |
| tree | 4c6853b51d7c8cc18e51b74d0cc379deec0bb8be | |
| parent | 66390a274b3bf601e9cad29d1f6b6338d6f45827 (diff) | |
| download | poky-0c87811b71e6b09b135c5866f53d17591eb8e2ef.tar.gz | |
bluez5: upgrade 5.77 -> 5.78
* Fix issue with handling notification of scanned BISes to BASS
* Fix issue with handling checking BIS caps against peer caps.
* Fix issue with handling MGMT Set Device Flags overwrites.
* Fix issue with handling ASE notification order.
* Fix issue with handling BIG Info report events.
* Fix issue with handling PACS Server role.
* Fix issue with registering UHID_START multiple times.
* Fix issue with pairing method not setting auto-connect.
(From OE-Core rev: 77aa3ecaf6ad7fe777a10655542349a1489b7ad3)
Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5/0001-Provide-GNU-basename-compatible-implementation.patch | 136 | ||||
| -rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5/0001-test-gatt-Fix-hung-issue.patch | 2 | ||||
| -rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5/0001-tests-add-a-target-for-building-tests-without-runnin.patch | 4 | ||||
| -rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5/0004-src-shared-util.c-include-linux-limits.h.patch | 2 | ||||
| -rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5_5.78.bb (renamed from meta/recipes-connectivity/bluez5/bluez5_5.77.bb) | 2 |
5 files changed, 75 insertions, 71 deletions
diff --git a/meta/recipes-connectivity/bluez5/bluez5/0001-Provide-GNU-basename-compatible-implementation.patch b/meta/recipes-connectivity/bluez5/bluez5/0001-Provide-GNU-basename-compatible-implementation.patch index 3a2a97ff02..4f028e589b 100644 --- a/meta/recipes-connectivity/bluez5/bluez5/0001-Provide-GNU-basename-compatible-implementation.patch +++ b/meta/recipes-connectivity/bluez5/bluez5/0001-Provide-GNU-basename-compatible-implementation.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | From 9000923c07a68857e8ea32a49bfca660b1d1001a Mon Sep 17 00:00:00 2001 | 1 | From 44e24350aae771daa93e5a85378856f91358688f Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 26 Aug 2024 09:55:03 -0700 | 3 | Date: Mon, 26 Aug 2024 09:55:03 -0700 |
| 4 | Subject: [PATCH BlueZ] Provide GNU basename compatible implementation | 4 | Subject: [PATCH] Provide GNU basename compatible implementation |
| 5 | 5 | ||
| 6 | Call to basename() relies on a GNU extension | 6 | Call to basename() relies on a GNU extension |
| 7 | to take a const char * vs a char *. Let's define | 7 | to take a const char * vs a char *. Let's define |
| @@ -13,65 +13,21 @@ Fixes Issue: https://github.com/bluez/bluez/issues/843 | |||
| 13 | Upstream-Status: Submitted [https://lore.kernel.org/linux-bluetooth/20240826173844.2918630-1-raj.khem@gmail.com/T/#u] | 13 | Upstream-Status: Submitted [https://lore.kernel.org/linux-bluetooth/20240826173844.2918630-1-raj.khem@gmail.com/T/#u] |
| 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 15 | --- | 15 | --- |
| 16 | Makefile.mesh | 2 ++ | 16 | configure.ac | 11 ++++++++++- |
| 17 | Makefile.tools | 3 ++- | 17 | mesh/mesh-config-json.c | 4 +++- |
| 18 | mesh/mesh-config-json.c | 6 ++++-- | 18 | mesh/missing.h | 21 +++++++++++++++++++++ |
| 19 | mesh/rpl.c | 3 ++- | 19 | mesh/rpl.c | 1 + |
| 20 | src/shared/util.h | 7 +++++++ | 20 | tools/hex2hcd.c | 1 + |
| 21 | tools/hex2hcd.c | 3 ++- | 21 | tools/missing.h | 21 +++++++++++++++++++++ |
| 22 | 6 files changed, 19 insertions(+), 5 deletions(-) | 22 | 6 files changed, 57 insertions(+), 2 deletions(-) |
| 23 | create mode 100644 mesh/missing.h | ||
| 24 | create mode 100644 tools/missing.h | ||
| 23 | 25 | ||
| 24 | Index: bluez-5.77/mesh/mesh-config-json.c | 26 | diff --git a/configure.ac b/configure.ac |
| 25 | =================================================================== | 27 | index a7fb51f..254f1a7 100644 |
| 26 | --- bluez-5.77.orig/mesh/mesh-config-json.c | 28 | --- a/configure.ac |
| 27 | +++ bluez-5.77/mesh/mesh-config-json.c | 29 | +++ b/configure.ac |
| 28 | @@ -28,6 +28,7 @@ | 30 | @@ -70,7 +70,16 @@ AC_CHECK_LIB(pthread, pthread_create, dummy=yes, |
| 29 | #include <ell/ell.h> | ||
| 30 | #include <json-c/json.h> | ||
| 31 | |||
| 32 | +#include "mesh/missing.h" | ||
| 33 | #include "mesh/mesh-defs.h" | ||
| 34 | #include "mesh/util.h" | ||
| 35 | #include "mesh/mesh-config.h" | ||
| 36 | @@ -2694,7 +2695,8 @@ bool mesh_config_load_nodes(const char * | ||
| 37 | |||
| 38 | void mesh_config_destroy_nvm(struct mesh_config *cfg) | ||
| 39 | { | ||
| 40 | - char *node_dir, *node_name; | ||
| 41 | + char *node_dir; | ||
| 42 | + const char* node_name; | ||
| 43 | char uuid[33]; | ||
| 44 | |||
| 45 | if (!cfg) | ||
| 46 | Index: bluez-5.77/mesh/rpl.c | ||
| 47 | =================================================================== | ||
| 48 | --- bluez-5.77.orig/mesh/rpl.c | ||
| 49 | +++ bluez-5.77/mesh/rpl.c | ||
| 50 | @@ -24,6 +24,7 @@ | ||
| 51 | |||
| 52 | #include <ell/ell.h> | ||
| 53 | |||
| 54 | +#include "mesh/missing.h" | ||
| 55 | #include "mesh/mesh-defs.h" | ||
| 56 | |||
| 57 | #include "mesh/node.h" | ||
| 58 | Index: bluez-5.77/tools/hex2hcd.c | ||
| 59 | =================================================================== | ||
| 60 | --- bluez-5.77.orig/tools/hex2hcd.c | ||
| 61 | +++ bluez-5.77/tools/hex2hcd.c | ||
| 62 | @@ -24,6 +24,7 @@ | ||
| 63 | #include <stdlib.h> | ||
| 64 | #include <stdbool.h> | ||
| 65 | #include <sys/stat.h> | ||
| 66 | +#include "tools/missing.h" | ||
| 67 | |||
| 68 | static ssize_t process_record(int fd, const char *line, uint16_t *upper_addr) | ||
| 69 | { | ||
| 70 | Index: bluez-5.77/configure.ac | ||
| 71 | =================================================================== | ||
| 72 | --- bluez-5.77.orig/configure.ac | ||
| 73 | +++ bluez-5.77/configure.ac | ||
| 74 | @@ -70,7 +70,16 @@ AC_CHECK_LIB(pthread, pthread_create, du | ||
| 75 | AC_CHECK_LIB(dl, dlopen, dummy=yes, | 31 | AC_CHECK_LIB(dl, dlopen, dummy=yes, |
| 76 | AC_MSG_ERROR(dynamic linking loader is required)) | 32 | AC_MSG_ERROR(dynamic linking loader is required)) |
| 77 | 33 | ||
| @@ -89,10 +45,33 @@ Index: bluez-5.77/configure.ac | |||
| 89 | 45 | ||
| 90 | PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.28) | 46 | PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.28) |
| 91 | 47 | ||
| 92 | Index: bluez-5.77/tools/missing.h | 48 | diff --git a/mesh/mesh-config-json.c b/mesh/mesh-config-json.c |
| 93 | =================================================================== | 49 | index c198627..e3b0a18 100644 |
| 50 | --- a/mesh/mesh-config-json.c | ||
| 51 | +++ b/mesh/mesh-config-json.c | ||
| 52 | @@ -28,6 +28,7 @@ | ||
| 53 | #include <ell/ell.h> | ||
| 54 | #include <json-c/json.h> | ||
| 55 | |||
| 56 | +#include "mesh/missing.h" | ||
| 57 | #include "mesh/mesh-defs.h" | ||
| 58 | #include "mesh/util.h" | ||
| 59 | #include "mesh/mesh-config.h" | ||
| 60 | @@ -2694,7 +2695,8 @@ bool mesh_config_load_nodes(const char *cfgdir_name, mesh_config_node_func_t cb, | ||
| 61 | |||
| 62 | void mesh_config_destroy_nvm(struct mesh_config *cfg) | ||
| 63 | { | ||
| 64 | - char *node_dir, *node_name; | ||
| 65 | + char *node_dir; | ||
| 66 | + const char* node_name; | ||
| 67 | char uuid[33]; | ||
| 68 | |||
| 69 | if (!cfg) | ||
| 70 | diff --git a/mesh/missing.h b/mesh/missing.h | ||
| 71 | new file mode 100644 | ||
| 72 | index 0000000..eaf3281 | ||
| 94 | --- /dev/null | 73 | --- /dev/null |
| 95 | +++ bluez-5.77/tools/missing.h | 74 | +++ b/mesh/missing.h |
| 96 | @@ -0,0 +1,21 @@ | 75 | @@ -0,0 +1,21 @@ |
| 97 | +// SPDX-License-Identifier: LGPL-2.1-or-later | 76 | +// SPDX-License-Identifier: LGPL-2.1-or-later |
| 98 | +/* | 77 | +/* |
| @@ -115,10 +94,35 @@ Index: bluez-5.77/tools/missing.h | |||
| 115 | + return base ? base + 1 : path; | 94 | + return base ? base + 1 : path; |
| 116 | +} | 95 | +} |
| 117 | +#endif | 96 | +#endif |
| 118 | Index: bluez-5.77/mesh/missing.h | 97 | diff --git a/mesh/rpl.c b/mesh/rpl.c |
| 119 | =================================================================== | 98 | index fb225dd..2fa17d7 100644 |
| 99 | --- a/mesh/rpl.c | ||
| 100 | +++ b/mesh/rpl.c | ||
| 101 | @@ -24,6 +24,7 @@ | ||
| 102 | |||
| 103 | #include <ell/ell.h> | ||
| 104 | |||
| 105 | +#include "mesh/missing.h" | ||
| 106 | #include "mesh/mesh-defs.h" | ||
| 107 | |||
| 108 | #include "mesh/node.h" | ||
| 109 | diff --git a/tools/hex2hcd.c b/tools/hex2hcd.c | ||
| 110 | index e6dca5a..452ab2b 100644 | ||
| 111 | --- a/tools/hex2hcd.c | ||
| 112 | +++ b/tools/hex2hcd.c | ||
| 113 | @@ -24,6 +24,7 @@ | ||
| 114 | #include <stdlib.h> | ||
| 115 | #include <stdbool.h> | ||
| 116 | #include <sys/stat.h> | ||
| 117 | +#include "tools/missing.h" | ||
| 118 | |||
| 119 | static ssize_t process_record(int fd, const char *line, uint16_t *upper_addr) | ||
| 120 | { | ||
| 121 | diff --git a/tools/missing.h b/tools/missing.h | ||
| 122 | new file mode 100644 | ||
| 123 | index 0000000..eaf3281 | ||
| 120 | --- /dev/null | 124 | --- /dev/null |
| 121 | +++ bluez-5.77/mesh/missing.h | 125 | +++ b/tools/missing.h |
| 122 | @@ -0,0 +1,21 @@ | 126 | @@ -0,0 +1,21 @@ |
| 123 | +// SPDX-License-Identifier: LGPL-2.1-or-later | 127 | +// SPDX-License-Identifier: LGPL-2.1-or-later |
| 124 | +/* | 128 | +/* |
diff --git a/meta/recipes-connectivity/bluez5/bluez5/0001-test-gatt-Fix-hung-issue.patch b/meta/recipes-connectivity/bluez5/bluez5/0001-test-gatt-Fix-hung-issue.patch index ae113a9a6d..1b1af4ba96 100644 --- a/meta/recipes-connectivity/bluez5/bluez5/0001-test-gatt-Fix-hung-issue.patch +++ b/meta/recipes-connectivity/bluez5/bluez5/0001-test-gatt-Fix-hung-issue.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From eeb62ab04b3789a27074236cd0bed7cc64759f4d Mon Sep 17 00:00:00 2001 | 1 | From b8371d1111e21a9b3285ec0864b78e98d7acf79f Mon Sep 17 00:00:00 2001 |
| 2 | From: Mingli Yu <Mingli.Yu@windriver.com> | 2 | From: Mingli Yu <Mingli.Yu@windriver.com> |
| 3 | Date: Fri, 24 Aug 2018 12:04:03 +0800 | 3 | Date: Fri, 24 Aug 2018 12:04:03 +0800 |
| 4 | Subject: [PATCH] test-gatt: Fix hung issue | 4 | Subject: [PATCH] test-gatt: Fix hung issue |
diff --git a/meta/recipes-connectivity/bluez5/bluez5/0001-tests-add-a-target-for-building-tests-without-runnin.patch b/meta/recipes-connectivity/bluez5/bluez5/0001-tests-add-a-target-for-building-tests-without-runnin.patch index 37253b9725..b85c050ffc 100644 --- a/meta/recipes-connectivity/bluez5/bluez5/0001-tests-add-a-target-for-building-tests-without-runnin.patch +++ b/meta/recipes-connectivity/bluez5/bluez5/0001-tests-add-a-target-for-building-tests-without-runnin.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From c06fecbb009f4c42f01d86383d4571c96ba872f0 Mon Sep 17 00:00:00 2001 | 1 | From bbfecd4407b6425f409c4657ac96e67f0a995a12 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Fri, 1 Apr 2016 17:07:34 +0300 | 3 | Date: Fri, 1 Apr 2016 17:07:34 +0300 |
| 4 | Subject: [PATCH] tests: add a target for building tests without running them | 4 | Subject: [PATCH] tests: add a target for building tests without running them |
| @@ -10,7 +10,7 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | |||
| 10 | 1 file changed, 3 insertions(+) | 10 | 1 file changed, 3 insertions(+) |
| 11 | 11 | ||
| 12 | diff --git a/Makefile.am b/Makefile.am | 12 | diff --git a/Makefile.am b/Makefile.am |
| 13 | index 0ae7211..c8bcaca 100644 | 13 | index 68bf058..a376d10 100644 |
| 14 | --- a/Makefile.am | 14 | --- a/Makefile.am |
| 15 | +++ b/Makefile.am | 15 | +++ b/Makefile.am |
| 16 | @@ -713,6 +713,9 @@ endif | 16 | @@ -713,6 +713,9 @@ endif |
diff --git a/meta/recipes-connectivity/bluez5/bluez5/0004-src-shared-util.c-include-linux-limits.h.patch b/meta/recipes-connectivity/bluez5/bluez5/0004-src-shared-util.c-include-linux-limits.h.patch index 567cf5db8c..14afdf025b 100644 --- a/meta/recipes-connectivity/bluez5/bluez5/0004-src-shared-util.c-include-linux-limits.h.patch +++ b/meta/recipes-connectivity/bluez5/bluez5/0004-src-shared-util.c-include-linux-limits.h.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 705235d674f574bee08ea3138208938a086e1b53 Mon Sep 17 00:00:00 2001 | 1 | From 409b2247f0003bc474a73aed78fa4c5a86bc30ec Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex@linutronix.de> | 2 | From: Alexander Kanavin <alex@linutronix.de> |
| 3 | Date: Mon, 12 Dec 2022 13:10:19 +0100 | 3 | Date: Mon, 12 Dec 2022 13:10:19 +0100 |
| 4 | Subject: [PATCH] src/shared/util.c: include linux/limits.h | 4 | Subject: [PATCH] src/shared/util.c: include linux/limits.h |
diff --git a/meta/recipes-connectivity/bluez5/bluez5_5.77.bb b/meta/recipes-connectivity/bluez5/bluez5_5.78.bb index 55264fd6b7..23d1ad69d8 100644 --- a/meta/recipes-connectivity/bluez5/bluez5_5.77.bb +++ b/meta/recipes-connectivity/bluez5/bluez5_5.78.bb | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | require bluez5.inc | 1 | require bluez5.inc |
| 2 | 2 | ||
| 3 | SRC_URI[sha256sum] = "5d032fdc1d4a085813554f57591e2e1fb0ceb2b3616ee56f689bc00e1d150812" | 3 | SRC_URI[sha256sum] = "830fed1915c5d375b8de0f5e6f45fcdea0dcc5ff5ffb3d31db6ed0f00d73c5e3" |
| 4 | 4 | ||
| 5 | CVE_STATUS[CVE-2020-24490] = "cpe-incorrect: This issue has kernel fixes rather than bluez fixes" | 5 | CVE_STATUS[CVE-2020-24490] = "cpe-incorrect: This issue has kernel fixes rather than bluez fixes" |
| 6 | 6 | ||
