diff options
Diffstat (limited to 'meta/recipes-connectivity/bluez5/bluez5.inc')
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5.inc | 46 |
1 files changed, 26 insertions, 20 deletions
diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc index 0a5fc9d4b8..287ebf658e 100644 --- a/meta/recipes-connectivity/bluez5/bluez5.inc +++ b/meta/recipes-connectivity/bluez5/bluez5.inc | |||
@@ -2,7 +2,7 @@ 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=0ad83ca0dc37ab08af448777c581e7ac" | 8 | file://src/main.c;beginline=1;endline=24;md5=0ad83ca0dc37ab08af448777c581e7ac" |
@@ -17,6 +17,14 @@ PACKAGECONFIG ??= "obex-profiles \ | |||
17 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ | 17 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ |
18 | a2dp-profiles \ | 18 | a2dp-profiles \ |
19 | 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 \ | ||
20 | network-profiles \ | 28 | network-profiles \ |
21 | hid-profiles \ | 29 | hid-profiles \ |
22 | hog-profiles \ | 30 | hog-profiles \ |
@@ -38,6 +46,14 @@ PACKAGECONFIG[network-profiles] = "--enable-network,--disable-network" | |||
38 | PACKAGECONFIG[hid-profiles] = "--enable-hid,--disable-hid" | 46 | PACKAGECONFIG[hid-profiles] = "--enable-hid,--disable-hid" |
39 | PACKAGECONFIG[hog-profiles] = "--enable-hog,--disable-hog" | 47 | PACKAGECONFIG[hog-profiles] = "--enable-hog,--disable-hog" |
40 | 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" | ||
41 | PACKAGECONFIG[sixaxis] = "--enable-sixaxis,--disable-sixaxis" | 57 | PACKAGECONFIG[sixaxis] = "--enable-sixaxis,--disable-sixaxis" |
42 | PACKAGECONFIG[tools] = "--enable-tools,--disable-tools" | 58 | PACKAGECONFIG[tools] = "--enable-tools,--disable-tools" |
43 | PACKAGECONFIG[threads] = "--enable-threads,--disable-threads" | 59 | PACKAGECONFIG[threads] = "--enable-threads,--disable-threads" |
@@ -50,11 +66,10 @@ PACKAGECONFIG[manpages] = "--enable-manpages,--disable-manpages,python3-docutils | |||
50 | SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \ | 66 | SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \ |
51 | file://init \ | 67 | file://init \ |
52 | file://run-ptest \ | 68 | file://run-ptest \ |
53 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '', 'file://0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch', d)} \ | ||
54 | 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 \ |
55 | file://0001-test-gatt-Fix-hung-issue.patch \ | 70 | file://0001-bluez5-disable-aics-tests.patch \ |
56 | " | 71 | " |
57 | S = "${WORKDIR}/bluez-${PV}" | 72 | S = "${UNPACKDIR}/bluez-${PV}" |
58 | 73 | ||
59 | CVE_PRODUCT = "bluez" | 74 | CVE_PRODUCT = "bluez" |
60 | 75 | ||
@@ -64,9 +79,12 @@ EXTRA_OECONF = "\ | |||
64 | --enable-test \ | 79 | --enable-test \ |
65 | --enable-datafiles \ | 80 | --enable-datafiles \ |
66 | --enable-library \ | 81 | --enable-library \ |
82 | --enable-pie \ | ||
67 | --without-zsh-completion-dir \ | 83 | --without-zsh-completion-dir \ |
68 | " | 84 | " |
69 | 85 | ||
86 | CFLAGS += "-DFIRMWARE_DIR=\\"${nonarch_base_libdir}/firmware\\"" | ||
87 | |||
70 | # bluez5 builds a large number of useful utilities but does not | 88 | # bluez5 builds a large number of useful utilities but does not |
71 | # install them. Specify which ones we want put into ${PN}-noinst-tools. | 89 | # install them. Specify which ones we want put into ${PN}-noinst-tools. |
72 | NOINST_TOOLS_READLINE ??= "" | 90 | NOINST_TOOLS_READLINE ??= "" |
@@ -80,28 +98,16 @@ NOINST_TOOLS = " \ | |||
80 | 98 | ||
81 | do_install:append() { | 99 | do_install:append() { |
82 | install -d ${D}${INIT_D_DIR} | 100 | install -d ${D}${INIT_D_DIR} |
83 | install -m 0755 ${WORKDIR}/init ${D}${INIT_D_DIR}/bluetooth | 101 | install -m 0755 ${UNPACKDIR}/init ${D}${INIT_D_DIR}/bluetooth |
84 | 102 | ||
85 | install -d ${D}${sysconfdir}/bluetooth/ | 103 | if [ -f ${D}${sysconfdir}/init.d/bluetooth ]; then |
86 | if [ -f ${S}/profiles/network/network.conf ]; then | 104 | sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}${sysconfdir}/init.d/bluetooth |
87 | install -m 0644 ${S}/profiles/network/network.conf ${D}/${sysconfdir}/bluetooth/ | ||
88 | fi | ||
89 | if [ -f ${S}/profiles/input/input.conf ]; then | ||
90 | install -m 0644 ${S}/profiles/input/input.conf ${D}/${sysconfdir}/bluetooth/ | ||
91 | fi | ||
92 | |||
93 | if [ -f ${D}/${sysconfdir}/init.d/bluetooth ]; then | ||
94 | sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}/${sysconfdir}/init.d/bluetooth | ||
95 | fi | 105 | fi |
96 | 106 | ||
97 | # Install desired tools that upstream leaves in build area | 107 | # Install desired tools that upstream leaves in build area |
98 | for f in ${NOINST_TOOLS} ; do | 108 | for f in ${NOINST_TOOLS} ; do |
99 | install -m 755 ${B}/$f ${D}/${bindir} | 109 | install -m 755 ${B}/$f ${D}${bindir} |
100 | done | 110 | done |
101 | |||
102 | # Patch python tools to use Python 3; they should be source compatible, but | ||
103 | # still refer to Python 2 in the shebang | ||
104 | sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${libdir}/bluez/test/* | ||
105 | } | 111 | } |
106 | 112 | ||
107 | PACKAGES =+ "${PN}-testtools ${PN}-obex ${PN}-noinst-tools" | 113 | PACKAGES =+ "${PN}-testtools ${PN}-obex ${PN}-noinst-tools" |