X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=recipes-demo-hmi%2Fnavigation%2Fmapviewer_%25.bbappend;h=a5597083bc08741625143837270b60df9505fda7;hb=refs%2Ftags%2F7.0.1;hp=3049a674178e9c1ab5dd751d3496cdd9e43c15d9;hpb=58e35ecf32af3aaf18af1e9576de74892f61cae5;p=AGL%2Fmeta-agl-demo.git diff --git a/recipes-demo-hmi/navigation/mapviewer_%.bbappend b/recipes-demo-hmi/navigation/mapviewer_%.bbappend index 3049a6741..a5597083b 100644 --- a/recipes-demo-hmi/navigation/mapviewer_%.bbappend +++ b/recipes-demo-hmi/navigation/mapviewer_%.bbappend @@ -1,20 +1,25 @@ FILESEXTRAPATHS_append := ":${THISDIR}/${PN}" SRC_URI_append = "\ + file://mapviewer-settings.sh \ file://mapviewer.service \ - " +" inherit systemd SYSTEMD_PACKAGES = "${PN}" do_install_append() { - # Install systemd unit files + install -d ${D}${prefix}/AGL/${PN} + install -m 0755 ${WORKDIR}/mapviewer-settings.sh ${D}${prefix}/AGL/${PN}/ + + # Install systemd unit file 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 + install -d ${D}${systemd_system_unitdir} + install -m 644 ${WORKDIR}/mapviewer.service ${D}${systemd_system_unitdir}/mapviewer.service fi } -FILES_${PN} += " \ - ${systemd_system_unitdir}/mapviewer.service \ - " +SYSTEMD_SERVICE_${PN} = "mapviewer.service" + +FILES_${PN} += "${prefix}/AGL/${PN}/"