1#
2# SPDX-License-Identifier: BSD-3-Clause
3# SPDX-FileCopyrightText: Copyright TF-RMM Contributors.
4#
5
6%YAML 1.2
7---
8description: >-
9  Overlay to build TF-RMM with standard build settings.
10  In order to use this overlay, the RMM_SRC btvar must be defined containing
11  the absolute path for the local TF-RMM repository.
12
13  The overlay allows to overwrite the default log level for TF-RMM, by
14  using ``RMM_LOG_LEVEL`` btvar as well as to define the SHA/Branch of TF-A
15  to be used for the particular instance of RMM to build through the
16  ``TFA_REVISION`` btvar. It also allows to define the host platform through
17  the ``RMM_CONFIG`` btvar.
18
19buildex:
20  btvars:
21    # Determines where the TF-RMM source root directory is
22    RMM_SRC:
23      type: path
24      value: null
25
26    # Determines the RMM Log level
27    RMM_LOG_LEVEL:
28      type: string
29      value: '40'
30
31    # Determines the RMM Configuration (a.k.a. platform) to build
32    RMM_CONFIG:
33      type: string
34      value: 'fvp_defcfg'
35
36    # Determines the branch or SHA to pull for TF-A which is suitable
37    # for the current RMM
38    TFA_REVISION:
39      type: string
40      value: master
41
42build:
43  rmm:
44    sourcedir: ${btvar:RMM_SRC}
45    params:
46       -DLOG_LEVEL: ${btvar:RMM_LOG_LEVEL}
47       -DRMM_CONFIG: ${btvar:RMM_CONFIG}
48
49  tfa:
50    repo:
51      revision: ${btvar:TFA_REVISION}
52