diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2018-09-10 15:10:50 +0100 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2018-09-10 15:57:41 +0100 |
commit | a37bc6ce4212972534a7ef16c2e81f6c464a2a0c (patch) | |
tree | b15299b5f0695308a5132f86487bfd1e0a8e581d /doc/source/format_declaring.rst | |
parent | ef66daf5c3c0c0b06986b2a865dde11869cc836b (diff) | |
download | buildstream-a37bc6ce4212972534a7ef16c2e81f6c464a2a0c.tar.gz |
docs: document protected variables
And remove then from the defaults as they are dynamically set by
BuildStream.
Diffstat (limited to 'doc/source/format_declaring.rst')
-rw-r--r-- | doc/source/format_declaring.rst | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/source/format_declaring.rst b/doc/source/format_declaring.rst index 38c107c1b..e1ad4f720 100644 --- a/doc/source/format_declaring.rst +++ b/doc/source/format_declaring.rst @@ -484,3 +484,25 @@ dependency and that all referenced variables are declared, the following is fine install-commands: - | %{make-install} RELEASE_TEXT="%{release-text}" + + +Variables declared by BuildStream +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +BuildStream declares a set of :ref:`builtin <project_builtin_defaults>` +variables that may be overridden. In addition, the following +read-only variables are also dynamically declared by BuildStream: + +* ``element-name`` + + The name of the element being processed (e.g base/alpine.bst). + +* ``project-name`` + + The name of project where BuildStream is being used. + +* ``max-jobs`` + + Maximum number of parallel build processes within a given + build, support for this is conditional on the element type + and the build system used (any element using 'make' can + implement this). |