From c1cd0844bfd03355df9e65cc4e3fc6554e9fefca Mon Sep 17 00:00:00 2001
From: Philippe Coval <philippe.coval.ext@huawei.com>
Date: Sat, 12 Feb 2022 19:21:09 +0100
Subject: [PATCH] flutter: Add layer

This revision belong to kirkstone branch.

It has been checked on onrio kirkstone base using downstream project:

https://gitlab.eclipse.org/eclipse/oniro-blueprints/experimental/flutter/meta-oniro-blueprints-flutter/

Relate-to: https://gitlab.eclipse.org/eclipse/oniro-core/oniro/-/issues/669
Forwarded: https://gitlab.eclipse.org/eclipse/oniro-core/oniro/-/merge_requests/4
Relate-to: https://rzr.github.io/rzr-presentations/docs/oniro-community/#/18
Relate-to: https://gitlab.eclipse.org/pcoval/oniro-presentations/-/wikis/
Relate-to: https://booting.oniroproject.org/distro/oniro/-/merge_requests/541
Relate-to: https://gitlab.eclipse.org/pcoval/meta-oniro-blueprint-flutter/-/wikis/
Signed-off-by: Philippe Coval <philippe.coval.ext@huawei.com>
---
 docs/index.rst                          |  1 +
 docs/supported-technologies/flutter.rst | 22 ++++++++++++++++++++++
 flavours/linux/bblayers.conf.sample     |  1 +
 manifests/default.xml                   |  2 +-
 4 files changed, 25 insertions(+), 1 deletion(-)
 create mode 100644 docs/supported-technologies/flutter.rst

diff --git a/docs/index.rst b/docs/index.rst
index 3eac034c..e2c53827 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -38,6 +38,7 @@ Build System Guide
    supported-technologies/containers
    supported-technologies/modbus
    supported-technologies/lvgl
+   supported-technologies/flutter
 
 .. toctree::
    :caption: Supported Toolchains
diff --git a/docs/supported-technologies/flutter.rst b/docs/supported-technologies/flutter.rst
new file mode 100644
index 00000000..b29c61eb
--- /dev/null
+++ b/docs/supported-technologies/flutter.rst
@@ -0,0 +1,22 @@
+.. SPDX-FileCopyrightText: Huawei Inc.
+..
+.. SPDX-License-Identifier: CC-BY-4.0
+
+Flutter
+#######
+
+FLutter is an open-source framework to build modern users interface.
+Originally designed for micro controllers, this toolkit can be also used on Linux flavour of Oniro
+using wayland backend.
+
+As reference example check Oniro Vending Machine blueprint, and its configuration flags,
+to build single fullscreen application.
+
+External Resources
+******************
+
+For more details on LVGL check:
+
+* `Flutter oniro blueprint <https://gitlab.eclipse.org/eclipse/oniro-blueprints/experimental/flutter/meta-oniro-blueprints-flutter>`__.
+* `Wiki about using flutter on Oniro <https://gitlab.eclipse.org/eclipse/oniro-blueprints/experimental/flutter/meta-oniro-blueprints-flutter/-/wikis>`__.
+* `Upstream OE/Yocto layer <https://github.com/meta-flutter/meta-flutter>`__.
diff --git a/flavours/linux/bblayers.conf.sample b/flavours/linux/bblayers.conf.sample
index e051e6fc..66fdf433 100644
--- a/flavours/linux/bblayers.conf.sample
+++ b/flavours/linux/bblayers.conf.sample
@@ -27,6 +27,7 @@ BBLAYERS ?= " \
   ##OEROOT##/../meta-freertos \
   ##OEROOT##/../meta-intel \
   ##OEROOT##/../meta-seco-intel \
+  ##OEROOT##/../meta-flutter \
   ##OEROOT##/../meta-freescale \
   ##OEROOT##/../meta-seco-imx \
   ##OEROOT##/../meta-openembedded/meta-oe \
diff --git a/manifests/default.xml b/manifests/default.xml
index c83ffe23..72f0921e 100644
--- a/manifests/default.xml
+++ b/manifests/default.xml
@@ -41,8 +41,8 @@ SPDX-FileCopyrightText: Huawei Inc.
 	<project name="meta-arm" remote="yocto" revision="78fce73c3803aba82149a3a03fde1b708f5424fa" path="meta-arm" />
 	<project name="jiazhang0/meta-secure-core" remote="github" revision="1a74be5b363ee61256093e0a3efaa78fd370a27c" path="meta-secure-core" />
 	<project name="pub/rockchip/meta-seco-rockchip" remote="seco" revision="e23ef0581b26636351e3194edb8ec65cca830542" path="meta-seco-rockchip" />
+        <project name="meta-flutter/meta-flutter" remote="github" revision="feea5d7fc6497b9db6a849fef4e347dd58c3de61" path="meta-flutter" />
 	<project name="meta-virtualization" remote="yocto" revision="e11d5b630e6b5626b58b742b80f5bdf277a44168" path="meta-virtualization" />
-
 	<!--
 		All entries above are pinned to a specific revision and updated manually.
 
-- 
GitLab