meta-agl-flutter: rework agl-image-flutter 09/30009/1 17.92.0 ricefish/17.92.0 ricefish_17.92.0
authorScott Murray <scott.murray@konsulko.com>
Mon, 24 Jun 2024 20:51:08 +0000 (16:51 -0400)
committerScott Murray <scott.murray@konsulko.com>
Mon, 24 Jun 2024 20:58:07 +0000 (16:58 -0400)
Rework agl-image-flutter to serve more as an example of including
a Flutter application into a production image, while also keeping
it being somewhat of a bit of a build smoketest for meta-flutter
integration.

Changes:
- Switch agl-image-flutter over to using the release version of
  the Flutter engine, and dropping the SDK, dev, and test packages.
- Re-enable having the gallery application get auto-started.
- Add a "-debug" version of the image that keeps most of the dev
  bits from the previous agl-image-flutter, and bakes in stuff
  like package management and debug tools.  This keeps an example
  of how such an image can be built, and will still work in the
  standalone case when agl-devel is not used.

Bug-AGL: SPEC-5182

Change-Id: I8e59fe71f8739ae67dd9f8c743a7024fd4f52b84
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
meta-agl-flutter/dynamic-layers/flutter-apps-layer/recipes-graphics/flutter-apps/first-party/flutter-gallery_aglflutter.inc
meta-agl-flutter/recipes-platform/images/agl-image-flutter-debug.bb [new file with mode: 0644]
meta-agl-flutter/recipes-platform/images/agl-image-flutter.bb

index 61bcaa0..68c07f1 100644 (file)
@@ -8,11 +8,6 @@ do_install:append() {
     install -D -m 0644 ${WORKDIR}/${BPN}.service ${D}${systemd_system_unitdir}/${BPN}.service
 }
 
-#FILES:${PN} += "${systemd_system_unitdir}"
-
 RDEPENDS:${PN} += "agl-flutter-env"
 
 SYSTEMD_SERVICE:${PN} = "flutter-gallery.service"
-# Explicitly disable auto-start to avoid interferring with Toyota workspace
-# tooling usecase.
-SYSTEMD_AUTO_ENABLE:${PN} = "disable"
diff --git a/meta-agl-flutter/recipes-platform/images/agl-image-flutter-debug.bb b/meta-agl-flutter/recipes-platform/images/agl-image-flutter-debug.bb
new file mode 100644 (file)
index 0000000..c9c1f29
--- /dev/null
@@ -0,0 +1,29 @@
+require recipes-platform/images/agl-image-compositor.bb
+
+SUMMARY = "Example Flutter application debug image for development"
+LICENSE = "MIT"
+
+CLANGSDK = "1"
+
+# NOTES:
+# - the package-management IMAGE_FEATURE and packagegroup-agl-core-devel
+#   are explicitly added here to cover the usecase of building without
+#   passing agl-devel to aglsetup.sh.  This is explicitly a debug image
+#   where those are are always desired.
+# - Getting the debug version of the application requires changing
+#   the value of FLUTTER_APP_RUNTIME_MODES to include "debug",
+#   which is outside the scope of this image recipe.
+
+IMAGE_FEATURES += "ssh-server-openssh package-management dbg-pkgs"
+
+IMAGE_INSTALL += "\
+    packagegroup-agl-core-devel \
+    \
+    weston-ini-conf-landscape \
+    \
+    flutter-auto-verbose-logs \
+    \
+    flutter-engine-sdk-dev \
+    \
+    flutter-gallery \
+"
index b42e2ad..0fdb7da 100644 (file)
@@ -1,6 +1,6 @@
 require recipes-platform/images/agl-image-compositor.bb
 
-SUMMARY = "Baseline Flutter Image for Development"
+SUMMARY = "Example Flutter application image"
 LICENSE = "MIT"
 
 CLANGSDK = "1"
@@ -10,12 +10,7 @@ IMAGE_FEATURES += "ssh-server-openssh"
 IMAGE_INSTALL += "\
     weston-ini-conf-landscape \
     \
-    flutter-auto-verbose-logs \
-    \
-    flutter-engine-sdk-dev \
+    flutter-auto \
     \
     flutter-gallery \
-    meta-flutter-tests-textures-test-egl \
-    \
 "
-