summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk>2018-11-27 10:23:14 +0000
committerRaoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk>2018-12-05 10:44:02 +0000
commit64e8ecdf0daba6af0e164991a4a5eeaa1b9a2359 (patch)
treeb7faa77097d198e7b2247e8f0ef55ea6ae6a8ebd
parent093d70ad7b1555d84ff1fa6ab8a11cd8e0389f93 (diff)
downloadbuildstream-raoul/775-execution-environment-reqs.tar.gz
format_project.rst: Add docs for OptionOSraoul/775-execution-environment-reqs
-rw-r--r--doc/source/format_project.rst24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/source/format_project.rst b/doc/source/format_project.rst
index 29bd73dfd..abc989a50 100644
--- a/doc/source/format_project.rst
+++ b/doc/source/format_project.rst
@@ -586,6 +586,30 @@ Architecture options can be tested with the same expressions
as other Enumeration options.
+.. _project_options_os:
+
+OS
+~~
+
+The ``os`` option type is a special enumeration option, which defaults to the
+results of `uname -s`. It does not support assigning any default in the project
+configuration.
+
+.. code:: yaml
+
+ options:
+ machine_os:
+ type: os
+ description: The machine OS
+ values:
+ - Linux
+ - SunOS
+ - Darwin
+ - FreeBSD
+
+Os options can be tested with the same expressions as other Enumeration options.
+
+
.. _project_options_element_mask:
Element mask