Skip to content

manifest: sdk-zephyr: [Backport ncs-v3.4-branch] Updates for TF-M 2.3#29206

Open
NordicBuilder wants to merge 21 commits into
nrfconnect:v3.4-branchfrom
NordicBuilder:auto-manifest-sdk-zephyr-4155
Open

manifest: sdk-zephyr: [Backport ncs-v3.4-branch] Updates for TF-M 2.3#29206
NordicBuilder wants to merge 21 commits into
nrfconnect:v3.4-branchfrom
NordicBuilder:auto-manifest-sdk-zephyr-4155

Conversation

@NordicBuilder
Copy link
Copy Markdown
Contributor

@NordicBuilder NordicBuilder commented Jun 2, 2026

Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-zephyr#4155

test_tfm: PR-231

@NordicBuilder NordicBuilder requested review from a team as code owners June 2, 2026 10:38
@NordicBuilder
Copy link
Copy Markdown
Contributor Author

NordicBuilder commented Jun 2, 2026

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
oberon-psa-crypto nrfconnect/sdk-oberon-psa-crypto@4404394 (ncs-v3.4-branch) nrfconnect/sdk-oberon-psa-crypto#44 nrfconnect/sdk-oberon-psa-crypto#44/files
psa-arch-tests nrfconnect/sdk-psa-arch-tests@ba0487c (ncs-v3.4.0-rc1-snapshot1) nrfconnect/sdk-psa-arch-tests@2deff6b (main) nrfconnect/sdk-psa-arch-tests@ba0487c4..2deff6be
qcbor nrfconnect/sdk-qcbor@751d365 nrfconnect/sdk-qcbor@bfe7b34 (main) nrfconnect/sdk-qcbor@751d3658..bfe7b348
t_cose 🆕 N/A (Added) nrfconnect/sdk-t_cose@024c429 (main) N/A
trusted-firmware-m nrfconnect/sdk-trusted-firmware-m@ncs-v3.4.0-rc1 nrfconnect/sdk-trusted-firmware-m@c9f7307 (main,ncs-v3.4-branch) nrfconnect/sdk-trusted-firmware-m@ncs-v3.4.0-rc1..c9f73070
zephyr nrfconnect/sdk-zephyr@61440dc (ncs-v3.4-branch) nrfconnect/sdk-zephyr#4155 nrfconnect/sdk-zephyr#4155/files

Additional metadata changed:

Name URL Submodules West cmds module.yml Blobs
psa-arch-tests
qcbor

DNM label due to: 1 added project, 2 projects with PR revision and 2 projects with metadata changes

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@NordicBuilder
Copy link
Copy Markdown
Contributor Author

NordicBuilder commented Jun 2, 2026

CI Information

To view the history of this post, click the 'edited' button above
Build number: 3

Inputs:

Sources:

more details

Github labels

Enabled Name Description
ci-disabled Disable the ci execution
ci-all-test Run all of ci, no test spec filtering will be done
ci-force-downstream Force execution of downstream even if twister fails
ci-run-twister Force run twister
ci-run-zephyr-twister Force run zephyr twister
List of changed files detected by CI (0)

Outputs:

Toolchain

Version:
Build docker image:

Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped; ⚠️ Quarantine

  • ❌ Toolchain
  • ❌ Build twister
  • ❌ Integration tests

Note: This message is automatically posted and updated by the CI

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

You can find the documentation preview for this PR here.

@Vge0rge Vge0rge force-pushed the auto-manifest-sdk-zephyr-4155 branch from fc76386 to 60236fd Compare June 2, 2026 17:01
@Vge0rge Vge0rge requested review from a team as code owners June 2, 2026 17:01
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Since quarantine was modified, please make sure you are following the process described in Quarantine Process.

Copy link
Copy Markdown
Contributor

@rlubos rlubos left a comment

Choose a reason for hiding this comment

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

oberon-psa-crypto and trusted-firmware-m both have release branches, the manifest should point to those, no?

Vge0rge added 7 commits June 3, 2026 08:08
To version 2.3.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
These were renamed in the TF-M version 2.3, updated
accordingly.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
(cherry picked from commit 46d638d)
TF-M 2.3 changed the signature of this function which
now takes a parameter instead of void. Adapt to this
in our implementation.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
(cherry picked from commit b42bb99)
file(COPY) runs at configure time and resolves a relative
destination against CMAKE_CURRENT_BINARY_DIR, so the headers
landed in the directory:
./build/SAMPLE_NAME/tfm/platform/target/tfm_board/interface/include/

which is not part of the include for the NS app.

Change that to use the install commmand with
${INSTALL_INTERFACE_INC_DIR}.
Install runs at install time and resolves a relative destination against
CMAKE_INSTALL_PREFIX, which is in the includes of the NS app.

The headers are now placed in the directory:
./build/SAMPLE_NAME/tfm/api_ns/interface/include/

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
(cherry picked from commit 14c6acf)
TF-M 2.3 renamed the mbedcrypto target to tfpsacrypto (and the prefix
from MBEDTLS_TARGET_PREFIX to TF_PSA_CRYPTO_TARGET_PREFIX). Update
the target in nrf_security accordingly.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
(cherry picked from commit ed8563f)
Add psa_driver_api directory in the include path because
it is needed for the tfm_builtin_key_loader.h.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
(cherry picked from commit 6c2560f)
TF-M 2.3 introduced a new logging system where
it replaced tfm_sp_log.h / tfm_spm_log.h / SPMLOG_* with two new
headers:

tfm_log.h: for privileged code which provides macros:
ERROR/INFO/VERBOSE/etc

tfm_log_unpriv.h: for uprivileged code with the same
macros suffixed _UNPRIV

Adapt to the new logging system.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
(cherry picked from commit 21f8457)
@NordicBuilder NordicBuilder force-pushed the auto-manifest-sdk-zephyr-4155 branch from fcb80f6 to 652064a Compare June 3, 2026 08:08
@Vge0rge
Copy link
Copy Markdown
Contributor

Vge0rge commented Jun 3, 2026

oberon-psa-crypto and trusted-firmware-m both have release branches, the manifest should point to those, no?

For the Oberon-psa-crypto you are right, I will create a PR there. For the TF-M you need to force push the hash that I have here to the branch I think.

@rlubos
Copy link
Copy Markdown
Contributor

rlubos commented Jun 3, 2026

oberon-psa-crypto and trusted-firmware-m both have release branches, the manifest should point to those, no?

For the Oberon-psa-crypto you are right, I will create a PR there. For the TF-M you need to force push the hash that I have have here to the branch I think.

Ok, I'll push to tfm repo. Should be ok as current SHA is tagged already (with RC1).

Vge0rge and others added 14 commits June 3, 2026 13:20
Fixes a minor missing macro addition:
PSA_ALG_IS_SP800_108_COUNTER_CMAC.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
In the TF-M build the stdlib functions such as
abs are not available. Create a cracen local
abs function which either uses the builtin
implementation or a local implementation.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
(cherry picked from commit 842debc)
Link the secure partition with the psa_crypto_config which provides
the defines and include folders for the TF-PSA-Crypto.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
(cherry picked from commit f7bb7f7)
The header does not exist anymore with TF-M v2.3.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
(cherry picked from commit 753a004)
TF-M has an option to select if STD functions like
printf are available with CONFIG_TFM_INCLUDE_STDLIBC.
This option is disabled for nFR devices and it is not
tested.

MbedlTLS also has a relevant option as well:
MBEDTLS_PLATFORM_NO_STD_FUNCTIONS

This sets the MBEDTLS_PLATFORM_NO_STD_FUNCTIONS
option inside TF-M to align with the TF-M
configuration.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
(cherry picked from commit 9acf12b)
To its own folder so that include statements can use <>
instead of "".

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
(cherry picked from commit 5a65f0b)
Add manually the option to enable the CMAC key derivation
since there is a new test which uses it. (1057)

The Kconfig option does not seem to be in upstream Zephyr
so it is added here. When the option is added in Zephyr
it can be removed.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
(cherry picked from commit 88a0155)
This is a fork of the QCBOR repository with the
patches that TF-M applies to the repository.

It is needed because currently TF-M clones this
repo and applies the patches in every build and this
should not be done in sdk-nrf.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
(cherry picked from commit cc7a798)
This is a fork of the t_cose repository with the
patches that TF-M applies to the repository.

It is needed because currently TF-M clones this
repo and applies the patches in every build and this
should not be done in sdk-nrf.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
(cherry picked from commit 8a5ad4d)
Since TF-M v2.3 clones and patches the t_cose and qcbor
libraries at build time we had to create forks with
the patches applied.

This adds the path to our forks to the TF-M build.

Remove the old qcbor Kconfig and reference.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
(cherry picked from commit 372b97e)
In sdk-nrf TF-PSA-Crypto header files are exposed from Oberon
PSA.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
(cherry picked from commit ba4da4c)
This essentially reverts:
c5d5400.

which cannot be reverted cleanly anymore.

With the TF-M v2.3 these tests should work.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
For TF-M 2.3.

Signed-off-by: Georgios Vasilakis <georgios.vasilakis@nordicsemi.no>
(cherry picked from commit 0acec5f)
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-zephyr#4155

Signed-off-by: Nordic Builder <pylon@nordicsemi.no>
@Vge0rge Vge0rge force-pushed the auto-manifest-sdk-zephyr-4155 branch from 652064a to fa32b9a Compare June 3, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants