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

nrf_802154: nRF54L15 use non-secure SL library for builds with CONFIG_TRUSTED_EXECUTION_NONSECURE #1431

Merged
merged 2 commits into from
Aug 12, 2024

Conversation

ankuns
Copy link
Contributor

@ankuns ankuns commented Aug 8, 2024

For builds with Kconfig option CONFIG_TRUSTED_EXECUTION_NONSECURE the non-secure binaries of nRF 802.15.4 SL library must be used.

To allow this with current nrfxlib_calculate_lib_path cmake function, the function is given additional parameter NS_PROVIDED.
This approach does not force other users to provide non-secure versions of their libraries (for example if their libs are secure-agnostic).
The nrfxlib_calculate_lib_path adds _ns suffix to the returned library path when the SoC is nRF54L15 and CONFIG_TRUSTED_EXECUTION_NONSECURE is enabled.
Other SoCs are out of scope now.

The nRF 802.15.4 SL library for nRF54L non-secure is deployed already with the PR:
#1430

common.cmake Show resolved Hide resolved
@ankuns ankuns requested a review from tejlmand August 8, 2024 14:33
… libs

The `nrfxlib_calculate_lib_path` cmake function is given additional
parameter `NS_PROVIDED`. This parameter allows users of this function
to use non-secure libraries if necessary.

The support is added for nrf54l15 SoC only, but can be easily extended
to other SoCs if needed.

Signed-off-by: Andrzej Kuros <[email protected]>
@ankuns ankuns force-pushed the nrf802154_nrf54l_cpuapp_ns branch from 22c4f43 to 062e33c Compare August 9, 2024 13:37
@ankuns ankuns marked this pull request as ready for review August 9, 2024 13:40
@ankuns ankuns removed the doc-required PR must not be merged without tech writer approval. label Aug 9, 2024
Some versions of nRF 802.15.4 SL libraries are provided in two
pre-built version: secure and non-secure.

The parameter NS_PROVIDED to the cmake function
`nrfxlib_calculate_lib_path` is used to select SL non-secure
library version for targets requiring this distinction like nRF54L15.

Signed-off-by: Andrzej Kuros <[email protected]>
@rlubos rlubos merged commit 041e3b6 into nrfconnect:main Aug 12, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants