diff options
Diffstat (limited to 'meta/recipes-connectivity/bluez5/bluez5.inc')
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5.inc | 46 |
1 files changed, 22 insertions, 24 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" |