diff options
Diffstat (limited to 'meta/recipes-connectivity/bluez5/bluez5.inc')
| -rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5.inc | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc index f782528c86..d9b649258e 100644 --- a/meta/recipes-connectivity/bluez5/bluez5.inc +++ b/meta/recipes-connectivity/bluez5/bluez5.inc | |||
| @@ -32,6 +32,15 @@ EXTRA_OECONF = "\ | |||
| 32 | --enable-library \ | 32 | --enable-library \ |
| 33 | " | 33 | " |
| 34 | 34 | ||
| 35 | # bluez5 builds a large number of useful utilities but does not | ||
| 36 | # install them. Specify which ones we want put into ${PN}-noinst-tools. | ||
| 37 | NOINST_TOOLS_READLINE ??= "" | ||
| 38 | NOINST_TOOLS_EXPERIMENTAL ??= "" | ||
| 39 | NOINST_TOOLS = " \ | ||
| 40 | ${NOINST_TOOLS_READLINE} \ | ||
| 41 | ${@bb.utils.contains('PACKAGECONFIG', 'experimental', '${NOINST_TOOLS_EXPERIMENTAL}', '', d)} \ | ||
| 42 | " | ||
| 43 | |||
| 35 | do_install_append() { | 44 | do_install_append() { |
| 36 | install -d ${D}${sysconfdir}/bluetooth/ | 45 | install -d ${D}${sysconfdir}/bluetooth/ |
| 37 | if [ -f ${S}/profiles/audio/audio.conf ]; then | 46 | if [ -f ${S}/profiles/audio/audio.conf ]; then |
| @@ -45,10 +54,15 @@ do_install_append() { | |||
| 45 | fi | 54 | fi |
| 46 | # at_console doesn't really work with the current state of OE, so punch some more holes so people can actually use BT | 55 | # at_console doesn't really work with the current state of OE, so punch some more holes so people can actually use BT |
| 47 | install -m 0644 ${WORKDIR}/bluetooth.conf ${D}/${sysconfdir}/dbus-1/system.d/ | 56 | install -m 0644 ${WORKDIR}/bluetooth.conf ${D}/${sysconfdir}/dbus-1/system.d/ |
| 57 | |||
| 58 | # Install desired tools that upstream leaves in build area | ||
| 59 | for f in ${NOINST_TOOLS} ; do | ||
| 60 | install -m 755 ${B}/$f ${D}/${bindir} | ||
| 61 | done | ||
| 48 | } | 62 | } |
| 49 | 63 | ||
| 50 | ALLOW_EMPTY_libasound-module-bluez = "1" | 64 | ALLOW_EMPTY_libasound-module-bluez = "1" |
| 51 | PACKAGES =+ "libasound-module-bluez ${PN}-testtools ${PN}-obex" | 65 | PACKAGES =+ "libasound-module-bluez ${PN}-testtools ${PN}-obex ${PN}-noinst-tools" |
| 52 | 66 | ||
| 53 | FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa" | 67 | FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa" |
| 54 | FILES_${PN} += "${libdir}/bluetooth/plugins ${libdir}/bluetooth/plugins/*.so ${base_libdir}/udev/ ${nonarch_base_libdir}/udev/ ${systemd_unitdir}/ ${datadir}/dbus-1" | 68 | FILES_${PN} += "${libdir}/bluetooth/plugins ${libdir}/bluetooth/plugins/*.so ${base_libdir}/udev/ ${nonarch_base_libdir}/udev/ ${systemd_unitdir}/ ${datadir}/dbus-1" |
| @@ -65,6 +79,16 @@ SYSTEMD_SERVICE_${PN}-obex = "obex.service" | |||
| 65 | 79 | ||
| 66 | FILES_${PN}-testtools = "${libdir}/bluez/test/*" | 80 | FILES_${PN}-testtools = "${libdir}/bluez/test/*" |
| 67 | 81 | ||
| 82 | def get_noinst_tools_paths (d, bb, tools): | ||
| 83 | s = list() | ||
| 84 | bindir = d.getVar("bindir", True) | ||
| 85 | for bdp in tools.split(): | ||
| 86 | f = os.path.basename(bdp) | ||
| 87 | s.append("%s/%s" % (bindir, f)) | ||
| 88 | return "\n".join(s) | ||
| 89 | |||
| 90 | FILES_${PN}-noinst-tools = "${@get_noinst_tools_paths(d, bb, d.getVar('NOINST_TOOLS', True))}" | ||
| 91 | |||
| 68 | FILES_${PN}-dbg += "\ | 92 | FILES_${PN}-dbg += "\ |
| 69 | ${libdir}/${BPN}/bluetooth/.debug \ | 93 | ${libdir}/${BPN}/bluetooth/.debug \ |
| 70 | ${libdir}/bluetooth/plugins/.debug \ | 94 | ${libdir}/bluetooth/plugins/.debug \ |
