summaryrefslogtreecommitdiffstats
path: root/recipes-navigation/gpsd/gpsd_agldemo.inc
blob: 92303f8b5fc675a4d952df0a7781e2be0845bf76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FILESEXTRAPATHS:prepend := "${THISDIR}/gpsd:"

SRC_URI += "file://sw-device-hook"

do_install:append() {
    # Install device-hook script for starting NMEA output on Sierra Wireless modems
    install -d ${D}${sysconfdir}/gpsd
    install -m 0755 ${WORKDIR}/sw-device-hook ${D}${sysconfdir}/gpsd/device-hook
}



SYSTEMD_SERVICE:${PN}:append = " gpsdctl@.service"

RPROVIDES:${PN}-conf:append = " virtual/gpsd-conf"

do_install:append() {
    # use the systemd compatible gpsd.rules
    install -d ${D}/${sysconfdir}/udev/rules.d
    install -m 0644 ${S}/gpsd.rules ${D}/${sysconfdir}/udev/rules.d/60-gpsd.rules

    #support for systemd
    install -d ${D}${systemd_unitdir}/system/
    install -m 0644 ${S}/systemd/gpsdctl@.service ${D}${systemd_unitdir}/system

    #autoprobe usb gps devices
    echo 'USBAUTO="true"' >> ${D}${sysconfdir}/default/gpsd.default
}