source: rtems/spec/build/bsps/riscv/riscv/abi.yml @ f20078a

Last change on this file since f20078a was f20078a, checked in by Sebastian Huber <sebastian.huber@…>, on 09/12/22 at 08:35:21

build: Use enabled by for defaults

Merge the "default" and "default-by-variant" attributes. Use an
"enabled-by" expression to select the default value based on the enabled
set. This makes it possible to select default values depending on other
options. For example you could choose memory settings based on whether
RTEMS_SMP is enabled or disabled.

The change was tested by comparing the output of

./waf bspdefaults

before and after the change.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
2actions:
3- get-string: null
4- split: null
5- env-append: null
6build-type: option
7copyrights:
8- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
9default:
10- enabled-by:
11  - riscv/mpfs64imafdc
12  - riscv/rv64imafdc
13  value:
14  - -march=rv64imafdc
15  - -mabi=lp64d
16  - -mcmodel=medany
17- enabled-by:
18  - riscv/rv64imafd
19  - riscv/rv64imafd
20  value:
21  - -march=rv64imafd
22  - -mabi=lp64d
23  - -mcmodel=medany
24- enabled-by: riscv/rv64imac
25  value:
26  - -march=rv64imac
27  - -mabi=lp64
28  - -mcmodel=medany
29- enabled-by: riscv/rv32imafdc
30  value: []
31- enabled-by: riscv/rv32imafd
32  value:
33  - -march=rv32imafd
34  - -mabi=ilp32d
35- enabled-by: riscv/rv32imafc
36  value:
37  - -march=rv32imafc
38  - -mabi=ilp32f
39- enabled-by: riscv/rv32im
40  value:
41  - -march=rv32im
42  - -mabi=ilp32
43- enabled-by: riscv/rv32iac
44  value:
45  - -march=rv32iac
46  - -mabi=ilp32
47- enabled-by: riscv/rv32i
48  value:
49  - -march=rv32i
50  - -mabi=ilp32
51- enabled-by: true
52  value:
53  - -march=rv32imac
54  - -mabi=ilp32
55description: |
56  ABI flags
57enabled-by: true
58links: []
59name: ABI_FLAGS
60type: build
Note: See TracBrowser for help on using the repository browser.