gpsd: Clean recipe and add support for HW23
BugzID: 57871
This commit is contained in:
parent
e6ad5c5a93
commit
926c514d23
|
|
@ -1,10 +0,0 @@
|
|||
[Unit]
|
||||
Description=GPS (Global Positioning System) Daemon
|
||||
Requires=gpsd.socket
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=/etc/default/gpsd
|
||||
ExecStart=/usr/sbin/gpsd /dev/ttyS3
|
||||
|
||||
[Install]
|
||||
Also=gpsd.socket
|
||||
|
|
@ -1,7 +1,3 @@
|
|||
FILESEXTRAPATHS_prepend_am335x-nrhw20 := "${THISDIR}/${PN}:"
|
||||
FILESEXTRAPATHS_prepend_am335x-nmhw21 := "${THISDIR}/${PN}:"
|
||||
|
||||
|
||||
SRC_URI =+ "git://git.netmodule.intranet/nmsw/gpsd.git;protocol=ssh;user=gitea;branch=imu-integration"
|
||||
SRC_URI_remove = "http://download.savannah.gnu.org/releases/gpsd/gpsd-3.17.tar.gz"
|
||||
|
||||
|
|
@ -10,10 +6,11 @@ SRCREV = "${AUTOREV}"
|
|||
S = "${WORKDIR}/git"
|
||||
|
||||
TTY_DEVICE = "/dev/ttyS3"
|
||||
TTY_DEVICE_imx8-nmhw23 = "/dev/ttyACM0"
|
||||
|
||||
USBAUTO_STATE = "false"
|
||||
|
||||
do_install_append () {
|
||||
#install -m 0644 ${WORKDIR}/${BPN}.service ${D}${systemd_unitdir}/system/${BPN}.service
|
||||
sed -i 's|DEVICES=""|DEVICES="${TTY_DEVICE}"|g' ${D}/etc/default/gpsd.default
|
||||
sed -i 's|USBAUTO="true"|USBAUTO="${USBAUTO_STATE}"|g' ${D}/etc/default/gpsd.default
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue