diff options
author | Joel Winarske <joel.winarske@gmail.com> | 2022-08-03 18:19:31 -0700 |
---|---|---|
committer | Joel Winarske <joel.winarske@gmail.com> | 2022-08-03 18:19:31 -0700 |
commit | adbb12626100901bc815deba27733fe1a3ebc3cc (patch) | |
tree | 6f70ed31f427b342689b1d7785ac9ae7e5bdc0e8 /meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen_aglflutter.inc | |
parent | 9a4f63a3bc70b11bd070989b95ddca2c11920a57 (diff) |
meta-agl-flutter refactor
- application rename -> flutter-auto
- adopts upstream (meta-flutter) bbclass for runtime selection
runtimedebug -> runtime=debug
runtimeprofile -> runtime=profile
runtimerelease -> runtime=release
*This also affects image names*
- A discrete json files for each runtime configuration
demuxing of runtime config happens in bbappend.
- prevent dev host conflict with flutter-auto.service in case
of debug and profile. The dev host machine controls
homescreen in these scenarios.
- simplifies inc and recipes
Dependent on https://gerrit.automotivelinux.org/gerrit/c/AGL/AGL-repo/+/27850
Bug-AGL: SPEC-4326
Signed-off-by: Joel Winarske <joel.winarske@gmail.com>
Change-Id: I877811417e3befab4d48a906058dcb52c81be4ce
Diffstat (limited to 'meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen_aglflutter.inc')
-rw-r--r-- | meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen_aglflutter.inc | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen_aglflutter.inc b/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen_aglflutter.inc deleted file mode 100644 index 3fea926e..00000000 --- a/meta-agl-flutter/recipes-graphics/toyota/ivi-homescreen_aglflutter.inc +++ /dev/null @@ -1,65 +0,0 @@ -FILESEXTRAPATHS:append := "${THISDIR}/files:" - -SRC_URI += " \ - file://0001-Allow-the-embedder-to-run-as-a-regular-normal-applic.patch \ - file://0002-shell-configuration-Obey-json-configuration-file.patch \ - file://0003-shell-configuration-Fixes-to-general-options.patch \ - file://0004-Add-app-id-command-line-argument.patch \ - file://config.json \ -" - -# Upstream is now pinning ivi-homescreen, but if it did need to be pinned -# it can be done here. -#SRCREV = "" - -# For now disable gstreamer to avoid needing to enable "commercial" -# licenses for the stated ffmpeg dependency. -PACKAGECONFIG:remove = "gstreamer" - -# -# 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" - -# The "homescreen" naming of the embedder binary conflicts with the -# Qt homescreen in meta-agl-demo. At least for now, rename it to -# allow running Flutter apps in an image that uses the Qt homescreen -# and launcher for testing. -SERVICE_EXEC_START = "ExecStart=/usr/bin/flutter --f ${IVI_HOMESCREEN_APP_OVERRIDE} ${SERVICE_EXEC_START_PARAMS}" - -# 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() { - # The system level systemd unit is not required in AGL - rm -f ${D}{systemd_system_unitdir}/homescreen.service - - install -d ${D}${systemd_user_unitdir}/agl-session.target.wants - install -D -m 0644 ${WORKDIR}/config.json ${D}${datadir}/flutter/config.json - install -m 0644 ${WORKDIR}/homescreen.service ${D}${systemd_user_unitdir}/homescreen.service - ln -s ../homescreen.service ${D}${systemd_user_unitdir}/agl-session.target.wants/homescreen.service - - # Rename embedder binary, see explanation above - mv ${D}${bindir}/homescreen ${D}${bindir}/flutter -} - -# Split the embedder binary into a separate package to allow reusing it -# without the generated upstream systemd unit that ATM is still useful -# for testing with the agl-image-flutter image. AGL will use either -# the applaunchd systemd template or custom units in meta-agl-demo. -PACKAGE_BEFORE_PN = "flutter-embedder-${FLUTTER_RUNTIME}" - -FILES:flutter-embedder-${FLUTTER_RUNTIME} = "${bindir}" - -FILES:${PN} += "${systemd_user_unitdir} ${datadir}/flutter/config.json" - -RDEPENDS:${PN} += "flutter-embedder-${FLUTTER_RUNTIME}" - -RDEPENDS:flutter-embedder-${FLUTTER_RUNTIME} += "flutter-engine-${FLUTTER_RUNTIME}" |