From 44346b1ab964b3cb7a69562c443918e8551677ea Mon Sep 17 00:00:00 2001
From: Stefan Schmidt <stefan.schmidt@huawei.com>
Date: Thu, 4 Feb 2021 15:04:05 +0100
Subject: [PATCH] meta-ohos-staging: add layer to stage changes before
 upstreaming

While some changes could go upstream righ away, some others might need
more work until ready. This layer gives us a space to keep these recipes
and changes while we get them ready.

Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com>
---
 meta-ohos-staging/README.md       | 22 ++++++++++++++++++++++
 meta-ohos-staging/conf/layer.conf | 13 +++++++++++++
 2 files changed, 35 insertions(+)
 create mode 100644 meta-ohos-staging/README.md
 create mode 100644 meta-ohos-staging/conf/layer.conf

diff --git a/meta-ohos-staging/README.md b/meta-ohos-staging/README.md
new file mode 100644
index 00000000..df8422a3
--- /dev/null
+++ b/meta-ohos-staging/README.md
@@ -0,0 +1,22 @@
+This README file contains information on the contents of the meta-ohos-staging layer.
+
+Table of Contents
+=================
+
+  I. Adding the meta-ohos-staging layer to your build
+ II. Misc
+
+
+I. Adding the meta-ohos-staging layer to your build
+===================================================
+
+This layer only depends on poky or oe-core. To add it to your layers:
+
+Run 'bitbake-layers add-layer meta-ohos-staging'
+
+II. Misc
+========
+
+This layer provides recipes intended to upstream into other layer, but are not
+fully ready yet. As a start we will have some connectivity related recipes for
+OpenThread as well as MQTT.
diff --git a/meta-ohos-staging/conf/layer.conf b/meta-ohos-staging/conf/layer.conf
new file mode 100644
index 00000000..cb88c5a1
--- /dev/null
+++ b/meta-ohos-staging/conf/layer.conf
@@ -0,0 +1,13 @@
+# We have a conf directory, add to BBPATH
+BBPATH .= ":${LAYERDIR}"
+
+# We have recipes-* directories, add to BBFILES
+BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
+            ${LAYERDIR}/recipes-*/*/*.bbappend"
+
+BBFILE_COLLECTIONS += "meta-ohos-staging"
+BBFILE_PATTERN_meta-ohos-staging = "^${LAYERDIR}/"
+BBFILE_PRIORITY_meta-ohos-staging = "5"
+
+LAYERDEPENDS_meta-ohos-staging = "core"
+LAYERSERIES_COMPAT_meta-ohos-staging = "dunfell"
-- 
GitLab