summaryrefslogtreecommitdiffstats
path: root/recipes-demo-hmi/navigation/mapviewer_%.bbappend
blob: a5597083bc08741625143837270b60df9505fda7 (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
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}${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 -d ${D}${systemd_system_unitdir}
        install -m 644 ${WORKDIR}/mapviewer.service ${D}${systemd_system_unitdir}/mapviewer.service
    fi
}

SYSTEMD_SERVICE_${PN} = "mapviewer.service"

FILES_${PN} += "${prefix}/AGL/${PN}/"
/span> LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" SRC_URI = "gitsm://gerrit.automotivelinux.org/gerrit/apps/agl-service-audio-4a;protocol=https;branch=${AGL_BRANCH}" SRCREV = "${AUTOREV}" PV = "0.1" S = "${WORKDIR}/git" inherit cmake aglwgt pkgconfig DEPENDS += "alsa-lib json-c systemd af-binder glib-2.0" do_aglwgt_deploy_append() { cat <<'EOF' >${D}/${sysconfdir}/agl-postinsts/99_4A_service_patch.sh N=100 svcfile="/usr/local/lib/systemd/*/afm-service-agl-service-audio-4a*.service" set -x echo "-- TMP 4A INSTALL FIX from meta-agl/meta-app-framework/recipes-multimedia/agl-service-audio-4a/agl-service-audio-4a_git.bb - MUST BE REMOVED !!!" while ! ls $svcfile > /dev/null; do if [ $N = 0 ]; then echo "-- TMP 4A INSTALL NOT FIXED"; exit 0; fi echo . sleep 0.2 N=$(expr $N - 1) done sed -i -e 's|--verbose |--verbose --ldpath=/usr/libexec/agl/afb-aaaa/lib/:/usr/libexec/agl/4a-alsa-core/lib/ |' $svcfile echo "-- TMP 4A INSTALL FIX END" EOF chmod a+x ${D}/${sysconfdir}/agl-postinsts/99_4A_service_patch.sh }