diff options
Diffstat (limited to 'meta/recipes-connectivity/bluez5')
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5.inc | 46 | ||||
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5/0001-test-gatt-Fix-hung-issue.patch | 10 | ||||
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5/0001-tests-add-a-target-for-building-tests-without-runnin.patch | 10 | ||||
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5/0004-src-shared-util.c-include-linux-limits.h.patch | 27 | ||||
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5_5.72.bb (renamed from meta/recipes-connectivity/bluez5/bluez5_5.54.bb) | 5 |
5 files changed, 60 insertions, 38 deletions
diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc index 4c1156c67c..a31d7076ba 100644 --- a/meta/recipes-connectivity/bluez5/bluez5.inc +++ b/meta/recipes-connectivity/bluez5/bluez5.inc | |||
@@ -2,15 +2,16 @@ SUMMARY = "Linux Bluetooth Stack Userland V5" | |||
2 | DESCRIPTION = "Linux Bluetooth stack V5 userland components. These include a system configurations, daemons, tools and system libraries." | 2 | DESCRIPTION = "Linux Bluetooth stack V5 userland components. These include a system configurations, daemons, tools and system libraries." |
3 | HOMEPAGE = "http://www.bluez.org" | 3 | HOMEPAGE = "http://www.bluez.org" |
4 | SECTION = "libs" | 4 | SECTION = "libs" |
5 | LICENSE = "GPLv2+ & LGPLv2.1+" | 5 | LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later" |
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \ | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \ |
7 | file://COPYING.LIB;md5=fb504b67c50331fc78734fed90fb0e09 \ | 7 | file://COPYING.LIB;md5=fb504b67c50331fc78734fed90fb0e09 \ |
8 | file://src/main.c;beginline=1;endline=24;md5=9bc54b93cd7e17bf03f52513f39f926e" | 8 | file://src/main.c;beginline=1;endline=24;md5=0ad83ca0dc37ab08af448777c581e7ac" |
9 | DEPENDS = "dbus glib-2.0" | 9 | DEPENDS = "dbus glib-2.0" |
10 | RDEPENDS:${PN} += "dbus" | ||
10 | PROVIDES += "bluez-hcidump" | 11 | PROVIDES += "bluez-hcidump" |
11 | RPROVIDES_${PN} += "bluez-hcidump" | 12 | RPROVIDES:${PN} += "bluez-hcidump" |
12 | 13 | ||
13 | RCONFLICTS_${PN} = "bluez4" | 14 | RCONFLICTS:${PN} = "bluez4" |
14 | 15 | ||
15 | PACKAGECONFIG ??= "obex-profiles \ | 16 | PACKAGECONFIG ??= "obex-profiles \ |
16 | readline \ | 17 | readline \ |
@@ -45,6 +46,7 @@ PACKAGECONFIG[deprecated] = "--enable-deprecated,--disable-deprecated" | |||
45 | PACKAGECONFIG[mesh] = "--enable-mesh --enable-external-ell,--disable-mesh, json-c ell" | 46 | PACKAGECONFIG[mesh] = "--enable-mesh --enable-external-ell,--disable-mesh, json-c ell" |
46 | PACKAGECONFIG[btpclient] = "--enable-btpclient --enable-external-ell,--disable-btpclient, ell" | 47 | PACKAGECONFIG[btpclient] = "--enable-btpclient --enable-external-ell,--disable-btpclient, ell" |
47 | PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,udev" | 48 | PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,udev" |
49 | PACKAGECONFIG[manpages] = "--enable-manpages,--disable-manpages,python3-docutils-native" | ||
48 | 50 | ||
49 | SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \ | 51 | SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \ |
50 | file://init \ | 52 | file://init \ |
@@ -52,6 +54,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \ | |||
52 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '', 'file://0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch', d)} \ | 54 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '', 'file://0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch', d)} \ |
53 | file://0001-tests-add-a-target-for-building-tests-without-runnin.patch \ | 55 | file://0001-tests-add-a-target-for-building-tests-without-runnin.patch \ |
54 | file://0001-test-gatt-Fix-hung-issue.patch \ | 56 | file://0001-test-gatt-Fix-hung-issue.patch \ |
57 | file://0004-src-shared-util.c-include-linux-limits.h.patch \ | ||
55 | " | 58 | " |
56 | S = "${WORKDIR}/bluez-${PV}" | 59 | S = "${WORKDIR}/bluez-${PV}" |
57 | 60 | ||
@@ -63,9 +66,12 @@ EXTRA_OECONF = "\ | |||
63 | --enable-test \ | 66 | --enable-test \ |
64 | --enable-datafiles \ | 67 | --enable-datafiles \ |
65 | --enable-library \ | 68 | --enable-library \ |
69 | --enable-pie \ | ||
66 | --without-zsh-completion-dir \ | 70 | --without-zsh-completion-dir \ |
67 | " | 71 | " |
68 | 72 | ||
73 | CFLAGS += "-DFIRMWARE_DIR=\\"${nonarch_base_libdir}/firmware\\"" | ||
74 | |||
69 | # bluez5 builds a large number of useful utilities but does not | 75 | # bluez5 builds a large number of useful utilities but does not |
70 | # install them. Specify which ones we want put into ${PN}-noinst-tools. | 76 | # install them. Specify which ones we want put into ${PN}-noinst-tools. |
71 | NOINST_TOOLS_READLINE ??= "" | 77 | NOINST_TOOLS_READLINE ??= "" |
@@ -77,18 +83,10 @@ NOINST_TOOLS = " \ | |||
77 | ${@bb.utils.contains('PACKAGECONFIG', 'tools', '${NOINST_TOOLS_BT}', '', d)} \ | 83 | ${@bb.utils.contains('PACKAGECONFIG', 'tools', '${NOINST_TOOLS_BT}', '', d)} \ |
78 | " | 84 | " |
79 | 85 | ||
80 | do_install_append() { | 86 | do_install:append() { |
81 | install -d ${D}${INIT_D_DIR} | 87 | install -d ${D}${INIT_D_DIR} |
82 | install -m 0755 ${WORKDIR}/init ${D}${INIT_D_DIR}/bluetooth | 88 | install -m 0755 ${WORKDIR}/init ${D}${INIT_D_DIR}/bluetooth |
83 | 89 | ||
84 | install -d ${D}${sysconfdir}/bluetooth/ | ||
85 | if [ -f ${S}/profiles/network/network.conf ]; then | ||
86 | install -m 0644 ${S}/profiles/network/network.conf ${D}/${sysconfdir}/bluetooth/ | ||
87 | fi | ||
88 | if [ -f ${S}/profiles/input/input.conf ]; then | ||
89 | install -m 0644 ${S}/profiles/input/input.conf ${D}/${sysconfdir}/bluetooth/ | ||
90 | fi | ||
91 | |||
92 | if [ -f ${D}/${sysconfdir}/init.d/bluetooth ]; then | 90 | if [ -f ${D}/${sysconfdir}/init.d/bluetooth ]; then |
93 | sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}/${sysconfdir}/init.d/bluetooth | 91 | sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}/${sysconfdir}/init.d/bluetooth |
94 | fi | 92 | fi |
@@ -105,25 +103,25 @@ do_install_append() { | |||
105 | 103 | ||
106 | PACKAGES =+ "${PN}-testtools ${PN}-obex ${PN}-noinst-tools" | 104 | PACKAGES =+ "${PN}-testtools ${PN}-obex ${PN}-noinst-tools" |
107 | 105 | ||
108 | FILES_${PN} += " \ | 106 | FILES:${PN} += " \ |
109 | ${libdir}/bluetooth/plugins/*.so \ | 107 | ${libdir}/bluetooth/plugins/*.so \ |
110 | ${systemd_unitdir}/ ${datadir}/dbus-1 \ | 108 | ${systemd_unitdir}/ ${datadir}/dbus-1 \ |
111 | ${libdir}/cups \ | 109 | ${libdir}/cups \ |
112 | " | 110 | " |
113 | FILES_${PN}-dev += " \ | 111 | FILES:${PN}-dev += " \ |
114 | ${libdir}/bluetooth/plugins/*.la \ | 112 | ${libdir}/bluetooth/plugins/*.la \ |
115 | " | 113 | " |
116 | 114 | ||
117 | FILES_${PN}-obex = "${libexecdir}/bluetooth/obexd \ | 115 | FILES:${PN}-obex = "${libexecdir}/bluetooth/obexd \ |
118 | ${exec_prefix}/lib/systemd/user/obex.service \ | 116 | ${exec_prefix}/lib/systemd/user/obex.service \ |
119 | ${systemd_system_unitdir}/obex.service \ | 117 | ${systemd_system_unitdir}/obex.service \ |
120 | ${sysconfdir}/systemd/system/multi-user.target.wants/obex.service \ | 118 | ${sysconfdir}/systemd/system/multi-user.target.wants/obex.service \ |
121 | ${datadir}/dbus-1/services/org.bluez.obex.service \ | 119 | ${datadir}/dbus-1/services/org.bluez.obex.service \ |
122 | ${sysconfdir}/dbus-1/system.d/obexd.conf \ | 120 | ${sysconfdir}/dbus-1/system.d/obexd.conf \ |
123 | " | 121 | " |
124 | SYSTEMD_SERVICE_${PN}-obex = "obex.service" | 122 | SYSTEMD_SERVICE:${PN}-obex = "obex.service" |
125 | 123 | ||
126 | FILES_${PN}-testtools = "${libdir}/bluez/test/*" | 124 | FILES:${PN}-testtools = "${libdir}/bluez/test/*" |
127 | 125 | ||
128 | def get_noinst_tools_paths (d, bb, tools): | 126 | def get_noinst_tools_paths (d, bb, tools): |
129 | s = list() | 127 | s = list() |
@@ -133,14 +131,14 @@ def get_noinst_tools_paths (d, bb, tools): | |||
133 | s.append("%s/%s" % (bindir, f)) | 131 | s.append("%s/%s" % (bindir, f)) |
134 | return "\n".join(s) | 132 | return "\n".join(s) |
135 | 133 | ||
136 | FILES_${PN}-noinst-tools = "${@get_noinst_tools_paths(d, bb, d.getVar('NOINST_TOOLS'))}" | 134 | FILES:${PN}-noinst-tools = "${@get_noinst_tools_paths(d, bb, d.getVar('NOINST_TOOLS'))}" |
137 | 135 | ||
138 | RDEPENDS_${PN}-testtools += "python3-core python3-dbus" | 136 | RDEPENDS:${PN}-testtools += "python3-core python3-dbus" |
139 | RDEPENDS_${PN}-testtools += "${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'python3-pygobject', '', d)}" | 137 | RDEPENDS:${PN}-testtools += "${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'python3-pygobject', '', d)}" |
140 | 138 | ||
141 | SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'bluetooth.service', '', d)}" | 139 | SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'bluetooth.service', '', d)}" |
142 | INITSCRIPT_PACKAGES = "${PN}" | 140 | INITSCRIPT_PACKAGES = "${PN}" |
143 | INITSCRIPT_NAME_${PN} = "bluetooth" | 141 | INITSCRIPT_NAME:${PN} = "bluetooth" |
144 | 142 | ||
145 | do_compile_ptest() { | 143 | do_compile_ptest() { |
146 | oe_runmake buildtests | 144 | oe_runmake buildtests |
@@ -151,4 +149,4 @@ do_install_ptest() { | |||
151 | rm -f ${D}${PTEST_PATH}/unit/*.o | 149 | rm -f ${D}${PTEST_PATH}/unit/*.o |
152 | } | 150 | } |
153 | 151 | ||
154 | RDEPENDS_${PN}-ptest_append_libc-glibc = " glibc-gconv-utf-16" | 152 | RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-gconv-utf-16" |
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 e90b6a546f..b1e93dbe19 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 61e741654cc2eb167bca212a3bb2ba8f3ba280c1 Mon Sep 17 00:00:00 2001 | 1 | From fb583a57f9f4ab956a09e9bb96d89aa13553bf21 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 |
@@ -21,15 +21,16 @@ no action. | |||
21 | Upstream-Status: Submitted [https://marc.info/?l=linux-bluetooth&m=153508881804635&w=2] | 21 | Upstream-Status: Submitted [https://marc.info/?l=linux-bluetooth&m=153508881804635&w=2] |
22 | 22 | ||
23 | Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> | 23 | Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> |
24 | |||
24 | --- | 25 | --- |
25 | unit/test-gatt.c | 2 +- | 26 | unit/test-gatt.c | 2 +- |
26 | 1 file changed, 1 insertion(+), 1 deletion(-) | 27 | 1 file changed, 1 insertion(+), 1 deletion(-) |
27 | 28 | ||
28 | diff --git a/unit/test-gatt.c b/unit/test-gatt.c | 29 | diff --git a/unit/test-gatt.c b/unit/test-gatt.c |
29 | index c7e28f8..b57373b 100644 | 30 | index 5e06d4e..4864d36 100644 |
30 | --- a/unit/test-gatt.c | 31 | --- a/unit/test-gatt.c |
31 | +++ b/unit/test-gatt.c | 32 | +++ b/unit/test-gatt.c |
32 | @@ -4463,7 +4463,7 @@ int main(int argc, char *argv[]) | 33 | @@ -4546,7 +4546,7 @@ int main(int argc, char *argv[]) |
33 | test_server, service_db_1, NULL, | 34 | test_server, service_db_1, NULL, |
34 | raw_pdu(0x03, 0x00, 0x02), | 35 | raw_pdu(0x03, 0x00, 0x02), |
35 | raw_pdu(0xbf, 0x00), | 36 | raw_pdu(0xbf, 0x00), |
@@ -38,6 +39,3 @@ index c7e28f8..b57373b 100644 | |||
38 | 39 | ||
39 | define_test_server("/robustness/unkown-command", | 40 | define_test_server("/robustness/unkown-command", |
40 | test_server, service_db_1, NULL, | 41 | test_server, service_db_1, NULL, |
41 | -- | ||
42 | 2.7.4 | ||
43 | |||
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 24ddae6b63..881494a354 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,19 +1,20 @@ | |||
1 | From 4bdf0f96dcaa945fd29f26d56e5b36d8c23e4c8b Mon Sep 17 00:00:00 2001 | 1 | From 738e73b386352fd90f1f26cc1ee75427cf4dc23b 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 |
5 | 5 | ||
6 | Upstream-Status: Inappropriate [oe specific] | 6 | Upstream-Status: Inappropriate [oe specific] |
7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
8 | |||
8 | --- | 9 | --- |
9 | Makefile.am | 3 +++ | 10 | Makefile.am | 3 +++ |
10 | 1 file changed, 3 insertions(+) | 11 | 1 file changed, 3 insertions(+) |
11 | 12 | ||
12 | diff --git a/Makefile.am b/Makefile.am | 13 | diff --git a/Makefile.am b/Makefile.am |
13 | index 1a48a71..ba3b92f 100644 | 14 | index e738eb3..dab17dd 100644 |
14 | --- a/Makefile.am | 15 | --- a/Makefile.am |
15 | +++ b/Makefile.am | 16 | +++ b/Makefile.am |
16 | @@ -425,6 +425,9 @@ endif | 17 | @@ -710,6 +710,9 @@ endif |
17 | TESTS = $(unit_tests) | 18 | TESTS = $(unit_tests) |
18 | AM_TESTS_ENVIRONMENT = MALLOC_CHECK_=3 MALLOC_PERTURB_=69 | 19 | AM_TESTS_ENVIRONMENT = MALLOC_CHECK_=3 MALLOC_PERTURB_=69 |
19 | 20 | ||
@@ -23,6 +24,3 @@ index 1a48a71..ba3b92f 100644 | |||
23 | if DBUS_RUN_SESSION | 24 | if DBUS_RUN_SESSION |
24 | AM_TESTS_ENVIRONMENT += dbus-run-session -- | 25 | AM_TESTS_ENVIRONMENT += dbus-run-session -- |
25 | endif | 26 | endif |
26 | -- | ||
27 | 2.8.0.rc3 | ||
28 | |||
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 new file mode 100644 index 0000000000..516d859069 --- /dev/null +++ b/meta/recipes-connectivity/bluez5/bluez5/0004-src-shared-util.c-include-linux-limits.h.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From b53df61b41088b68c127ac76cc71683ac3453b9d Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex@linutronix.de> | ||
3 | Date: Mon, 12 Dec 2022 13:10:19 +0100 | ||
4 | Subject: [PATCH] src/shared/util.c: include linux/limits.h | ||
5 | |||
6 | MAX_INPUT is defined in that file. This matters on non-glibc | ||
7 | systems such as those using musl. | ||
8 | |||
9 | Upstream-Status: Submitted [to linux-bluetooth@vger.kernel.org,luiz.von.dentz@intel.com,frederic.danis@collabora.com] | ||
10 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
11 | |||
12 | --- | ||
13 | src/shared/util.c | 1 + | ||
14 | 1 file changed, 1 insertion(+) | ||
15 | |||
16 | diff --git a/src/shared/util.c b/src/shared/util.c | ||
17 | index c0c2c4a..036dc0d 100644 | ||
18 | --- a/src/shared/util.c | ||
19 | +++ b/src/shared/util.c | ||
20 | @@ -23,6 +23,7 @@ | ||
21 | #include <unistd.h> | ||
22 | #include <dirent.h> | ||
23 | #include <limits.h> | ||
24 | +#include <linux/limits.h> | ||
25 | #include <string.h> | ||
26 | |||
27 | #ifdef HAVE_SYS_RANDOM_H | ||
diff --git a/meta/recipes-connectivity/bluez5/bluez5_5.54.bb b/meta/recipes-connectivity/bluez5/bluez5_5.72.bb index 260eee1402..9fda960ea7 100644 --- a/meta/recipes-connectivity/bluez5/bluez5_5.54.bb +++ b/meta/recipes-connectivity/bluez5/bluez5_5.72.bb | |||
@@ -1,7 +1,8 @@ | |||
1 | require bluez5.inc | 1 | require bluez5.inc |
2 | 2 | ||
3 | SRC_URI[md5sum] = "e637feb2dbb7582bbbff1708367a847c" | 3 | SRC_URI[sha256sum] = "499d7fa345a996c1bb650f5c6749e1d929111fa6ece0be0e98687fee6124536e" |
4 | SRC_URI[sha256sum] = "68cdab9e63e8832b130d5979dc8c96fdb087b31278f342874d992af3e56656dc" | 4 | |
5 | CVE_STATUS[CVE-2020-24490] = "cpe-incorrect: This issue has kernel fixes rather than bluez fixes" | ||
5 | 6 | ||
6 | # noinst programs in Makefile.tools that are conditional on READLINE | 7 | # noinst programs in Makefile.tools that are conditional on READLINE |
7 | # support | 8 | # support |