From: Matt Ranostay Date: Thu, 17 Aug 2017 03:41:58 +0000 (+0300) Subject: meta-agl: gpsd: enable udev GPS device detection X-Git-Tag: 4.99.1~19 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F49%2F10649%2F7;p=AGL%2Fmeta-agl.git meta-agl: gpsd: enable udev GPS device detection enable the systemd device detection for GPS devices which autoenables it within the gpsd.socket Bug-AGL: SPEC-831 Change-Id: Ifec05c61c7802d0a246ac2c7c609de4ecd56b94d Signed-off-by: Matt Ranostay Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10649 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller --- diff --git a/meta-agl/recipes-navigation/gpsd/gpsd_%.bbappend b/meta-agl/recipes-navigation/gpsd/gpsd_%.bbappend new file mode 100644 index 000000000..af72aece9 --- /dev/null +++ b/meta-agl/recipes-navigation/gpsd/gpsd_%.bbappend @@ -0,0 +1,14 @@ +SYSTEMD_SERVICE_${PN} += " gpsdctl@.service" + +do_install_append() { + # use the systemd compatible gpsd.rules + install -d ${D}/${sysconfdir}/udev/rules.d + install -m 0644 ${S}/gpsd.rules ${D}/${sysconfdir}/udev/rules.d/60-gpsd.rules + + #support for systemd + install -d ${D}${systemd_unitdir}/system/ + install -m 0644 ${S}/systemd/gpsdctl@.service ${D}${systemd_unitdir}/system + + #autoprobe usb gps devices + echo 'USBAUTO="true"' >> ${D}${sysconfdir}/default/gpsd.default +}