1 SUMMARY = "AGL Reference Hardware specific gpsd configuration"
3 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
5 PACKAGE_ARCH = "${MACHINE_ARCH}"
7 SRC_URI = "file://gpsd.refhw \
8 file://refhw-gpsd-helper.sh \
12 inherit update-alternatives
14 do_configure[noexec] = "1"
15 do_compile[noexec] = "1"
18 install -D -m 0644 ${WORKDIR}/gpsd.refhw ${D}/${sysconfdir}/default/gpsd.refhw
19 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
20 install -D -m 0755 ${WORKDIR}/refhw-gpsd-helper.sh ${D}/${sbindir}/refhw-gpsd-helper.sh
21 install -d ${D}${sysconfdir}/systemd/system/gpsd.service.d
22 install -D -m 0644 ${WORKDIR}/refhw.conf ${D}${sysconfdir}/systemd/system/gpsd.service.d/refhw.conf
26 ALTERNATIVE_${PN} = "gpsd-defaults"
27 ALTERNATIVE_LINK_NAME[gpsd-defaults] = "${sysconfdir}/default/gpsd"
28 ALTERNATIVE_TARGET[gpsd-defaults] = "${sysconfdir}/default/gpsd.refhw"
29 # NOTE: Priority needs to be below default of 10 to avoid overriding the
30 # default configuration. The script run by the systemd drop-in
31 # will tweak things on boot to handle h3ulcb vs refhw.
32 ALTERNATIVE_PRIORITY[gpsd-defaults] = "5"
34 CONFFILES_${PN} = "${sysconfdir}/default/gpsd.refhw"
36 # NOTE: Explicitly not defining RPROVIDES of "virtual/gpsd-conf" to
37 # avoid conflicting with the default configuration and potentially
38 # changing behavior on m3ulcb/h3ulcb.