Sebastian Huber commented on a discussion: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1187#note_148665


With respect to the ` TMS570_VARIANT_4357`, this should work in the enabled-by 
expressions. It is set up like this:
```yaml
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
actions:
- get-integer: null
- assert-in-set:
  - 3137
  - 4357
- define: null
- env-assign: null
# The actions above assign the option value to the TMS570_VARIANT configuration 
and build environment variable.

# This sets the action value to "TMS570_VARIANT_${TMS570_VARIANT}":
- set-value: TMS570_VARIANT_${TMS570_VARIANT}
# This substitutes the action value (to for example TMS570_VARIANT_4357):
- substitute: null
# This adds the action value to the enabled set:
- env-append: ENABLE
build-type: option
copyrights:
- Copyright (C) 2023 embedded brains GmbH & Co. KG
default:
- enabled-by:
  - arm/tms570lc4357_hdk
  - arm/tms570lc4357_hdk_intram
  - arm/tms570lc4357_hdk_sdram
  value: 4357
- enabled-by: true
  value: 3137
description: |
  Defines the TMS570 family variant.  Use 3137 for the TMS570LS3137 and 4357
  for the TMSLC4357.
enabled-by: true
format: '{}'
links: []
name: TMS570_VARIANT
type: build
```
With a config.ini
```
[arm/tms570lc4357_hdk]
```
I get:
```
grep -r TMS570_MEMORY_SRAM_SIZE build
build/arm/tms570lc4357_hdk/bsps/include/bspopts.h:#define 
TMS570_MEMORY_SRAM_SIZE 0x00080000
```

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1187#note_148665
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to