summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2025-02-13 10:15:37 -0500
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2025-02-17 09:14:48 +0000
commit05890ed36773b57e0aa3582195e09569887ecc35 (patch)
tree1d52645ae0892635274bd8843a214ac09001bd88
parent3f7401bfd9c7834c6c1f7d4027e102f834594f24 (diff)
meta-agl-flutter: fix sample app installationsalmon
Fix TOML configuration file installation in the recipe for the flutter-samples-material-3-demo sample app used in agl-image-flutter. Also tweak command-line in its systemd unit to match embedder expectations. Bug-AGL: SPEC-5362 Change-Id: I048b937bf5622504634f53c979b5442f3c325645 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/30838 ci-image-build: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org> Tested-by: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account
-rw-r--r--meta-agl-flutter/dynamic-layers/flutter-apps-layer/recipes-graphics/flutter-apps/first-party/flutter-samples-material-3-demo/flutter-samples-material-3-demo.service2
-rw-r--r--meta-agl-flutter/dynamic-layers/flutter-apps-layer/recipes-graphics/flutter-apps/first-party/flutter-samples-material-3-demo_aglflutter.inc11
2 files changed, 4 insertions, 9 deletions
diff --git a/meta-agl-flutter/dynamic-layers/flutter-apps-layer/recipes-graphics/flutter-apps/first-party/flutter-samples-material-3-demo/flutter-samples-material-3-demo.service b/meta-agl-flutter/dynamic-layers/flutter-apps-layer/recipes-graphics/flutter-apps/first-party/flutter-samples-material-3-demo/flutter-samples-material-3-demo.service
index f3f4a94b1..f0b475baf 100644
--- a/meta-agl-flutter/dynamic-layers/flutter-apps-layer/recipes-graphics/flutter-apps/first-party/flutter-samples-material-3-demo/flutter-samples-material-3-demo.service
+++ b/meta-agl-flutter/dynamic-layers/flutter-apps-layer/recipes-graphics/flutter-apps/first-party/flutter-samples-material-3-demo/flutter-samples-material-3-demo.service
@@ -7,7 +7,7 @@ User=agl-driver
EnvironmentFile=/etc/default/flutter
EnvironmentFile=-/etc/default/flutter-samples-material-3-demo
Environment=XDG_RUNTIME_DIR=/run/user/1001/
-ExecStart=/usr/bin/flutter-auto -b /usr/share/flutter/flutter-samples-material-3-demo/${FLUTTER_VERSION}/${FLUTTER_RUNTIME} -xdg-shell-app-id flutter-samples-material-3-demo
+ExecStart=/usr/bin/flutter-auto -b /usr/share/flutter/flutter-samples-material-3-demo/${FLUTTER_VERSION}/${FLUTTER_RUNTIME} --xdg-shell-app-id flutter-samples-material-3-demo
[Install]
WantedBy=graphical.target
diff --git a/meta-agl-flutter/dynamic-layers/flutter-apps-layer/recipes-graphics/flutter-apps/first-party/flutter-samples-material-3-demo_aglflutter.inc b/meta-agl-flutter/dynamic-layers/flutter-apps-layer/recipes-graphics/flutter-apps/first-party/flutter-samples-material-3-demo_aglflutter.inc
index 971756ad7..ebdf65d42 100644
--- a/meta-agl-flutter/dynamic-layers/flutter-apps-layer/recipes-graphics/flutter-apps/first-party/flutter-samples-material-3-demo_aglflutter.inc
+++ b/meta-agl-flutter/dynamic-layers/flutter-apps-layer/recipes-graphics/flutter-apps/first-party/flutter-samples-material-3-demo_aglflutter.inc
@@ -1,6 +1,8 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/flutter-samples-material-3-demo:"
-SRC_URI += "file://flutter-samples-material-3-demo.service"
+SRC_URI += "file://flutter-samples-material-3-demo.service \
+ file://flutter-samples-material-3-demo.toml \
+"
APP_CONFIG = "flutter-samples-material-3-demo.toml"
@@ -8,13 +10,6 @@ inherit systemd
do_install:append() {
install -D -m 0644 ${WORKDIR}/${BPN}.service ${D}${systemd_system_unitdir}/${BPN}.service
-
- # determine build type based on what flutter-engine installed.
- for runtime_mode in ${FLUTTER_RUNTIME_MODES}
- do
- install -D -m 0644 ${WORKDIR}/${APP_CONFIG} \
- ${D}${datadir}/flutter/${PUBSPEC_APPNAME}/${FLUTTER_SDK_VERSION}/${runtime_mode}/config.toml
- done
}
RDEPENDS:${PN} += "agl-flutter-env"