[oe] [meta-oe][PATCH 2/2] gpsd: add gpsdctl at .service for USB autoplug
Martin Kelly
mkelly at xevo.com
Wed Nov 15 20:38:06 UTC 2017
This service allows gpsd to automatically recognize USB devices but is
currently missing from our packaging. Without this service and the
matching udev rules from upstream, gpsd will fail to recognize USB
devices when they are plugged in.
Signed-off-by: Martin Kelly <mkelly at xevo.com>
---
meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
index e94d6a108..80d9b0edf 100644
--- a/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
+++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
@@ -80,6 +80,7 @@ do_install_append() {
#support for systemd
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${S}/systemd/${BPN}.service ${D}${systemd_unitdir}/system/${BPN}.service
+ install -m 0644 ${S}/systemd/${BPN}ctl at .service ${D}${systemd_unitdir}/system/${BPN}ctl at .service
install -m 0644 ${S}/systemd/${BPN}.socket ${D}${systemd_unitdir}/system/${BPN}.socket
}
@@ -121,7 +122,7 @@ RDEPENDS_python-pygps = "python-core python-curses gpsd python-json"
RPROVIDES_${PN} += "${PN}-systemd"
RREPLACES_${PN} += "${PN}-systemd"
RCONFLICTS_${PN} += "${PN}-systemd"
-SYSTEMD_SERVICE_${PN} = "${PN}.socket"
+SYSTEMD_SERVICE_${PN} = "${PN}.socket ${PN}ctl at .service"
ALTERNATIVE_${PN} = "gpsd-defaults"
--
2.11.0
More information about the Openembedded-devel
mailing list