[OE-core] [PATCH] Bluez5: Add gatttool to new package bluez5-tools

Qian Lei qianl.fnst at cn.fujitsu.com
Tue Nov 4 05:04:56 UTC 2014


Gatttool in bluez5 is not installed into system any more. But in some cases
we do need this tool to debug some thing. So I add a new package named bluez5-tools
which includes some programs we may need but not installed.

Signed-off-by: Qian Lei <qianl.fnst at cn.fujitsu.com>
---
 meta/recipes-connectivity/bluez5/bluez5.inc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc
index c3dd946..6c05f07 100644
--- a/meta/recipes-connectivity/bluez5/bluez5.inc
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -42,11 +42,12 @@ do_install_append() {
 	    install -m 0644 ${S}/profiles/input/input.conf ${D}/${sysconfdir}/bluetooth/
 	fi
 	# at_console doesn't really work with the current state of OE, so punch some more holes so people can actually use BT
+        install -m 0755 ${S}/attrib/gatttool ${D}/${bindir}/
 	install -m 0644 ${WORKDIR}/bluetooth.conf ${D}/${sysconfdir}/dbus-1/system.d/
 }
 
 ALLOW_EMPTY_libasound-module-bluez = "1"
-PACKAGES =+ "libasound-module-bluez ${PN}-testtools ${PN}-obex"
+PACKAGES =+ "libasound-module-bluez ${PN}-testtools ${PN}-obex ${PN}-tools"
 
 FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa"
 FILES_${PN} += "${libdir}/bluetooth/plugins ${libdir}/bluetooth/plugins/*.so ${base_libdir}/udev/ ${nonarch_base_libdir}/udev/ ${systemd_unitdir}/ ${datadir}/dbus-1"
@@ -63,6 +64,8 @@ SYSTEMD_SERVICE_${PN}-obex = "obex.service"
 
 FILES_${PN}-testtools = "${libdir}/bluez/test/*"
 
+FILES_${PN}-tools = "${bindir}/gatttool"
+
 FILES_${PN}-dbg += "\
   ${libdir}/${BPN}/bluetooth/.debug \
   ${libdir}/bluetooth/plugins/.debug \
-- 
1.8.4.2




More information about the Openembedded-core mailing list