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

sysbuild: shared cache variable instead of local scope variable #52884

Merged

Conversation

tejlmand
Copy link
Collaborator

@tejlmand tejlmand commented Dec 8, 2022

Fixes: #52353

If a CMake variable is available in both local scope and as CMake cache variable, then the use of ${<var>} fetches the local scoped variable. If only the cache variable is set, then things works as expected.

Ensure that the cached variable is always the variable being shared to images by using $CACHE{<var>} instead.

Signed-off-by: Torsten Rasmussen [email protected]

Fixes: zephyrproject-rtos#52353

If a CMake variable is available in both local scope and as CMake cache
variable, then the use of `${<var>}` fetches the local scoped variable.
If only the cache variable is set, then things works as expected.

Ensure that the cached variable is always the variable being shared to
images by using `$CACHE{<var>}` instead.

Signed-off-by: Torsten Rasmussen <[email protected]>
nordicjm
nordicjm previously approved these changes Dec 8, 2022
Copy link
Collaborator

@nordicjm nordicjm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and revision is now properly propagated

@tejlmand
Copy link
Collaborator Author

tejlmand commented Dec 9, 2022

@Cherish-Gww FYI

@carlescufi carlescufi merged commit 3b32444 into zephyrproject-rtos:main Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Build System bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: sysbuild lost board reversion here
5 participants