From f20078acea88f7c38f14cbc206053e50c313c357 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 12 Sep 2022 10:35:21 +0200 Subject: 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. --- spec/build/bsps/aarch64/xilinx-zynqmp/optramori.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'spec/build/bsps/aarch64/xilinx-zynqmp/optramori.yml') diff --git a/spec/build/bsps/aarch64/xilinx-zynqmp/optramori.yml b/spec/build/bsps/aarch64/xilinx-zynqmp/optramori.yml index c67358f0d5..c4d33094fb 100644 --- a/spec/build/bsps/aarch64/xilinx-zynqmp/optramori.yml +++ b/spec/build/bsps/aarch64/xilinx-zynqmp/optramori.yml @@ -7,13 +7,14 @@ actions: build-type: option copyrights: - Copyright (C) 2020 On-Line Applications Research (OAR) -default: 0x40018000 -default-by-variant: -- value: 0x10000000 - variants: +default: +- enabled-by: - aarch64/xilinx_zynqmp_ilp32_zu3eg - aarch64/xilinx_zynqmp_lp64_cfc400x - aarch64/xilinx_zynqmp_lp64_zu3eg + value: 0x10000000 +- enabled-by: true + value: 0x40018000 description: | base address of memory area available to the BSP enabled-by: true -- cgit v1.2.3