diff options
-rw-r--r-- | recipes-core/images/mlinux-factory-image.bb | 2 | ||||
-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.bb | 8 |
3 files changed, 11 insertions, 3 deletions
diff --git a/recipes-core/images/mlinux-factory-image.bb b/recipes-core/images/mlinux-factory-image.bb index f8a395d..710ebf7 100644 --- a/recipes-core/images/mlinux-factory-image.bb +++ b/recipes-core/images/mlinux-factory-image.bb @@ -82,6 +82,6 @@ IMAGE_INSTALL += "venus-gps" IMAGE_INSTALL += "pps-tools" # When ntp is to use the GPS, gps-utils is required -IMAGE_INSTALL += "gpsd ntp gps-utils" +IMAGE_INSTALL += "gpsd ntp gps-utils gpsd-udev" IMAGE_INSTALL += "uvccapture" 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 |