-
Notifications
You must be signed in to change notification settings - Fork 8.3k
settings: its: enable tf-m PSA headers and run more tests #94881
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
Open
dsseng
wants to merge
6
commits into
zephyrproject-rtos:main
Choose a base branch
from
dsseng:fix-tfm-its-build
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+129
−50
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
84caa7a
settings: its: enable TF-M PSA headers
dsseng 9c00fe5
tests: settings: its: run on mps2/an521/cpu0/ns
dsseng 7b6f939
samples: settings: run integration on QEMU with TF-M
dsseng 7e5c360
settings: its: move structure to a header
dsseng 65de892
tests: settings: its: enable functional tests for TF-M ITS
dsseng fcd2293
settings: its: do not rely on TFM settings override
dsseng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,4 @@ | ||
| CONFIG_STDOUT_CONSOLE=y | ||
| CONFIG_FLASH=y | ||
| CONFIG_FLASH_MAP=y | ||
| CONFIG_SETTINGS=y | ||
| CONFIG_SETTINGS_RUNTIME=y | ||
| CONFIG_NVS=y | ||
| CONFIG_SETTINGS_NVS=y | ||
| CONFIG_HEAP_MEM_POOL_SIZE=256 | ||
| CONFIG_MPU_ALLOW_FLASH_WRITE=y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| /* | ||
| * Copyright (c) 2019-2025 The Zephyr Project Contributors | ||
| * | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| #include <zephyr/settings/settings.h> | ||
|
|
||
| struct setting_entry { | ||
| char name[SETTINGS_MAX_NAME_LEN]; | ||
| char value[SETTINGS_MAX_VAL_LEN]; | ||
| size_t val_len; | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dsseng marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| cmake_minimum_required(VERSION 3.20.0) | ||
| find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) | ||
| project(functional_psa) | ||
|
|
||
| # The code is in the library common to several tests. | ||
| target_sources(app PRIVATE settings_test_psa.c) | ||
|
|
||
| add_subdirectory(../src func_test_bindir) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| CONFIG_ZTEST=y | ||
|
|
||
| CONFIG_SETTINGS=y | ||
|
|
||
| # 10 is not sufficient for the test | ||
| CONFIG_SETTINGS_TFM_ITS_NUM_ENTRIES=11 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| /* SPDX-License-Identifier: Apache-2.0 */ | ||
| /* Copyright (c) 2025 Dmitrii Sharshakov <d3dx12.xx@gmail.com> */ | ||
|
|
||
| #include <zephyr/ztest.h> | ||
|
|
||
| ZTEST_SUITE(settings_functional, NULL, NULL, NULL, NULL, NULL); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| tests: | ||
| settings.functional.tfm-its: | ||
| filter: CONFIG_TFM_PARTITION_INTERNAL_TRUSTED_STORAGE | ||
| integration_platforms: | ||
| - max32657evkit/max32657/ns | ||
| - nrf5340dk/nrf5340/cpuapp/ns | ||
| - nrf54l15dk/nrf54l15/cpuapp/ns | ||
| - nrf54lm20dk/nrf54lm20a/cpuapp/ns | ||
| - mps2/an521/cpu0/ns | ||
| platform_exclude: | ||
| - lpcxpresso55s69/lpc55s69/cpu0/ns | ||
| tags: | ||
| - settings | ||
| - trusted-firmware-m | ||
| extra_args: | ||
| - CONFIG_SETTINGS_TFM_ITS=y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.