gpsd: create the /dev/gps0 symlink on the sysmocom-odu
This is needed for the NTPd GPSd refclock. Also start GPSd using systemd. Signed-off-by: Jan Luebbe <jluebbe@debian.org>
This commit is contained in:
parent
278342d64d
commit
76a6dc238d
|
@ -0,0 +1 @@
|
|||
SUBSYSTEM=="tty", KERNEL=="ttyO2", SYMLINK="gps0"
|
|
@ -0,0 +1,5 @@
|
|||
# If you must specify a non-NMEA driver, uncomment and modify the next line
|
||||
GPSD_SOCKET="/var/run/gpsd.sock"
|
||||
GPSD_OPTIONS=""
|
||||
GPS_DEVICES="/dev/gps0"
|
||||
|
|
@ -18,9 +18,9 @@ SRC_URI = "http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz \
|
|||
file://gpsd-default \
|
||||
file://gpsd \
|
||||
file://60-gpsd.rules \
|
||||
file://gpsd.service \
|
||||
"
|
||||
|
||||
SRC_URI_append_sysmocom-idu = " file://gpsd.service "
|
||||
|
||||
SRC_URI[md5sum] = "fc5b03aae38b9b5b6880b31924d0ace3"
|
||||
SRC_URI[sha256sum] = "706fc2c1cf3dfbf87c941f543381bccc9c4dc9f8240eec407dcbf2f70b854320"
|
||||
|
@ -106,9 +106,8 @@ do_install_append() {
|
|||
#support for python
|
||||
#install -d ${D}/${PYTHON_SITEPACKAGES_DIR}/gps
|
||||
#install -m 755 ${S}/gps/*.py ${D}/${PYTHON_SITEPACKAGES_DIR}/gps
|
||||
}
|
||||
|
||||
do_install_append_sysmocom-idu() {
|
||||
#support for systemd
|
||||
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||
|
||||
install -m 0644 ${WORKDIR}/gpsd.service ${D}${systemd_unitdir}/system/
|
||||
|
@ -143,8 +142,7 @@ DESCRIPTION_libgps = "C service library used for communicating with gpsd"
|
|||
FILES_libgps = "${libdir}/libgps.so.*"
|
||||
|
||||
DESCRIPTION_gpsd-conf = "gpsd configuration files and init scripts"
|
||||
FILES_gpsd-conf = "${sysconfdir}"
|
||||
FILES_gpsd-conf_append_sysmocom-idu = " ${systemd_unitdir}/system/ "
|
||||
FILES_gpsd-conf = "${sysconfdir} ${systemd_unitdir}/system/"
|
||||
CONFFILES_gpsd-conf = "${sysconfdir}/default/gpsd.default"
|
||||
|
||||
DESCRIPTION_gpsd-gpsctl = "Tool for tweaking GPS modes"
|
||||
|
|
Loading…
Reference in New Issue