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

twister: Add means for requiring sysbuild from platform level #73790

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

PerMac
Copy link
Member

@PerMac PerMac commented Jun 5, 2024

Some complex platforms (e.g. nrf54h20) requires sysbuild for all builds. Even simplest hello_world. This PR add option to configure such requirement (sysbuild: true) in platform_name.yaml which is used by twister. It tells twister to use sysbuild always for such target.
The PR also adds "sysbuild: true" to nrf54h20 targets yamls

@masz-nordic
Copy link
Collaborator

Please add it to nRF54L15 targets as well.

@PerMac PerMac force-pushed the sysbuild_plat_yaml branch 2 times, most recently from 8721ea2 to 4266eb5 Compare June 5, 2024 19:30
@PerMac
Copy link
Member Author

PerMac commented Jun 5, 2024

aligned pytest unit tests and rebased to fix unrelated twister failure

PerMac added a commit to PerMac/sdk-zephyr that referenced this pull request Jun 5, 2024
More complex platforms require sysbuild to use always, even for
such "simple" samples like hello_world. Such platforms can have
`sysbuild: true` entry in their board_name.yaml used by twister.
Using such entry will tell twister, that sysbuild must always be used
on a given platform.
Twister is aligned to have information about need of sysbuild at
instance (platform + suite) level (was only at suite level before).
Instance.sysbuild is true whenever a test suite or a platform requires
sysbuild.
Twister pytest unit tests are aligned with changes.

Signed-off-by: Maciej Perkowski <[email protected]>

Upstream PR: zephyrproject-rtos/zephyr#73790
PerMac added a commit to PerMac/sdk-zephyr that referenced this pull request Jun 5, 2024
…build in twister

Nrf54h's and nrf54l's targets are the first targets complex enough
that a sysbuild must be used on every build for them. This information
is reflected in their yamls. These entries tell twister to always use
sysbuild for those targets.

Signed-off-by: Maciej Perkowski <[email protected]>

Upstream PR: zephyrproject-rtos/zephyr#73790
anangl
anangl previously approved these changes Jun 6, 2024
golowanow
golowanow previously approved these changes Jun 6, 2024
@PerMac PerMac force-pushed the sysbuild_plat_yaml branch from 4266eb5 to e745fad Compare June 7, 2024 10:19
@PerMac PerMac requested review from gchwier, nordic-segl, nashif, anangl, masz-nordic and golowanow and removed request for nordic-segl June 7, 2024 10:21
@carlescufi carlescufi added this to the v3.7.0 milestone Jun 10, 2024
@nashif
Copy link
Member

nashif commented Jun 11, 2024

@PerMac what is going on here? will you please fix the issues?

@PerMac
Copy link
Member Author

PerMac commented Jun 11, 2024

@nashif I was looking into it. I see 3 issues:
sample.net.wpan - should be fixed with #73156
buildsystem.kconfig.utf8_in_values - I asked @tejlmand to help with this
sample.modules.canopennode.no_storage - @gmarull is looking into this

@gmarull
Copy link
Member

gmarull commented Jun 11, 2024

sample.modules.canopennode.no_storage - @gmarull is looking into this

#74101

@PerMac
Copy link
Member Author

PerMac commented Jun 12, 2024

buildsystem issue will be fixed with #74152

@nashif
Copy link
Member

nashif commented Jun 13, 2024

buildsystem issue will be fixed with #74152

this one is now merged , please rebase.

PerMac added 2 commits June 13, 2024 14:45
More complex platforms require sysbuild to use always, even for
such "simple" samples like hello_world. Such platforms can have
`sysbuild: true` entry in their board_name.yaml used by twister.
Using such entry will tell twister, that sysbuild must always be used
on a given platform.
Twister is aligned to have information about need of sysbuild at
instance (platform + suite) level (was only at suite level before).
Instance.sysbuild is true whenever a test suite or a platform requires
sysbuild.
Twister pytest unit tests are aligned with changes.

Signed-off-by: Maciej Perkowski <[email protected]>
Nrf54h's and nrf54l's targets are the first targets complex enough
that a sysbuild must be used on every build for them. This information
is reflected in their yamls. These entries tell twister to always use
sysbuild for those targets.

Signed-off-by: Maciej Perkowski <[email protected]>
@PerMac
Copy link
Member Author

PerMac commented Jun 13, 2024

@nashif rebased and green

@nashif nashif merged commit 3137829 into zephyrproject-rtos:main Jun 13, 2024
44 of 46 checks passed
anangl pushed a commit to anangl/sdk-zephyr that referenced this pull request Jul 1, 2024
More complex platforms require sysbuild to use always, even for
such "simple" samples like hello_world. Such platforms can have
`sysbuild: true` entry in their board_name.yaml used by twister.
Using such entry will tell twister, that sysbuild must always be used
on a given platform.
Twister is aligned to have information about need of sysbuild at
instance (platform + suite) level (was only at suite level before).
Instance.sysbuild is true whenever a test suite or a platform requires
sysbuild.
Twister pytest unit tests are aligned with changes.

Signed-off-by: Maciej Perkowski <[email protected]>

Upstream PR: zephyrproject-rtos/zephyr#73790

(cherry picked from commit f7bfc64)
anangl pushed a commit to anangl/sdk-zephyr that referenced this pull request Jul 1, 2024
…build in twister

Nrf54h's and nrf54l's targets are the first targets complex enough
that a sysbuild must be used on every build for them. This information
is reflected in their yamls. These entries tell twister to always use
sysbuild for those targets.

Signed-off-by: Maciej Perkowski <[email protected]>

Upstream PR: zephyrproject-rtos/zephyr#73790

(cherry picked from commit b98ee62)
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.