summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuðni Már Gilbert <gudni.m.g@gmail.com>2025-03-30 02:41:00 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-04-01 11:58:25 +0100
commit7fa0654f2f0e22ac64b97f8b4c90cd3984bfb83f (patch)
treeaffeddbe71ecca784a672b6e1734adef3c1135bb
parent41ec3e8bff88650d21c9e8be746022d966d1bcf8 (diff)
downloadpoky-7fa0654f2f0e22ac64b97f8b4c90cd3984bfb83f.tar.gz
bluez5: upgrade 5.79 -> 5.80
Changes relevant for the build: * Four patches are dropped because they are included in 5.80. * Removed changes to etc/bluetooth directory permission bits. They are now set correctly in 5.80 [1]. * AMP code has been removed [2]. This means "tools/amptest" can be removed from NOINST_TOOLS_BT [1] - https://github.com/bluez/bluez/commit/b1fd409960001a77cda2a09ecc00147ebd9c3667 [2] - https://github.com/bluez/bluez/commit/1474c11618bc1092f7dd4b304d3768ce9da02b13 Changelog: Fix issue with handling address type for all types of keys. Fix issue with handling maximum number of GATT channels. Fix issue with handling MTU auto-tuning feature. Fix issue with handling AVRCP volume in reconfigured transports. Fix issue with handling VCP volume setting requests. Fix issue with handling VCP connection management. Fix issue with handling MAP qualification. Fix issue with handling PBAP qualification. Fix issue with handling BNEP qualification. Add support for PreferredBearer device property. Add support for SupportedTypes Message Access property. Add support for HFP, A2DP, AVRCP, AVCTP and MAP latest versions. (From OE-Core rev: 9e340d4c8070bab0a14adc7d9f6534d1185944f5) 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.inc9
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5/0001-gdbus-define-MAX_INPUT-for-musl.patch34
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5/0001-shared-ad-fix-std-c23-build-failure.patch34
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5/0001-test-gatt-Fix-hung-issue.patch2
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5/0001-tests-add-a-target-for-building-tests-without-runnin.patch6
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5/0002-shared-shell-fix-std-c23-build-failure.patch34
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5/0003-shared-gatt-helpers-fix-std-c23-build-failure.patch58
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5_5.80.bb (renamed from meta/recipes-connectivity/bluez5/bluez5_5.79.bb)3
8 files changed, 5 insertions, 175 deletions
diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc
index d626872103..a81f317a37 100644
--- a/meta/recipes-connectivity/bluez5/bluez5.inc
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -69,10 +69,6 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \
69 file://run-ptest \ 69 file://run-ptest \
70 file://0001-tests-add-a-target-for-building-tests-without-runnin.patch \ 70 file://0001-tests-add-a-target-for-building-tests-without-runnin.patch \
71 file://0001-test-gatt-Fix-hung-issue.patch \ 71 file://0001-test-gatt-Fix-hung-issue.patch \
72 file://0001-gdbus-define-MAX_INPUT-for-musl.patch \
73 file://0001-shared-ad-fix-std-c23-build-failure.patch \
74 file://0002-shared-shell-fix-std-c23-build-failure.patch \
75 file://0003-shared-gatt-helpers-fix-std-c23-build-failure.patch \
76 " 72 "
77S = "${WORKDIR}/bluez-${PV}" 73S = "${WORKDIR}/bluez-${PV}"
78 74
@@ -113,11 +109,6 @@ do_install:append() {
113 for f in ${NOINST_TOOLS} ; do 109 for f in ${NOINST_TOOLS} ; do
114 install -m 755 ${B}/$f ${D}${bindir} 110 install -m 755 ${B}/$f ${D}${bindir}
115 done 111 done
116
117 # Fix the /etc/bluetooth directory permissions when systemd is disabled
118 if ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'false', 'true', d)}; then
119 chmod 0755 ${D}${sysconfdir}/bluetooth
120 fi
121} 112}
122 113
123PACKAGES =+ "${PN}-testtools ${PN}-obex ${PN}-noinst-tools" 114PACKAGES =+ "${PN}-testtools ${PN}-obex ${PN}-noinst-tools"
diff --git a/meta/recipes-connectivity/bluez5/bluez5/0001-gdbus-define-MAX_INPUT-for-musl.patch b/meta/recipes-connectivity/bluez5/bluez5/0001-gdbus-define-MAX_INPUT-for-musl.patch
deleted file mode 100644
index de01dc864e..0000000000
--- a/meta/recipes-connectivity/bluez5/bluez5/0001-gdbus-define-MAX_INPUT-for-musl.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From 6f40d44acbfb0021f21bd63e6c0703ba701d19c4 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= <gudni.m.g@gmail.com>
3Date: Sat, 2 Nov 2024 16:03:34 +0000
4Subject: [PATCH] gdbus: define MAX_INPUT for musl
5
6This is the same solution as was done in src/shared/util.c
7
8Upstream-Status: Submitted [https://marc.info/?l=linux-bluetooth&m=173056368428988&w=2]
9
10Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com.com>
11---
12 gdbus/object.c | 6 ++++++
13 1 file changed, 6 insertions(+)
14
15diff --git a/gdbus/object.c b/gdbus/object.c
16index 84f116bf1..7b0476f1a 100644
17--- a/gdbus/object.c
18+++ b/gdbus/object.c
19@@ -20,6 +20,12 @@
20 #include <dbus/dbus.h>
21
22 #include "gdbus.h"
23+
24+/* define MAX_INPUT for musl */
25+#ifndef MAX_INPUT
26+#define MAX_INPUT _POSIX_MAX_INPUT
27+#endif
28+
29 #include "src/shared/util.h"
30
31 #define info(fmt...)
32--
332.43.0
34
diff --git a/meta/recipes-connectivity/bluez5/bluez5/0001-shared-ad-fix-std-c23-build-failure.patch b/meta/recipes-connectivity/bluez5/bluez5/0001-shared-ad-fix-std-c23-build-failure.patch
deleted file mode 100644
index 82eaed7929..0000000000
--- a/meta/recipes-connectivity/bluez5/bluez5/0001-shared-ad-fix-std-c23-build-failure.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From 5c4cbf5cb95e4fc1a53545af52b420a8008b3ffa Mon Sep 17 00:00:00 2001
2From: Rudi Heitbaum <rudi@heitbaum.com>
3Date: Wed, 20 Nov 2024 13:02:56 +0000
4Subject: [PATCH 1/3] shared/ad: fix -std=c23 build failure
5
6gcc-15 switched to -std=c23 by default:
7
8 https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=55e3bd376b2214e200fa76d12b67ff259b06c212
9
10As a result `bluez` fails the build as:
11
12 src/shared/ad.c:1090:24: error: incompatible types when returning type '_Bool' but 'const char *' was expected
13 1090 | return false;
14 | ^~~~~
15
16Upstream-Status: Backport [https://web.git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=da5b5b0ecb1ead38676768ef78d46449d404bdc0]
17Signed-off-by: Khem Raj <raj.khem@gmail.com>
18---
19 src/shared/ad.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/src/shared/ad.c b/src/shared/ad.c
23index d08ce7a..dac381b 100644
24--- a/src/shared/ad.c
25+++ b/src/shared/ad.c
26@@ -1087,7 +1087,7 @@ bool bt_ad_add_name(struct bt_ad *ad, const char *name)
27 const char *bt_ad_get_name(struct bt_ad *ad)
28 {
29 if (!ad)
30- return false;
31+ return NULL;
32
33 return ad->name;
34 }
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 572f5b0be3..90c5ebdcc6 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 @@
1From 825e15ddda4aa6d8e37c1c52181f7175d2237f66 Mon Sep 17 00:00:00 2001 1From 0787e67bebbf8492b6c5f03ed816cf881edbea64 Mon Sep 17 00:00:00 2001
2From: Mingli Yu <Mingli.Yu@windriver.com> 2From: Mingli Yu <Mingli.Yu@windriver.com>
3Date: Fri, 24 Aug 2018 12:04:03 +0800 3Date: Fri, 24 Aug 2018 12:04:03 +0800
4Subject: [PATCH] test-gatt: Fix hung issue 4Subject: [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 f56142ee50..ad04a46a36 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 @@
1From 9ce6360d11f0b1252f61ff78ce6f8ef03b150dfd Mon Sep 17 00:00:00 2001 1From b6438d9e6cd5bdbca05b444ff6d955e5b70dbb2e Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Fri, 1 Apr 2016 17:07:34 +0300 3Date: Fri, 1 Apr 2016 17:07:34 +0300
4Subject: [PATCH] tests: add a target for building tests without running them 4Subject: [PATCH] tests: add a target for building tests without running them
@@ -10,10 +10,10 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
10 1 file changed, 3 insertions(+) 10 1 file changed, 3 insertions(+)
11 11
12diff --git a/Makefile.am b/Makefile.am 12diff --git a/Makefile.am b/Makefile.am
13index 68bf058..a376d10 100644 13index 0821530..e7cefb5 100644
14--- a/Makefile.am 14--- a/Makefile.am
15+++ b/Makefile.am 15+++ b/Makefile.am
16@@ -713,6 +713,9 @@ endif 16@@ -723,6 +723,9 @@ endif
17 TESTS = $(unit_tests) 17 TESTS = $(unit_tests)
18 AM_TESTS_ENVIRONMENT = MALLOC_CHECK_=3 MALLOC_PERTURB_=69 18 AM_TESTS_ENVIRONMENT = MALLOC_CHECK_=3 MALLOC_PERTURB_=69
19 19
diff --git a/meta/recipes-connectivity/bluez5/bluez5/0002-shared-shell-fix-std-c23-build-failure.patch b/meta/recipes-connectivity/bluez5/bluez5/0002-shared-shell-fix-std-c23-build-failure.patch
deleted file mode 100644
index 9ea622601b..0000000000
--- a/meta/recipes-connectivity/bluez5/bluez5/0002-shared-shell-fix-std-c23-build-failure.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From 408510d751e9482fe965e5dd96fbac7f9ee2ef62 Mon Sep 17 00:00:00 2001
2From: Rudi Heitbaum <rudi@heitbaum.com>
3Date: Wed, 20 Nov 2024 13:03:29 +0000
4Subject: [PATCH 2/3] shared/shell: fix -std=c23 build failure
5
6gcc-15 switched to -std=c23 by default:
7
8 https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=55e3bd376b2214e200fa76d12b67ff259b06c212
9
10As a result `bluez` fails the build as:
11
12 src/shared/shell.c:365:24: error: incompatible types when returning type '_Bool' but 'struct input *' was expected
13 365 | return false;
14 | ^~~~~
15
16Upstream-Status: Backport [https://web.git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=4d60826865c760cc4e5718b6414746a394768110]
17Signed-off-by: Khem Raj <raj.khem@gmail.com>
18---
19 src/shared/shell.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/src/shared/shell.c b/src/shared/shell.c
23index a8fa876..aa6c16c 100644
24--- a/src/shared/shell.c
25+++ b/src/shared/shell.c
26@@ -362,7 +362,7 @@ static struct input *input_new(int fd)
27
28 io = io_new(fd);
29 if (!io)
30- return false;
31+ return NULL;
32
33 input = new0(struct input, 1);
34 input->io = io;
diff --git a/meta/recipes-connectivity/bluez5/bluez5/0003-shared-gatt-helpers-fix-std-c23-build-failure.patch b/meta/recipes-connectivity/bluez5/bluez5/0003-shared-gatt-helpers-fix-std-c23-build-failure.patch
deleted file mode 100644
index 996bb048ac..0000000000
--- a/meta/recipes-connectivity/bluez5/bluez5/0003-shared-gatt-helpers-fix-std-c23-build-failure.patch
+++ /dev/null
@@ -1,58 +0,0 @@
1From 7c07bb10f57c80467bc3079d45dac4d3839927d0 Mon Sep 17 00:00:00 2001
2From: Rudi Heitbaum <rudi@heitbaum.com>
3Date: Wed, 20 Nov 2024 13:03:55 +0000
4Subject: [PATCH 3/3] shared/gatt-helpers: fix -std=c23 build failure
5
6gcc-15 switched to -std=c23 by default:
7
8 https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=55e3bd376b2214e200fa76d12b67ff259b06c212
9
10As a result `bluez` fails the build as:
11
12 src/shared/gatt-helpers.c:1136:24: error: incompatible types when returning type '_Bool' but 'struct bt_gatt_request *' was expected
13 1136 | return false;
14 | ^~~~~
15 src/shared/gatt-helpers.c:1250:24: error: incompatible types when returning type '_Bool' but 'struct bt_gatt_request *' was expected
16 1250 | return false;
17 | ^~~~~
18 src/shared/gatt-helpers.c:1478:24: error: incompatible types when returning type '_Bool' but 'struct bt_gatt_request *' was expected
19 1478 | return false;
20 | ^~~~~
21
22Upstream-Status: Backport [https://web.git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=6f3111eb680df9c13502aacd65554846a9e13a3f]
23Signed-off-by: Khem Raj <raj.khem@gmail.com>
24---
25 src/shared/gatt-helpers.c | 6 +++---
26 1 file changed, 3 insertions(+), 3 deletions(-)
27
28diff --git a/src/shared/gatt-helpers.c b/src/shared/gatt-helpers.c
29index 50fcb26..f1fa630 100644
30--- a/src/shared/gatt-helpers.c
31+++ b/src/shared/gatt-helpers.c
32@@ -1133,7 +1133,7 @@ struct bt_gatt_request *bt_gatt_discover_included_services(struct bt_att *att,
33 uint8_t pdu[6];
34
35 if (!att)
36- return false;
37+ return NULL;
38
39 op = new0(struct bt_gatt_request, 1);
40 op->att = att;
41@@ -1247,7 +1247,7 @@ struct bt_gatt_request *bt_gatt_discover_characteristics(struct bt_att *att,
42 uint8_t pdu[6];
43
44 if (!att)
45- return false;
46+ return NULL;
47
48 op = new0(struct bt_gatt_request, 1);
49 op->att = att;
50@@ -1475,7 +1475,7 @@ struct bt_gatt_request *bt_gatt_discover_descriptors(struct bt_att *att,
51 uint8_t pdu[4];
52
53 if (!att)
54- return false;
55+ return NULL;
56
57 op = new0(struct bt_gatt_request, 1);
58 op->att = att;
diff --git a/meta/recipes-connectivity/bluez5/bluez5_5.79.bb b/meta/recipes-connectivity/bluez5/bluez5_5.80.bb
index 30ea6d317b..6e5b621971 100644
--- a/meta/recipes-connectivity/bluez5/bluez5_5.79.bb
+++ b/meta/recipes-connectivity/bluez5/bluez5_5.80.bb
@@ -1,6 +1,6 @@
1require bluez5.inc 1require bluez5.inc
2 2
3SRC_URI[sha256sum] = "4164a5303a9f71c70f48c03ff60be34231b568d93a9ad5e79928d34e6aa0ea8a" 3SRC_URI[sha256sum] = "a4d0bca3299691f06d5bd9773b854638204a51a5026c42b0ad7f1c6cf16b459a"
4 4
5CVE_STATUS[CVE-2020-24490] = "cpe-incorrect: This issue has kernel fixes rather than bluez fixes" 5CVE_STATUS[CVE-2020-24490] = "cpe-incorrect: This issue has kernel fixes rather than bluez fixes"
6 6
@@ -41,7 +41,6 @@ NOINST_TOOLS_BT ?= " \
41 tools/avinfo \ 41 tools/avinfo \
42 tools/avtest \ 42 tools/avtest \
43 tools/scotest \ 43 tools/scotest \
44 tools/amptest \
45 tools/hwdb \ 44 tools/hwdb \
46 tools/hcieventmask \ 45 tools/hcieventmask \
47 tools/hcisecfilter \ 46 tools/hcisecfilter \