summaryrefslogtreecommitdiff
path: root/buildstream/plugins/elements/junction.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/plugins/elements/junction.py')
-rw-r--r--buildstream/plugins/elements/junction.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildstream/plugins/elements/junction.py b/buildstream/plugins/elements/junction.py
index ec7832bc6..f7ee2ab72 100644
--- a/buildstream/plugins/elements/junction.py
+++ b/buildstream/plugins/elements/junction.py
@@ -48,6 +48,9 @@ Overview
# Optionally look in a subpath of the source repository for the project
path: projects/hello
+ # Optionally specify the element in the subproject to use as junction
+ element: junctions/sub-project.bst
+
.. note::
Junction elements may not specify any dependencies as they are simply
@@ -140,6 +143,7 @@ class JunctionElement(Element):
BST_FORBID_RDEPENDS = True
def configure(self, node):
+ self.junctioned_element = self.node_get_member(node, str, 'element', default=None)
self.path = self.node_get_member(node, str, 'path', default='')
self.options = self.node_get_member(node, Mapping, 'options', default={})