summaryrefslogtreecommitdiff
path: root/multitech
diff options
context:
space:
mode:
Diffstat (limited to 'multitech')
-rw-r--r--multitech/classes/thisdir.bbclass3
-rw-r--r--multitech/conf/layer.conf3
2 files changed, 6 insertions, 0 deletions
diff --git a/multitech/classes/thisdir.bbclass b/multitech/classes/thisdir.bbclass
new file mode 100644
index 0000000..f3b07f5
--- /dev/null
+++ b/multitech/classes/thisdir.bbclass
@@ -0,0 +1,3 @@
+# THISDIR only works properly with imediate expansion as it has to run
+# in the context of the location its used (:=)
+THISDIR = "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
diff --git a/multitech/conf/layer.conf b/multitech/conf/layer.conf
index 86f136d..e1769b4 100644
--- a/multitech/conf/layer.conf
+++ b/multitech/conf/layer.conf
@@ -3,3 +3,6 @@ BBPATH .= ":${LAYERDIR}"
BBFILE_COLLECTIONS += "multitech"
BBFILE_PRIORITY_multitech = "5"
BBFILE_PATTERN_multitech = "${LAYERDIR}"
+
+# enable use of THISDIR variable bbappend files (pulled from oe-core)
+INHERIT += "thisdir"