summaryrefslogtreecommitdiff
path: root/buildstream/element.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/element.py')
-rw-r--r--buildstream/element.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index b62945f4b..1429307a6 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -172,6 +172,7 @@ class Element(Plugin):
# Collect the composited variables and resolve them
variables = self.__extract_variables(meta)
+ variables['element-name'] = self.name
self.__variables = Variables(variables)
# Collect the composited environment now that we have variables