Files
rtems/spec/build/bsps/sparc/leon3/abiclang.yml
Sebastian Huber f20078acea 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.
2023-01-17 08:31:48 +01:00

34 lines
591 B
YAML

SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
actions:
- get-string: null
- split: null
- env-append: null
build-type: option
copyrights:
- Copyright (C) 2020 Hesham Almatary <Hesham.Almatary@cl.cam.ac.uk>
default:
- enabled-by: sparc/ut700
value:
- -mcpu=leon3
- -mfix-ut700
- enabled-by: sparc/ut699
value:
- -mcpu=leon
- -mfix-ut699
- enabled-by: sparc/gr712rc
value:
- -mcpu=gr712rc
- enabled-by: sparc/gr740
value:
- -mcpu=gr740
- enabled-by: true
value:
- -mcpu=leon3
description: |
ABI flags
enabled-by:
- clang
links: []
name: ABI_FLAGS
type: build