summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/bluez5/bluez5.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/bluez5/bluez5.inc')
-rw-r--r--meta/recipes-connectivity/bluez5/bluez5.inc35
1 files changed, 22 insertions, 13 deletions
diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc
index a31d7076ba..287ebf658e 100644
--- a/meta/recipes-connectivity/bluez5/bluez5.inc
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -7,7 +7,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=0ad83ca0dc37ab08af448777c581e7ac" 8 file://src/main.c;beginline=1;endline=24;md5=0ad83ca0dc37ab08af448777c581e7ac"
9DEPENDS = "dbus glib-2.0" 9DEPENDS = "dbus glib-2.0"
10RDEPENDS:${PN} += "dbus"
11PROVIDES += "bluez-hcidump" 10PROVIDES += "bluez-hcidump"
12RPROVIDES:${PN} += "bluez-hcidump" 11RPROVIDES:${PN} += "bluez-hcidump"
13 12
@@ -18,6 +17,14 @@ PACKAGECONFIG ??= "obex-profiles \
18 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ 17 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
19 a2dp-profiles \ 18 a2dp-profiles \
20 avrcp-profiles \ 19 avrcp-profiles \
20 bap-profiles \
21 bass-profiles \
22 mcp-profiles \
23 ccp-profiles \
24 vcp-profiles \
25 micp-profiles \
26 csip-profiles \
27 asha-profiles \
21 network-profiles \ 28 network-profiles \
22 hid-profiles \ 29 hid-profiles \
23 hog-profiles \ 30 hog-profiles \
@@ -39,6 +46,14 @@ PACKAGECONFIG[network-profiles] = "--enable-network,--disable-network"
39PACKAGECONFIG[hid-profiles] = "--enable-hid,--disable-hid" 46PACKAGECONFIG[hid-profiles] = "--enable-hid,--disable-hid"
40PACKAGECONFIG[hog-profiles] = "--enable-hog,--disable-hog" 47PACKAGECONFIG[hog-profiles] = "--enable-hog,--disable-hog"
41PACKAGECONFIG[health-profiles] = "--enable-health,--disable-health" 48PACKAGECONFIG[health-profiles] = "--enable-health,--disable-health"
49PACKAGECONFIG[bap-profiles] = "--enable-bap,--disable-bap"
50PACKAGECONFIG[bass-profiles] = "--enable-bass,--disable-bass"
51PACKAGECONFIG[mcp-profiles] = "--enable-mcp,--disable-mcp"
52PACKAGECONFIG[ccp-profiles] = "--enable-ccp,--disable-ccp"
53PACKAGECONFIG[vcp-profiles] = "--enable-vcp,--disable-vcp"
54PACKAGECONFIG[micp-profiles] = "--enable-micp,--disable-micp"
55PACKAGECONFIG[csip-profiles] = "--enable-csip,--disable-csip"
56PACKAGECONFIG[asha-profiles] = "--enable-asha,--disable-asha"
42PACKAGECONFIG[sixaxis] = "--enable-sixaxis,--disable-sixaxis" 57PACKAGECONFIG[sixaxis] = "--enable-sixaxis,--disable-sixaxis"
43PACKAGECONFIG[tools] = "--enable-tools,--disable-tools" 58PACKAGECONFIG[tools] = "--enable-tools,--disable-tools"
44PACKAGECONFIG[threads] = "--enable-threads,--disable-threads" 59PACKAGECONFIG[threads] = "--enable-threads,--disable-threads"
@@ -51,12 +66,10 @@ PACKAGECONFIG[manpages] = "--enable-manpages,--disable-manpages,python3-docutils
51SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \ 66SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \
52 file://init \ 67 file://init \
53 file://run-ptest \ 68 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 \ 69 file://0001-tests-add-a-target-for-building-tests-without-runnin.patch \
56 file://0001-test-gatt-Fix-hung-issue.patch \ 70 file://0001-bluez5-disable-aics-tests.patch \
57 file://0004-src-shared-util.c-include-linux-limits.h.patch \
58 " 71 "
59S = "${WORKDIR}/bluez-${PV}" 72S = "${UNPACKDIR}/bluez-${PV}"
60 73
61CVE_PRODUCT = "bluez" 74CVE_PRODUCT = "bluez"
62 75
@@ -85,20 +98,16 @@ NOINST_TOOLS = " \
85 98
86do_install:append() { 99do_install:append() {
87 install -d ${D}${INIT_D_DIR} 100 install -d ${D}${INIT_D_DIR}
88 install -m 0755 ${WORKDIR}/init ${D}${INIT_D_DIR}/bluetooth 101 install -m 0755 ${UNPACKDIR}/init ${D}${INIT_D_DIR}/bluetooth
89 102
90 if [ -f ${D}/${sysconfdir}/init.d/bluetooth ]; then 103 if [ -f ${D}${sysconfdir}/init.d/bluetooth ]; then
91 sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}/${sysconfdir}/init.d/bluetooth 104 sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}${sysconfdir}/init.d/bluetooth
92 fi 105 fi
93 106
94 # Install desired tools that upstream leaves in build area 107 # Install desired tools that upstream leaves in build area
95 for f in ${NOINST_TOOLS} ; do 108 for f in ${NOINST_TOOLS} ; do
96 install -m 755 ${B}/$f ${D}/${bindir} 109 install -m 755 ${B}/$f ${D}${bindir}
97 done 110 done
98
99 # Patch python tools to use Python 3; they should be source compatible, but
100 # still refer to Python 2 in the shebang
101 sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${libdir}/bluez/test/*
102} 111}
103 112
104PACKAGES =+ "${PN}-testtools ${PN}-obex ${PN}-noinst-tools" 113PACKAGES =+ "${PN}-testtools ${PN}-obex ${PN}-noinst-tools"