summaryrefslogtreecommitdiff
path: root/buildstream/buildelement.py
diff options
context:
space:
mode:
authorPhillip Smyth <phillip.smyth@codethink.co.uk>2018-03-07 15:02:01 +0000
committerPhillip Smyth <phillip.smyth@codethink.co.uk>2018-03-23 13:33:43 +0000
commit13b075f1366d0082cd91abe28646fe367bd0f8da (patch)
tree15d5c1c1bca83ce52809525a9bfac089a0ff7075 /buildstream/buildelement.py
parent357ac70eb66f85078280ca86d871ae2c1a995241 (diff)
downloadbuildstream-13b075f1366d0082cd91abe28646fe367bd0f8da.tar.gz
Generate unique subdirs for built elementsissue-89_unique_build_dirs
Based on issue 89 (https://gitlab.com/BuildStream/buildstream/issues/89) there has been interest in ensuring that elements are staged into unique subdirs while building. This patch supports that by doing the following: * Modify project config to add 2 new variables ("project-name" and "element") * Changed the default install-root from "/buildstream/install" to "/buildstream-install" * Update the tests to accommodate these changes * Update the expected cache keys in the tests
Diffstat (limited to 'buildstream/buildelement.py')
-rw-r--r--buildstream/buildelement.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/buildelement.py b/buildstream/buildelement.py
index c275cfb9d..5a986bd11 100644
--- a/buildstream/buildelement.py
+++ b/buildstream/buildelement.py
@@ -90,7 +90,7 @@ of the staged sources.
Result collection
~~~~~~~~~~~~~~~~~
Finally, the resulting build *artifact* is collected from the the ``%{install-root}``
-directory (which is normally configured as ``/buildstream/install``) inside the sandbox.
+directory (which is normally configured as ``/buildstream-install``) inside the sandbox.
All build elements must install into the ``%{install-root}`` using whatever
semantic the given build system provides to do this. E.g. for standard autotools
@@ -222,7 +222,7 @@ class BuildElement(Element):
"will not be allowed to stage to %{build-root}.")
# Return the payload, this is configurable but is generally
- # always the /buildstream/install directory
+ # always the /buildstream-install directory
return self.get_variable('install-root')
def _get_commands(self, node, name):