diff options
author | John Klug <john.klug@multitech.com> | 2020-07-06 18:33:37 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2020-11-12 09:02:42 -0600 |
commit | 3e98006c187213b206ce6036d5f36100f732c589 (patch) | |
tree | 6e6b5714e9cf33b1c1249903fa840c4e8eb1a646 /recipes-connectivity/bluez/bluez5.inc | |
parent | 0a4904f55b389c8ed9dc34cc26317b86653b57ef (diff) | |
download | meta-mlinux-3e98006c187213b206ce6036d5f36100f732c589.tar.gz meta-mlinux-3e98006c187213b206ce6036d5f36100f732c589.tar.bz2 meta-mlinux-3e98006c187213b206ce6036d5f36100f732c589.zip |
Create a configuration package to install WiFi and BT access point for testing
Diffstat (limited to 'recipes-connectivity/bluez/bluez5.inc')
-rw-r--r-- | recipes-connectivity/bluez/bluez5.inc | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/recipes-connectivity/bluez/bluez5.inc b/recipes-connectivity/bluez/bluez5.inc index 35ebd0c..14e2f56 100644 --- a/recipes-connectivity/bluez/bluez5.inc +++ b/recipes-connectivity/bluez/bluez5.inc @@ -1,5 +1,9 @@ SUMMARY = "Linux Bluetooth Stack Userland V5" +# Might want to skip to m6 next time, because pand +# is now at m5. PR = "m4" +# Tried m4a, but opkg says that is a downgrade. +PR_${PN}-pand = "m5" DESCRIPTION = "Linux Bluetooth stack V5 userland components. These include a system configurations, daemons, tools and system libraries." HOMEPAGE = "http://www.bluez.org" SECTION = "libs" @@ -34,6 +38,7 @@ SRC_URI = "\ file://rfcomm/rfcomm.py \ file://rfcomm/init \ file://rfcomm/default \ + file://BT-Name \ " S = "${WORKDIR}/bluez-${PV}" @@ -99,10 +104,13 @@ do_install_append() { install -m 0644 ${WORKDIR}/bt-pan/default ${D}${sysconfdir}/default/bt-pan install -m 0644 ${WORKDIR}/rfcomm/default ${D}${sysconfdir}/default/rfcomm install -m 0644 ${WORKDIR}/main.conf ${D}${sysconfdir}/bluetooth/ + + install -d ${D}/usr/share/bluez5 + install -m 0444 ${WORKDIR}/BT-Name ${D}/usr/share/bluez5/BT-Name.patch } ALLOW_EMPTY_libasound-module-bluez = "1" -PACKAGES =+ "libasound-module-bluez ${PN}-testtools ${PN}-obex ${PN}-noinst-tools ${PN}-pand ${PN}-rfcomm" +PACKAGES =+ "${PN}-bt-name libasound-module-bluez ${PN}-testtools ${PN}-obex ${PN}-noinst-tools ${PN}-pand ${PN}-rfcomm" FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa" FILES_${PN} += "${libdir}/bluetooth/plugins/*.so ${systemd_unitdir}/ ${datadir}/dbus-1" @@ -120,6 +128,8 @@ FILES_${PN}-obex = "${libexecdir}/bluetooth/obexd \ FILES_${PN}-pand = "${libexecdir}/bluetooth/bt-pan ${sysconfdir}/default/bt-pan ${sysconfdir}/init.d/bt-pan" FILES_${PN}-rfcomm = "${libexecdir}/bluetooth/bt-pan ${sysconfdir}/default/bt-pan ${sysconfdir}/init.d/bt-pan" FILES_${PN}-rfcomm = "${libexecdir}/bluetooth/rfcomm ${sysconfdir}/default/rfcomm ${sysconfdir}/init.d/rfcomm" +FILES_${PN}-bt-name = "/usr/share/bluez5/*" + CONFFILES_${PN}-pand = "${sysconfdir}/default/bt-pan" CONFFILES_${PN}-rfcomm = "${sysconfdir}/default/rfcomm" SYSTEMD_SERVICE_${PN}-obex = "obex.service" @@ -137,6 +147,7 @@ def get_noinst_tools_paths (d, bb, tools): FILES_${PN}-noinst-tools = "${@get_noinst_tools_paths(d, bb, d.getVar('NOINST_TOOLS', True))}" RDEPENDS_${PN}-testtools += "python3 python3-dbus python3-pygobject" +RDEPENDS_${PN}-bt-name += "bluez5" SYSTEMD_SERVICE_${PN} = "bluetooth.service" INITSCRIPT_PACKAGES = "${PN} ${PN}-pand ${PN}-rfcomm" @@ -157,3 +168,13 @@ do_install_ptest() { cp -r ${B}/unit/ ${D}${PTEST_PATH} rm -f ${D}${PTEST_PATH}/unit/*.o } + +pkg_postinst_${PN}-bt-name() { + cd /$D + patch -Np1 < $D/usr/share/bluez5/BT-Name.patch +} + +pkg_prerm_${PN}-bt-name() { + cd /$D + patch -Rp1 < $D/usr/share/bluez5/BT-Name.patch +} |