diff options
Diffstat (limited to 'recipes-demo-hmi/navigation/mapviewer_%.bbappend')
-rw-r--r-- | recipes-demo-hmi/navigation/mapviewer_%.bbappend | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/recipes-demo-hmi/navigation/mapviewer_%.bbappend b/recipes-demo-hmi/navigation/mapviewer_%.bbappend new file mode 100644 index 000000000..3049a6741 --- /dev/null +++ b/recipes-demo-hmi/navigation/mapviewer_%.bbappend @@ -0,0 +1,20 @@ +FILESEXTRAPATHS_append := ":${THISDIR}/${PN}" + +SRC_URI_append = "\ + file://mapviewer.service \ + " + +inherit systemd + +SYSTEMD_PACKAGES = "${PN}" + +do_install_append() { + # Install systemd unit files + if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then + install -m 644 -p -D ${WORKDIR}/mapviewer.service ${D}${systemd_system_unitdir}/mapviewer.service + fi +} + +FILES_${PN} += " \ + ${systemd_system_unitdir}/mapviewer.service \ + " |