From e64dbfecda49032aea78af41adb0d7ac2f846dfa Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Thu, 17 Aug 2017 06:41:58 +0300 Subject: 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 --- meta-agl/recipes-navigation/gpsd/gpsd_%.bbappend | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 meta-agl/recipes-navigation/gpsd/gpsd_%.bbappend (limited to 'meta-agl') 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 +} -- cgit 1.2.3-korg