X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=meta-agl-flutter%2Frecipes-graphics%2Ftoyota%2Fivi-homescreen_aglflutter.inc;h=48ba9d1d4f97db7b81607b76707f8e0c010d6a69;hb=f76a4e381d478a4bcad69909587d25f99051d24f;hp=233e911cd1a2098c652c4d43fd99e50f2e72b3e1;hpb=11def03ba2ed03580729a2077de82e090cf58ca2;p=AGL%2Fmeta-agl-devel.git diff --git a/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen_aglflutter.inc b/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen_aglflutter.inc index 233e911c..48ba9d1d 100644 --- a/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen_aglflutter.inc +++ b/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen_aglflutter.inc @@ -1,2 +1,29 @@ +# Upstream is now pinning ivi-homescreen +#SRCREV = "" -SRCREV = "08f074ccc42c1129cf8587f48970bdfbd154693a" +# For now disable gstreamer to avoid needing to enable "commercial" +# licenses for the stated ffmpeg dependency. +PACKAGECONFIG:remove = "gstreamer" + +FILESEXTRAPATHS:append := "${THISDIR}/files:" +SRC_URI += "file://config.json" + +# AGL specifics +IVI_HOMESCREEN_APP_OVERRIDE = "--b=/usr/share/flutter/gallery --j=/usr/share/flutter/config.json" + +SERVICE_UNIT = "Requires=agl-compositor.service\nAfter=agl-compositor.service" +SERVICE_INSTALL = "WantedBy=agl-session.target" +# we have a regular/agl-driver user, so avoid setting one +SERVICE_ENVIRONMENT = "" +SERVICE_USER_GROUP = "" +SERVICE_RESTART = "Restart=on-failure" + +# we need to install as user session, not root. +do_install:append() { + install -d ${D}${systemd_user_unitdir}/agl-session.target.wants + install -D -m 0644 ${WORKDIR}/config.json ${D}${datadir}/flutter/config.json + install -m0644 ${WORKDIR}/homescreen.service ${D}${systemd_user_unitdir}/homescreen.service + ln -s ../homescreen.service ${D}${systemd_user_unitdir}/agl-session.target.wants/homescreen.service +} + +FILES:${PN} += " ${systemd_user_unitdir} ${datadir}/flutter/config.json"