diff options
Diffstat (limited to 'meta/recipes-connectivity/bluez5/bluez5.inc')
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5.inc | 35 |
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" |
9 | DEPENDS = "dbus glib-2.0" | 9 | DEPENDS = "dbus glib-2.0" |
10 | RDEPENDS:${PN} += "dbus" | ||
11 | PROVIDES += "bluez-hcidump" | 10 | PROVIDES += "bluez-hcidump" |
12 | RPROVIDES:${PN} += "bluez-hcidump" | 11 | RPROVIDES:${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" | |||
39 | PACKAGECONFIG[hid-profiles] = "--enable-hid,--disable-hid" | 46 | PACKAGECONFIG[hid-profiles] = "--enable-hid,--disable-hid" |
40 | PACKAGECONFIG[hog-profiles] = "--enable-hog,--disable-hog" | 47 | PACKAGECONFIG[hog-profiles] = "--enable-hog,--disable-hog" |
41 | PACKAGECONFIG[health-profiles] = "--enable-health,--disable-health" | 48 | PACKAGECONFIG[health-profiles] = "--enable-health,--disable-health" |
49 | PACKAGECONFIG[bap-profiles] = "--enable-bap,--disable-bap" | ||
50 | PACKAGECONFIG[bass-profiles] = "--enable-bass,--disable-bass" | ||
51 | PACKAGECONFIG[mcp-profiles] = "--enable-mcp,--disable-mcp" | ||
52 | PACKAGECONFIG[ccp-profiles] = "--enable-ccp,--disable-ccp" | ||
53 | PACKAGECONFIG[vcp-profiles] = "--enable-vcp,--disable-vcp" | ||
54 | PACKAGECONFIG[micp-profiles] = "--enable-micp,--disable-micp" | ||
55 | PACKAGECONFIG[csip-profiles] = "--enable-csip,--disable-csip" | ||
56 | PACKAGECONFIG[asha-profiles] = "--enable-asha,--disable-asha" | ||
42 | PACKAGECONFIG[sixaxis] = "--enable-sixaxis,--disable-sixaxis" | 57 | PACKAGECONFIG[sixaxis] = "--enable-sixaxis,--disable-sixaxis" |
43 | PACKAGECONFIG[tools] = "--enable-tools,--disable-tools" | 58 | PACKAGECONFIG[tools] = "--enable-tools,--disable-tools" |
44 | PACKAGECONFIG[threads] = "--enable-threads,--disable-threads" | 59 | PACKAGECONFIG[threads] = "--enable-threads,--disable-threads" |
@@ -51,12 +66,10 @@ PACKAGECONFIG[manpages] = "--enable-manpages,--disable-manpages,python3-docutils | |||
51 | SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \ | 66 | SRC_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 | " |
59 | S = "${WORKDIR}/bluez-${PV}" | 72 | S = "${UNPACKDIR}/bluez-${PV}" |
60 | 73 | ||
61 | CVE_PRODUCT = "bluez" | 74 | CVE_PRODUCT = "bluez" |
62 | 75 | ||
@@ -85,20 +98,16 @@ NOINST_TOOLS = " \ | |||
85 | 98 | ||
86 | do_install:append() { | 99 | do_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 | ||
104 | PACKAGES =+ "${PN}-testtools ${PN}-obex ${PN}-noinst-tools" | 113 | PACKAGES =+ "${PN}-testtools ${PN}-obex ${PN}-noinst-tools" |