Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend build_info.yml #84906

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tejlmand
Copy link
Collaborator

Identical to: #83956 but with following improvements:

  • Support for : in map values.
  • Test case for : handling, aka windows path
  • Test case for , handling in map values, along with escape and quoting requirement when string value contains ,.
  • Proper error messages for improperly escaped , in string values.

This PR contains a series of commits related to extend build_info.yml with more values.

Mainly the following extra information will be available:

Zephyr images
board directories
Sysbuild
list of images
The yaml CMake module has been extended to support handling of list of map objects.

The schema for build info already contained a `board:path` sequence tag
definition, but boards.cmake did not populate this in the generated
build_info.yml.

Fix this by correctly populating the `board:path` with list of board
directories.

Signed-off-by: Torsten Rasmussen <[email protected]>
This commit introduce support for maps in a yaml list.

The yaml_set() function has been extended with the following signature:
> yaml_set(NAME <name> KEY <key>...
>          [APPEND] LIST MAP <map1> MAP <map2> MAP ...
> )

where a `MAP <map>` has the form:
`MAP "<key1>: <value1>, <key2>: <value2>, ...`

Signed-off-by: Torsten Rasmussen <[email protected]>
Add 'images' as valid list in build info schema.
This allow sysbuild and regular Zephyr images to populate build_info.yml
with images included in the build.

Signed-off-by: Torsten Rasmussen <[email protected]>
Populate the build_info.yml created by sysbuild CMake with list of
images and write the build info file afterwards.

This allows users and external tools to examine which images was
included in the build even if one or more of those images fails CMake
configure or generate stage.

Signed-off-by: Torsten Rasmussen <[email protected]>
@tejlmand tejlmand force-pushed the sysbuild/build_info_images branch from 55b87aa to 79ac5a8 Compare February 5, 2025 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants