From 8f41dcb65f43b83d0bedce9fbe567e6ac95045f4 Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Fri, 2 Jun 2023 10:48:45 -0400 Subject: meta-agl-flutter: add agl-flutter-env Add agl-flutter-env recipe that installs a /etc/default/flutter environment file that can be sourced to get the default Flutter version and runtime type. The variable AGL_FLUTTER_DEFAULT_RUNTIME can be overridden at build time to switch the default runtime from release to something else. Bug-AGL: SPEC-4819 Change-Id: I33ef50c932116aecddb746007722ce8163079389 Signed-off-by: Scott Murray --- .../recipes-config/agl-flutter-env/agl-flutter-env_1.0.bb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meta-agl-flutter/recipes-config/agl-flutter-env/agl-flutter-env_1.0.bb (limited to 'meta-agl-flutter') diff --git a/meta-agl-flutter/recipes-config/agl-flutter-env/agl-flutter-env_1.0.bb b/meta-agl-flutter/recipes-config/agl-flutter-env/agl-flutter-env_1.0.bb new file mode 100644 index 00000000..aaff166b --- /dev/null +++ b/meta-agl-flutter/recipes-config/agl-flutter-env/agl-flutter-env_1.0.bb @@ -0,0 +1,15 @@ +SUMMARY = "AGL Flutter environment file" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + +inherit allarch + +AGL_FLUTTER_DEFAULT_RUNTIME ?= "release" + +do_compile[noexec] = "1" + +do_install() { + install -d ${D}${sysconfdir}/default + echo "FLUTTER_VERSION=${FLUTTER_SDK_TAG}" > ${D}${sysconfdir}/default/flutter + echo "FLUTTER_RUNTIME=${AGL_FLUTTER_DEFAULT_RUNTIME}" >> ${D}${sysconfdir}/default/flutter +} -- cgit 1.2.3-korg