gpsd: moving neom8tool from OM to BSP layer
BugzID: 62177 Signed-off-by: Tobias Jäggi <tobias.jaeggi@netmodule.com>
This commit is contained in:
parent
1945cd4165
commit
de62abf132
|
|
@ -0,0 +1,27 @@
|
|||
CFG-ESFGAWT:flags:useWtPin=0
|
||||
CFG-NMEA:nmeaVersion=0x41
|
||||
{
|
||||
CFG-ESFLA:leverArmType=0
|
||||
CFG-ESFLA:leverArmX=1
|
||||
CFG-ESFLA:leverArmY=2
|
||||
CFG-ESFLA:leverArmZ=3
|
||||
CFG-ESFLA:leverArmType=1
|
||||
CFG-ESFLA:leverArmX=4
|
||||
CFG-ESFLA:leverArmY=5
|
||||
CFG-ESFLA:leverArmZ=6
|
||||
CFG-ESFLA:leverArmType=4
|
||||
CFG-ESFLA:leverArmX=7
|
||||
CFG-ESFLA:leverArmY=8
|
||||
CFG-ESFLA:leverArmZ=9
|
||||
}
|
||||
{
|
||||
CFG-ESFALG:bitfield:doAutoMntAlg=0
|
||||
CFG-ESFALG:yaw=16
|
||||
CFG-ESFALG:pitch=34
|
||||
CFG-ESFALG:roll=39
|
||||
}
|
||||
{
|
||||
CFG-NAV5:dynModel=4
|
||||
CFG-NAV5:fixMode=3
|
||||
}
|
||||
|
||||
|
|
@ -1,4 +1,7 @@
|
|||
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||
|
||||
RDEPENDS_${PN} += "python3-pyserial"
|
||||
|
||||
SRC_URI_prepend = " \
|
||||
git://gitlab.com/netmodule/third-party/gpsd.git;protocol=ssh;user=git;branch=3.20/netmodule \
|
||||
file://60-ublox-neo.rules \
|
||||
|
|
@ -6,6 +9,10 @@ SRC_URI_prepend = " \
|
|||
"
|
||||
SRC_URI_remove = "${SAVANNAH_GNU_MIRROR}/${BPN}/${BP}.tar.gz"
|
||||
|
||||
SRC_URI_append = " \
|
||||
file://gnss0.ubx \
|
||||
"
|
||||
|
||||
# overwrite default gpsd.service file with our configuration
|
||||
SRCREV = "${AUTOREV}"
|
||||
S = "${WORKDIR}/git"
|
||||
|
|
@ -24,6 +31,12 @@ do_install_append () {
|
|||
install -d ${D}${sysconfdir}/udev/rules.d
|
||||
install -m 0644 ${WORKDIR}/60-ublox-neo.rules ${D}${sysconfdir}/udev/rules.d
|
||||
|
||||
install -d ${D}${bindir}
|
||||
install -m 744 ${WORKDIR}/git/neom8tool ${D}${bindir}/neom8tool
|
||||
|
||||
install -d ${D}${sysconfdir}/gnss
|
||||
install -m 644 ${WORKDIR}/gnss0.ubx ${D}${sysconfdir}/gnss/gnss0.ubx
|
||||
|
||||
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