summaryrefslogtreecommitdiff
path: root/src/buildstream/plugins/elements/script.yaml
blob: 390f60355634fa5f454524a5c135d00d054fcff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# The script element allows staging elements into specific locations
# via it's "location" dependency configuration
#
# For example, if you want to stage "foo-tools.bst" into the "/" of
# the sandbox at buildtime, and the "foo-system.bst" element into
# the %{build-root}, you can do so as follows:
#
# build-depends:
# - foo-tools.bst
# - filename: foo-system.bst
#   config:
#     location: "%{build-root}"
#
# Note: the default of the "location" parameter is "/", so it is not
#       necessary to specify the location if you want to stage the
#       element in "/"
#

# Common script element variables
variables:
  # Defines the directory commands will be run from.
  cwd: /

# Script element configuration
config:

  # Defines whether to run the sandbox with '/' read-only.
  # It is recommended to set root as read-only wherever possible.
  root-read-only: False

  # List of commands to run in the sandbox.
  commands: []