openpower: Add OPENPOWERBASE
Define a variable that recipes can use for finding the root
of the openpower layer. Typically this is used to refer to the
layer LICENSE for recipes that don't have any source repository.
Change-Id: I2fe9f7a04c1548ccff612a200ee1d794d631c148
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/conf/layer.conf b/conf/layer.conf
index dad2abf..bb727b5 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -9,3 +9,6 @@
BBFILE_PATTERN_openpower-layer = "^${LAYERDIR}/"
LAYERVERSION_openpower-layer = "1"
LAYERSERIES_COMPAT_openpower-layer = "sumo"
+
+# Provide a variable that points the base of the openpower layer.
+OPENPOWERBASE = '${@os.path.normpath("${LAYERDIR}/")}'