summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity
diff options
context:
space:
mode:
authorgudnimg <gudni.m.g@gmail.com>2024-07-11 19:12:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-16 11:56:53 +0100
commit28c9ac0d4f320b9fba261757b0a1c34b5e3b593b (patch)
treef83fbae0ed6fdcc33854f1e516183bcb161641b5 /meta/recipes-connectivity
parent49497a9e469c22dd0a7ba1f8c1a0b6856e67ef3f (diff)
downloadpoky-28c9ac0d4f320b9fba261757b0a1c34b5e3b593b.tar.gz
bluez5: upgrade 5.72 -> 5.77
Changelog: * https://github.com/bluez/bluez/releases/tag/5.77 * https://github.com/bluez/bluez/releases/tag/5.76 * https://github.com/bluez/bluez/releases/tag/5.75 * https://github.com/bluez/bluez/releases/tag/5.74 * https://github.com/bluez/bluez/releases/tag/5.73 Changes relevant to the build: * One patch file is dropped. * /etc/bluetooth is now installed with 555 permission bits when systemd is not enabled. The do_install function was edited to change it back to 755. This was causing test failure when testing SDK packaging * Added a few missing PACKAGECONFIGs which are enabled by default. - asha-profiles: new in BlueZ 5.77 - ccp-profiles: new in BlueZ 5.73 - micp-profiles: new in BlueZ 5.70 - csip-profiles: new in BlueZ 5.67 - bass-profiles: new in BlueZ 5.67 - vcp-profiles: new in BlueZ 5.66 - mcp-profiles: new in BlueZ 5.66 - bap-profiles: new in BlueZ 5.66 (From OE-Core rev: ebbdb7cf5c0a3f0e6773704d4c4cc570358ec611) Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5.inc22
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch56
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5/0001-test-gatt-Fix-hung-issue.patch7
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5/0001-tests-add-a-target-for-building-tests-without-runnin.patch7
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5/0004-src-shared-util.c-include-linux-limits.h.patch5
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5_5.77.bb (renamed from meta/recipes-connectivity/bluez5/bluez5_5.72.bb)2
6 files changed, 30 insertions, 69 deletions
diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc
index a1ffdeef8c..55aea1f3c7 100644
--- a/meta/recipes-connectivity/bluez5/bluez5.inc
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -18,6 +18,14 @@ PACKAGECONFIG ??= "obex-profiles \
18 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ 18 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
19 a2dp-profiles \ 19 a2dp-profiles \
20 avrcp-profiles \ 20 avrcp-profiles \
21 bap-profiles \
22 bass-profiles \
23 mcp-profiles \
24 ccp-profiles \
25 vcp-profiles \
26 micp-profiles \
27 csip-profiles \
28 asha-profiles \
21 network-profiles \ 29 network-profiles \
22 hid-profiles \ 30 hid-profiles \
23 hog-profiles \ 31 hog-profiles \
@@ -39,6 +47,14 @@ PACKAGECONFIG[network-profiles] = "--enable-network,--disable-network"
39PACKAGECONFIG[hid-profiles] = "--enable-hid,--disable-hid" 47PACKAGECONFIG[hid-profiles] = "--enable-hid,--disable-hid"
40PACKAGECONFIG[hog-profiles] = "--enable-hog,--disable-hog" 48PACKAGECONFIG[hog-profiles] = "--enable-hog,--disable-hog"
41PACKAGECONFIG[health-profiles] = "--enable-health,--disable-health" 49PACKAGECONFIG[health-profiles] = "--enable-health,--disable-health"
50PACKAGECONFIG[bap-profiles] = "--enable-bap,--disable-bap"
51PACKAGECONFIG[bass-profiles] = "--enable-bass,--disable-bass"
52PACKAGECONFIG[mcp-profiles] = "--enable-mcp,--disable-mcp"
53PACKAGECONFIG[ccp-profiles] = "--enable-ccp,--disable-ccp"
54PACKAGECONFIG[vcp-profiles] = "--enable-vcp,--disable-vcp"
55PACKAGECONFIG[micp-profiles] = "--enable-micp,--disable-micp"
56PACKAGECONFIG[csip-profiles] = "--enable-csip,--disable-csip"
57PACKAGECONFIG[asha-profiles] = "--enable-asha,--disable-asha"
42PACKAGECONFIG[sixaxis] = "--enable-sixaxis,--disable-sixaxis" 58PACKAGECONFIG[sixaxis] = "--enable-sixaxis,--disable-sixaxis"
43PACKAGECONFIG[tools] = "--enable-tools,--disable-tools" 59PACKAGECONFIG[tools] = "--enable-tools,--disable-tools"
44PACKAGECONFIG[threads] = "--enable-threads,--disable-threads" 60PACKAGECONFIG[threads] = "--enable-threads,--disable-threads"
@@ -51,7 +67,6 @@ PACKAGECONFIG[manpages] = "--enable-manpages,--disable-manpages,python3-docutils
51SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \ 67SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \
52 file://init \ 68 file://init \
53 file://run-ptest \ 69 file://run-ptest \
54 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '', 'file://0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch', d)} \
55 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 \
56 file://0001-test-gatt-Fix-hung-issue.patch \ 71 file://0001-test-gatt-Fix-hung-issue.patch \
57 file://0004-src-shared-util.c-include-linux-limits.h.patch \ 72 file://0004-src-shared-util.c-include-linux-limits.h.patch \
@@ -99,6 +114,11 @@ do_install:append() {
99 # Patch python tools to use Python 3; they should be source compatible, but 114 # Patch python tools to use Python 3; they should be source compatible, but
100 # still refer to Python 2 in the shebang 115 # still refer to Python 2 in the shebang
101 sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${libdir}/bluez/test/* 116 sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${libdir}/bluez/test/*
117
118 # Fix the /etc/bluetooth directory permissions when systemd is disabled
119 if ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'false', 'true', d)}; then
120 chmod 0755 ${D}${sysconfdir}/bluetooth
121 fi
102} 122}
103 123
104PACKAGES =+ "${PN}-testtools ${PN}-obex ${PN}-noinst-tools" 124PACKAGES =+ "${PN}-testtools ${PN}-obex ${PN}-noinst-tools"
diff --git a/meta/recipes-connectivity/bluez5/bluez5/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch b/meta/recipes-connectivity/bluez5/bluez5/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch
deleted file mode 100644
index 618ed734a9..0000000000
--- a/meta/recipes-connectivity/bluez5/bluez5/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch
+++ /dev/null
@@ -1,56 +0,0 @@
1From f74eb97c9fb3c0ee2895742e773ac6a3c41c999c Mon Sep 17 00:00:00 2001
2From: Giovanni Campagna <gcampagna-cNUdlRotFMnNLxjTenLetw@public.gmane.org>
3Date: Sat, 12 Oct 2013 17:45:25 +0200
4Subject: [PATCH] Allow using obexd without systemd in the user session
5
6Not all sessions run systemd --user (actually, the majority
7doesn't), so the dbus daemon must be able to spawn obexd
8directly, and to do so it needs the full path of the daemon.
9
10Upstream-Status: Denied
11
12Not accepted by upstream maintainer for being a distro specific
13configuration. See thread:
14
15http://thread.gmane.org/gmane.linux.bluez.kernel/38725/focus=38843
16
17Signed-off-by: Javier Viguera <javier.viguera@digi.com>
18
19---
20 Makefile.obexd | 4 ++--
21 .../src/{org.bluez.obex.service => org.bluez.obex.service.in} | 2 +-
22 2 files changed, 3 insertions(+), 3 deletions(-)
23 rename obexd/src/{org.bluez.obex.service => org.bluez.obex.service.in} (76%)
24
25diff --git a/Makefile.obexd b/Makefile.obexd
26index de59d29..73004a3 100644
27--- a/Makefile.obexd
28+++ b/Makefile.obexd
29@@ -1,12 +1,12 @@
30 if SYSTEMD
31 systemduserunitdir = $(SYSTEMD_USERUNITDIR)
32 systemduserunit_DATA = obexd/src/obex.service
33+endif
34
35 dbussessionbusdir = $(DBUS_SESSIONBUSDIR)
36 dbussessionbus_DATA = obexd/src/org.bluez.obex.service
37-endif
38
39-EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service
40+EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service.in
41
42 if OBEX
43
44diff --git a/obexd/src/org.bluez.obex.service b/obexd/src/org.bluez.obex.service.in
45similarity index 76%
46rename from obexd/src/org.bluez.obex.service
47rename to obexd/src/org.bluez.obex.service.in
48index a538088..9c815f2 100644
49--- a/obexd/src/org.bluez.obex.service
50+++ b/obexd/src/org.bluez.obex.service.in
51@@ -1,4 +1,4 @@
52 [D-BUS Service]
53 Name=org.bluez.obex
54-Exec=/bin/false
55+Exec=@libexecdir@/obexd
56 SystemdService=dbus-org.bluez.obex.service
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 b1e93dbe19..ae113a9a6d 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 fb583a57f9f4ab956a09e9bb96d89aa13553bf21 Mon Sep 17 00:00:00 2001 1From eeb62ab04b3789a27074236cd0bed7cc64759f4d 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
@@ -21,16 +21,15 @@ no action.
21Upstream-Status: Submitted [https://marc.info/?l=linux-bluetooth&m=153508881804635&w=2] 21Upstream-Status: Submitted [https://marc.info/?l=linux-bluetooth&m=153508881804635&w=2]
22 22
23Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> 23Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
24
25--- 24---
26 unit/test-gatt.c | 2 +- 25 unit/test-gatt.c | 2 +-
27 1 file changed, 1 insertion(+), 1 deletion(-) 26 1 file changed, 1 insertion(+), 1 deletion(-)
28 27
29diff --git a/unit/test-gatt.c b/unit/test-gatt.c 28diff --git a/unit/test-gatt.c b/unit/test-gatt.c
30index 5e06d4e..4864d36 100644 29index 1613fbc..25dd614 100644
31--- a/unit/test-gatt.c 30--- a/unit/test-gatt.c
32+++ b/unit/test-gatt.c 31+++ b/unit/test-gatt.c
33@@ -4546,7 +4546,7 @@ int main(int argc, char *argv[]) 32@@ -4547,7 +4547,7 @@ int main(int argc, char *argv[])
34 test_server, service_db_1, NULL, 33 test_server, service_db_1, NULL,
35 raw_pdu(0x03, 0x00, 0x02), 34 raw_pdu(0x03, 0x00, 0x02),
36 raw_pdu(0xbf, 0x00), 35 raw_pdu(0xbf, 0x00),
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 881494a354..37253b9725 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,20 +1,19 @@
1From 738e73b386352fd90f1f26cc1ee75427cf4dc23b Mon Sep 17 00:00:00 2001 1From c06fecbb009f4c42f01d86383d4571c96ba872f0 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
5 5
6Upstream-Status: Inappropriate [oe specific] 6Upstream-Status: Inappropriate [oe specific]
7Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> 7Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
8
9--- 8---
10 Makefile.am | 3 +++ 9 Makefile.am | 3 +++
11 1 file changed, 3 insertions(+) 10 1 file changed, 3 insertions(+)
12 11
13diff --git a/Makefile.am b/Makefile.am 12diff --git a/Makefile.am b/Makefile.am
14index e738eb3..dab17dd 100644 13index 0ae7211..c8bcaca 100644
15--- a/Makefile.am 14--- a/Makefile.am
16+++ b/Makefile.am 15+++ b/Makefile.am
17@@ -710,6 +710,9 @@ endif 16@@ -713,6 +713,9 @@ endif
18 TESTS = $(unit_tests) 17 TESTS = $(unit_tests)
19 AM_TESTS_ENVIRONMENT = MALLOC_CHECK_=3 MALLOC_PERTURB_=69 18 AM_TESTS_ENVIRONMENT = MALLOC_CHECK_=3 MALLOC_PERTURB_=69
20 19
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 516d859069..567cf5db8c 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 @@
1From b53df61b41088b68c127ac76cc71683ac3453b9d Mon Sep 17 00:00:00 2001 1From 705235d674f574bee08ea3138208938a086e1b53 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de> 2From: Alexander Kanavin <alex@linutronix.de>
3Date: Mon, 12 Dec 2022 13:10:19 +0100 3Date: Mon, 12 Dec 2022 13:10:19 +0100
4Subject: [PATCH] src/shared/util.c: include linux/limits.h 4Subject: [PATCH] src/shared/util.c: include linux/limits.h
@@ -8,13 +8,12 @@ systems such as those using musl.
8 8
9Upstream-Status: Submitted [to linux-bluetooth@vger.kernel.org,luiz.von.dentz@intel.com,frederic.danis@collabora.com] 9Upstream-Status: Submitted [to linux-bluetooth@vger.kernel.org,luiz.von.dentz@intel.com,frederic.danis@collabora.com]
10Signed-off-by: Alexander Kanavin <alex@linutronix.de> 10Signed-off-by: Alexander Kanavin <alex@linutronix.de>
11
12--- 11---
13 src/shared/util.c | 1 + 12 src/shared/util.c | 1 +
14 1 file changed, 1 insertion(+) 13 1 file changed, 1 insertion(+)
15 14
16diff --git a/src/shared/util.c b/src/shared/util.c 15diff --git a/src/shared/util.c b/src/shared/util.c
17index c0c2c4a..036dc0d 100644 16index 6e7634a..45fcd6a 100644
18--- a/src/shared/util.c 17--- a/src/shared/util.c
19+++ b/src/shared/util.c 18+++ b/src/shared/util.c
20@@ -23,6 +23,7 @@ 19@@ -23,6 +23,7 @@
diff --git a/meta/recipes-connectivity/bluez5/bluez5_5.72.bb b/meta/recipes-connectivity/bluez5/bluez5_5.77.bb
index 9fda960ea7..55264fd6b7 100644
--- a/meta/recipes-connectivity/bluez5/bluez5_5.72.bb
+++ b/meta/recipes-connectivity/bluez5/bluez5_5.77.bb
@@ -1,6 +1,6 @@
1require bluez5.inc 1require bluez5.inc
2 2
3SRC_URI[sha256sum] = "499d7fa345a996c1bb650f5c6749e1d929111fa6ece0be0e98687fee6124536e" 3SRC_URI[sha256sum] = "5d032fdc1d4a085813554f57591e2e1fb0ceb2b3616ee56f689bc00e1d150812"
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