X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=AGL%2Fmeta-agl-demo.git;a=blobdiff_plain;f=recipes-demo-hmi%2Fnavigation%2Fmapviewer_%25.bbappend;h=a5597083bc08741625143837270b60df9505fda7;hp=4e89af064fd96b596047d1f01ef2e6bdbad5d54b;hb=d83abd39742aa01cab3db251ca28fab2306c764a;hpb=25c0b44e2e741b348e424249d82e29b9578d8d78 diff --git a/recipes-demo-hmi/navigation/mapviewer_%.bbappend b/recipes-demo-hmi/navigation/mapviewer_%.bbappend index 4e89af064..a5597083b 100644 --- a/recipes-demo-hmi/navigation/mapviewer_%.bbappend +++ b/recipes-demo-hmi/navigation/mapviewer_%.bbappend @@ -3,30 +3,23 @@ FILESEXTRAPATHS_append := ":${THISDIR}/${PN}" SRC_URI_append = "\ file://mapviewer-settings.sh \ file://mapviewer.service \ - " +" inherit systemd SYSTEMD_PACKAGES = "${PN}" do_install_append() { - install -d ${D}/usr/AGL/${PN} - install -m 0755 ${WORKDIR}/mapviewer-settings.sh ${D}/usr/AGL/${PN}/ + install -d ${D}${prefix}/AGL/${PN} + install -m 0755 ${WORKDIR}/mapviewer-settings.sh ${D}${prefix}/AGL/${PN}/ - # Install systemd unit files + # Install systemd unit file if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then - install -d ${D}${systemd_user_unitdir} - install -m 644 -p -D ${WORKDIR}/mapviewer.service ${D}${systemd_user_unitdir}/mapviewer.service + install -d ${D}${systemd_system_unitdir} + install -m 644 ${WORKDIR}/mapviewer.service ${D}${systemd_system_unitdir}/mapviewer.service fi } -## DO NOT ENABLE 'weston-mapviewer-demo.service' BY DEFAULT -## -## This should be enabled/disabled by 'switch_on_mapviewer-demo.sh'/'switch_off_mapviewer-demo.sh'. -## -#SYSTEMD_SERVICE_${PN} = "mapviewer.service" +SYSTEMD_SERVICE_${PN} = "mapviewer.service" -FILES_${PN} += " \ - ${systemd_user_unitdir}/mapviewer.service \ - /usr/AGL/mapviewer/ \ - " +FILES_${PN} += "${prefix}/AGL/${PN}/"