summaryrefslogtreecommitdiff
path: root/recipes-navigation
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2017-01-16 17:29:12 -0600
committerJohn Klug <john.klug@multitech.com>2017-01-16 17:29:12 -0600
commitbb46a5f01f16f8517f0daa2469b53e35a178b770 (patch)
tree2a34456f845463f809ce6d5cc1e87be10ec956d6 /recipes-navigation
parentc596b231a46cc200dffec292eac1ddfd6f2269ce (diff)
downloadmeta-mlinux-bb46a5f01f16f8517f0daa2469b53e35a178b770.tar.gz
meta-mlinux-bb46a5f01f16f8517f0daa2469b53e35a178b770.tar.bz2
meta-mlinux-bb46a5f01f16f8517f0daa2469b53e35a178b770.zip
Have udev create /dev/gps0
Diffstat (limited to 'recipes-navigation')
-rw-r--r--recipes-navigation/gpsd/gpsd/gpsd.rules (renamed from recipes-navigation/gpsd/gpsd/60-gpsd.rules)4
-rw-r--r--recipes-navigation/gpsd/gpsd_3.16.bb8
2 files changed, 10 insertions, 2 deletions
diff --git a/recipes-navigation/gpsd/gpsd/60-gpsd.rules b/recipes-navigation/gpsd/gpsd/gpsd.rules
index 61143b8..c314b54 100644
--- a/recipes-navigation/gpsd/gpsd/60-gpsd.rules
+++ b/recipes-navigation/gpsd/gpsd/gpsd.rules
@@ -44,4 +44,8 @@ ATTR{idVendor}=="1546", ATTR{idProduct}=="01a4", SYMLINK="gps%n", RUN+="/lib/ude
ACTION=="remove", RUN+="/lib/udev/gpsd.hotplug.wrapper"
+KERNEL=="ttyXRUSB2", SYMLINK+="gps0"
+KERNEL=="pps0", OWNER="root", GROUP="tty", MODE="0660", SYMLINK+="gpspps0"
+KERNEL=="ttyXRUSB2", RUN+="/bin/setserial -v /dev/%k low_latency
+
LABEL="gpsd_rules_end"
diff --git a/recipes-navigation/gpsd/gpsd_3.16.bb b/recipes-navigation/gpsd/gpsd_3.16.bb
index 7a61f68..7e573f8 100644
--- a/recipes-navigation/gpsd/gpsd_3.16.bb
+++ b/recipes-navigation/gpsd/gpsd_3.16.bb
@@ -18,7 +18,7 @@ SRC_URI = "${SAVANNAH_GNU_MIRROR}/${BPN}/${BP}.tar.gz \
file://gpsd \
file://gpsd_ubx_fixed.sh \
file://gpsd_ubx_settime.sh \
- file://60-gpsd.rules \
+ file://gpsd.rules \
file://gpsd.service \
"
# Fixed
@@ -94,7 +94,11 @@ do_install_append() {
install -m 0755 ${WORKDIR}/gpsd_ubx_fixed.sh ${D}${sbindir}/gpsd_ubx_fixed
install -m 0755 ${WORKDIR}/gpsd_ubx_settime.sh ${D}${sbindir}/gpsd_ubx_settime
- # UDEV code assumed a USB GPS.
+ #support for udev
+ install -d ${D}/${sysconfdir}/udev/rules.d
+ install -m 0644 ${WORKDIR}/gpsd.rules ${D}/${sysconfdir}/udev/rules.d
+ install -d ${D}${base_libdir}/udev/
+ install -m 0755 ${S}/gpsd.hotplug ${D}${base_libdir}/udev/
#support for python
install -d ${D}/${PYTHON_SITEPACKAGES_DIR}/gps