Skip to content

[nrf fromlist] cmake: construct build_info.yml when running package_h…#4107

Open
tejlmand wants to merge 3 commits into
nrfconnect:mainfrom
tejlmand:package_help_build_info
Open

[nrf fromlist] cmake: construct build_info.yml when running package_h…#4107
tejlmand wants to merge 3 commits into
nrfconnect:mainfrom
tejlmand:package_help_build_info

Conversation

@tejlmand
Copy link
Copy Markdown
Contributor

…elper.cmake

build_info.yml contains valuable information regarding the build. Make this information available when running package_helper.cmake.

Upstream PR #: 109673

@tejlmand tejlmand requested a review from kylebonnici May 22, 2026 11:31
@tejlmand tejlmand force-pushed the package_help_build_info branch from 1c2c7bf to 5a72344 Compare June 3, 2026 07:57
@tejlmand tejlmand requested a review from carlescufi June 3, 2026 07:57
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request Jun 3, 2026
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-zephyr#4107

Signed-off-by: Nordic Builder <pylon@nordicsemi.no>
@tejlmand tejlmand requested a review from nordicjm June 3, 2026 07:58
@tejlmand tejlmand added this to the ncs-3.4.0 milestone Jun 3, 2026
@tejlmand tejlmand added the DNM label Jun 3, 2026
tejlmand added 3 commits June 3, 2026 15:02
…elper.cmake

build_info.yml contains valuable information regarding the build.
Make this information available when running package_helper.cmake.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
Support BUILD_INFO_SYNC=<mode>.
This allow users or tools to request a more frequent update of
build_info.yml.

Modes are:
- instant: updates build_info.yml on each build_info() call
- module: updates build_info.yml when each Zephyr CMake module completes
- final: updates build_info.yml when Zephyr CMake package completes

`final` is the default behavior.

Upstream PR #: 107329

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
Calling `build_info()` when variable content is known and before calling
external tools.

This ensures that build_info is updated with known knowledge even if the
external tool fails, and thus can help in debugging.

Upstream PR #: 107329

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
@tejlmand tejlmand force-pushed the package_help_build_info branch from 5a72344 to 19a7942 Compare June 3, 2026 13:05
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request Jun 3, 2026
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-zephyr#4107

Signed-off-by: Nordic Builder <pylon@nordicsemi.no>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants