Changeset b91e7f2 in rtems-central


Ignore:
Timestamp:
01/17/23 14:10:29 (13 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
28cee60
Parents:
dfd57e9
git-author:
Sebastian Huber <sebastian.huber@…> (01/17/23 14:10:29)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/23/23 06:26:05)
Message:

spec: Improve build option default values

Merge "default" and "default-by-variant" attributes. Use an enabled-by
expression to select the default value.

Location:
spec/spec
Files:
1 added
1 deleted
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • spec/spec/build-default-value-list.yml

    rdfd57e9 rb91e7f2  
    1111  list:
    1212    description: null
    13     spec-type: build-default-by-variant
    14 spec-name: Build Option Default by Variant List
    15 spec-type: build-default-by-variant-list
     13    spec-type: build-default-value
     14spec-name: Build Option Default Value List
     15spec-type: build-default-value-list
    1616type: spec
  • spec/spec/build-option.yml

    rdfd57e9 rb91e7f2  
    1818  build-type: option
    1919  copyrights:
    20   - Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
    21   default: 115200
    22   default-by-variant:
    23   - value: 9600
    24     variants:
     20  - Copyright (C) 2020, 2022 embedded brains GmbH (http://www.embedded-brains.de)
     21  default:
     22  - enabled-by:
    2523    - bsps/powerpc/motorola_powerpc
    2624    - m68k/m5484FireEngine
    2725    - powerpc/hsc_cm01
    28   - value: 19200
    29     variants:
    30     - m68k/COBRA5475
     26    value: 9600
     27  - enabled-by: m68k/COBRA5475
     28    value: 19200
     29  - enabled-by: true
     30    value: 115200
    3131  description: |
    3232    Default baud for console and other serial devices.
     
    4949      default:
    5050        description: |
    51           It shall be the default value of the option if no variant-specific
    52           default value is specified.  Use ``null`` to specify that no default
    53           value exits.  The variant-specific default values may be specified by
    54           the ``default-by-variant`` attribute.
    55         spec-type: build-option-value
    56       default-by-variant:
    57         description: |
    58           The list is checked two times and processed from top to bottom.
    59           Firstly, the base BSP name is used to match with a variant.
    60           Secondly, the BSP family name prefixed by ``bsps/`` is used to match
    61           with a variant.  If a matching variant is found, then the processing
    62           stops.
    63         spec-type: build-default-by-variant-list
     51          It shall be the list of default values of the option.  When a default
     52          value is needed, the first value on the list which is enabled
     53          according to the enabled set is choosen.  If no value is enabled,
     54          then the default value is ``null``.
     55        spec-type: build-default-value-list
    6456      description:
    6557        description: |
     
    8072    - actions
    8173    - default
    82     - default-by-variant
    8374    - description
    8475spec-name: Build Option Item Type
Note: See TracChangeset for help on using the changeset viewer.