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/flutter-auto_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/flutter-auto_aglflutter.inc')
-rw-r--r-- | meta-agl-flutter/recipes-graphics/toyota/flutter-auto_aglflutter.inc | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-agl-flutter/recipes-graphics/toyota/flutter-auto_aglflutter.inc b/meta-agl-flutter/recipes-graphics/toyota/flutter-auto_aglflutter.inc new file mode 100644 index 00000000..4baaa517 --- /dev/null +++ b/meta-agl-flutter/recipes-graphics/toyota/flutter-auto_aglflutter.inc @@ -0,0 +1,47 @@ +# For now disable gstreamer to avoid needing to enable "commercial" +# licenses for the stated ffmpeg dependency. +PACKAGECONFIG:remove = "gstreamer" + +# Enable verbose logging on runtimedebug image +PACKAGECONFIG:append:runtimedebug = "verbose" + + +USER_SERVICE = "flutter-auto.service" + +FILESEXTRAPATHS:append := "${THISDIR}/files:" +SRC_URI += "\ + file://${USER_SERVICE} \ + file://gallery_on_bg-debug.json \ + file://gallery_on_bg-profile.json \ + file://gallery_on_bg-release.json \ + 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 \ + " + + +cmake_do_install:append() { + + install -d ${D}${systemd_user_unitdir}/agl-session.target.wants + install -D -m0644 ${WORKDIR}/${USER_SERVICE} ${D}${systemd_user_unitdir}/${USER_SERVICE} + + install -D -m0644 ${WORKDIR}/gallery_on_bg-release.json ${D}${datadir}/flutter/default.json +} + +cmake_do_install:append:runtimedebug() { + + # the dev host controls starting/stopping the flutter-auto process when runtime=debug + install -D -m0644 ${WORKDIR}/gallery_on_bg-debug.json ${D}${datadir}/flutter/default.json +} + +cmake_do_install:append:runtimeprofile() { + + # the dev host controls starting/stopping the flutter-auto process when runtime=profile + install -D -m0644 ${WORKDIR}/gallery_on_bg-profile.json ${D}${datadir}/flutter/default.json +} + + +FILES:${PN} += "\ + ${systemd_user_unitdir} \ + ${datadir} \ + " |