gpsd: use upstream config instead of our own
PATCH v2 1/2 gpsd: use upstream config instead of our own
We have our own versions of the udev, hotplug, and systemd scripts, but at this point they are several years old and were added to fix bugs at the time. As far as I can tell, the relevant bugs are now fixed upstream, so we can move back to the upstream versions.
Signed-off-by Martin Kelly <[email protected]>
--- meta-oe/recipes-navigation/gpsd/gpsd/60-gpsd.rules | 47 ------- meta-oe/recipes-navigation/gpsd/gpsd/gpsd | 136 --------------------- meta-oe/recipes-navigation/gpsd/gpsd/gpsd-default | 5 - meta-oe/recipes-navigation/gpsd/gpsd/gpsd.service | 10 -- meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb | 12 +- 5 files changed, 4 insertions(+), 206 deletions(-) delete mode 100644 meta-oe/recipes-navigation/gpsd/gpsd/60-gpsd.rules delete mode 100755 meta-oe/recipes-navigation/gpsd/gpsd/gpsd delete mode 100644 meta-oe/recipes-navigation/gpsd/gpsd/gpsd-default delete mode 100644 meta-oe/recipes-navigation/gpsd/gpsd/gpsd.service
meta-oe/recipes-navigation/gpsd/gpsd/60-gpsd.rules deleted +0 -47
@@ -1,47 +0,0 @@ -# udev rules for gpsd -# $Id$ -# -# GPSes don't have their own USB device class. They're serial-over-USB -# devices, so what you see is actually the ID of the serial-over-USB chip. -# Fortunately, just two of these account for over 80% of consumer-grade -# GPS sensors. The gpsd.hotplug.wrapper script will tell a running gpsd -# that it should look at the device that just went active, because it -# might be a GPS. -# -# The following setup works on Debian - something similar will apply on -# other distributions: -# -# /etc/udev/gpsd.rules -# /etc/udev/rules.d/025_gpsd.rules -> ../gpsd.rules -# /lib/udev/gpsd.hotplug.wrapper -# /lib/udev/gpsd.hotplug -# -# Setting the link in /etc/udev/rules.d activates the rule and determines -# when to run it on boot (similar to init.d processing). - -SUBSYSTEM!="tty", GOTO="gpsd_rules_end" - -# Prolific Technology, Inc. PL2303 Serial Port -ATTR{idVendor}=="067b", ATTR{idProduct}=="2303", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" -# ATEN International Co., Ltd UC-232A Serial Port [pl2303] -ATTR{idVendor}=="0557", ATTR{idProduct}=="2008", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" -# FTDI 8U232AM -ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" -# Cypress M8/CY7C64013 (DeLorme uses these) -ATTR{idVendor}=="1163", ATTR{idProduct}=="0100", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" -# PS-360 OEM (Microsoft GPS sold with Street and Trips 2005) -ATTR{idVendor}=="067b", ATTR{idProduct}=="aaa0", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" -# Garmin International GPSmap, various models (tested with Garmin GPS 18 USB) -ATTR{idVendor}=="091e", ATTR{idProduct}=="0003", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" -# Cygnal Integrated Products, Inc. CP210x Composite Device (Used by Holux m241) -ATTR{idVendor}=="10c4", ATTR{idProduct}=="ea60", SYMLINK+="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" -# u-blox AG, u-blox 5 (tested with Navilock NL-402U) -ATTR{idVendor}=="1546", ATTR{idProduct}=="01a5", SYMLINK="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" -# FTDI FT232 -ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", SYMLINK="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" -# u-blox 4 -ATTR{idVendor}=="1546", ATTR{idProduct}=="01a4", SYMLINK="gps%n", RUN+="/lib/udev/gpsd.hotplug.wrapper" - -ACTION=="remove", RUN+="/lib/udev/gpsd.hotplug.wrapper" - -LABEL="gpsd_rules_end"
meta-oe/recipes-navigation/gpsd/gpsd/gpsd deleted +0 -136
136 lines not on this page · raw message
meta-oe/recipes-navigation/gpsd/gpsd/gpsd-default deleted +0 -5
@@ -1,5 +0,0 @@ -# If you must specify a non-NMEA driver, uncomment and modify the next line -GPSD_SOCKET="/var/run/gpsd.sock" -GPSD_OPTIONS="" -GPS_DEVICES="" -
meta-oe/recipes-navigation/gpsd/gpsd/gpsd.service deleted +0 -10
@@ -1,10 +0,0 @@ -[Unit] -Description=GPS (Global Positioning System) Daemon -Requires=gpsd.socket - -[Service] -EnvironmentFile=/etc/default/gpsd -ExecStart=/usr/sbin/gpsd -N $GPS_DEVICES - -[Install] -Also=gpsd.socket
meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb +4 -8
@@ -11,10 +11,6 @@ SRC_URI = "${SAVANNAH_GNU_MIRROR}/${BPN}/${BP}.tar.gz \ file://0001-SConstruct-prefix-includepy-with-sysroot-and-drop-sy.patch \ file://0004-SConstruct-disable-html-and-man-docs-building-becaus.patch \ file://0001-include-sys-ttydefaults.h.patch \ - file://gpsd-default \ - file://gpsd \ - file://60-gpsd.rules \ - file://gpsd.service \ " SRC_URI[md5sum] = "68691b5de4c94f82ec4062b042b5eb63" SRC_URI[sha256sum] = "03579af13a4d3fe0c5b79fa44b5f75c9f3cac6749357f1d99ce5d38c09bc2029"
@@ -67,13 +63,13 @@ do_install() { do_install_append() { install -d ${D}/${sysconfdir}/init.d - install -m 0755 ${WORKDIR}/gpsd ${D}/${sysconfdir}/init.d/ + install -m 0755 ${S}/packaging/deb/etc_init.d_gpsd ${D}/${sysconfdir}/init.d/gpsd install -d ${D}/${sysconfdir}/default - install -m 0644 ${WORKDIR}/gpsd-default ${D}/${sysconfdir}/default/gpsd.default + install -m 0644 ${S}/packaging/deb/etc_default_gpsd ${D}/${sysconfdir}/default/gpsd.default #support for udev install -d ${D}/${sysconfdir}/udev/rules.d - install -m 0644 ${WORKDIR}/60-gpsd.rules ${D}/${sysconfdir}/udev/rules.d + install -m 0644 ${S}/gpsd.rules ${D}/${sysconfdir}/udev/rules.d/ install -d ${D}${base_libdir}/udev/ install -m 0755 ${S}/gpsd.hotplug ${D}${base_libdir}/udev/
@@ -83,7 +79,7 @@ do_install_append() { #support for systemd install -d ${D}${systemd_unitdir}/system/ - install -m 0644 ${WORKDIR}/${BPN}.service ${D}${systemd_unitdir}/system/${BPN}.service + install -m 0644 ${S}/systemd/${BPN}.service ${D}${systemd_unitdir}/system/${BPN}.service install -m 0644 ${S}/systemd/${BPN}.socket ${D}${systemd_unitdir}/system/${BPN}.socket }
Signature · 1 line
2.11.0
PATCH v2 2/2 gpsd: add [email protected] for USB autoplug
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 <[email protected]>
--- meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb +2 -1
@@ -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}[email protected] ${D}${systemd_unitdir}/system/${BPN}[email protected] install -m 0644 ${S}/systemd/${BPN}.socket ${D}${systemd_unitdir}/system/${BPN}.socket }
@@ -128,7 +129,7 @@ RDEPENDS_python-pygps = " \ RPROVIDES_${PN} += "${PN}-systemd" RREPLACES_${PN} += "${PN}-systemd" RCONFLICTS_${PN} += "${PN}-systemd" -SYSTEMD_SERVICE_${PN} = "${PN}.socket" +SYSTEMD_SERVICE_${PN} = "${BPN}.socket ${BPN}[email protected]" ALTERNATIVE_${PN} = "gpsd-defaults"
Signature · 1 line
2.11.0