Add layer meta-stx-oran and distro poky-stx-oran
[pti/rtp.git] / meta-stx-oran / conf / layer.conf
diff --git a/meta-stx-oran/conf/layer.conf b/meta-stx-oran/conf/layer.conf
new file mode 100644 (file)
index 0000000..8c4dcc7
--- /dev/null
@@ -0,0 +1,59 @@
+#
+## Copyright (C) 2021 Wind River Systems, Inc.
+#
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+# We have a conf and classes directory, add to BBPATH
+BBPATH .= ":${LAYERDIR}"
+
+# We have recipes-* directories, add to BBFILES
+BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
+            ${LAYERDIR}/recipes-*/*/*.bbappend"
+
+BBFILE_COLLECTIONS += "stx-oran-layer"
+BBFILE_PATTERN_stx-oran-layer := "^${LAYERDIR}/"
+BBFILE_PRIORITY_stx-oran-layer = "5"
+
+LAYERDEPENDS_STX = "\
+       core \
+       dpdk \
+       networking-layer \
+       openembedded-layer \
+       networking-layer \
+       filesystems-layer \
+       perl-layer \
+       meta-python \
+       webserver \
+       virtualization-layer \
+       cloud-services-layer \
+       openstack-layer \
+       stx-distro-layer \
+"
+
+LAYERDEPENDS_STX_ANACONDA = "\
+       core \
+       filesystems-layer \
+       meta-python \
+       networking-layer \
+       openembedded-layer \
+       stx-distro-layer \
+"
+
+LAYERDEPENDS_stx-oran-layer = "${@bb.utils.contains('BBFILE_COLLECTIONS', 'meta-anaconda', '${LAYERDEPENDS_STX_ANACONDA}', '${LAYERDEPENDS_STX}', d)}"
+
+# This should only be incremented on significant changes that will
+# cause compatibility issues with other layers
+LAYERVERSION_stx-oran-version = "1"
+LAYERSERIES_COMPAT_stx-oran-layer = "thud warrior"
+
+LAYER_PATH_meta-stx-oran = "${LAYERDIR}"