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: Fix exporting BOARD.+ through sysbuild cache #59130

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

57300
Copy link
Contributor

@57300 57300 commented Jun 11, 2023

Lately, sysbuild started filtering out variable names matching ^BOARD during sysbuild cache file generation. As a result, one of the cache variables that is no longer exported to other domains is BOARD_ROOT, which breaks the recent support for out-of-tree boards in sysbuild.

Of those variables, the only one which is reasonable to filter out is BOARD itself, because the purpose of that is to substitute a different value for the one found in sysbuild's own CMake cache, which has the board revision stripped out.

Update the relevant if-condition and use a single regex for brevity.

Fixes #59114.

Lately, sysbuild started filtering out variable names matching ^BOARD
during sysbuild cache file generation. As a result, one of the cache
variables that is no longer exported to other domains is BOARD_ROOT,
which breaks the recent support for out-of-tree boards in sysbuild.

Of those variables, the only one which is reasonable to filter out is
BOARD itself, because the purpose of that is to substitute a different
value for the one found in sysbuild's own CMake cache, which has the
board revision stripped out.

Update the relevant if-condition and use a single regex for brevity.

Fixes zephyrproject-rtos#59114.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
@cfriedt
Copy link
Member

cfriedt commented Jun 12, 2023

@tejlmand - have you had a chance to look at this?

@nordicjm nordicjm added this to the v3.4.0 milestone Jun 12, 2023
@carlescufi carlescufi added the bug The issue is a bug, or the PR is fixing a bug label Jun 12, 2023
@nashif nashif merged commit 87aa25e into zephyrproject-rtos:main Jun 12, 2023
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Build System area: Sysbuild 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.

Out Of Tree Board Fails with Sysbuild
7 participants