-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
tests: Bluetooth: Mesh: use psa secure storage in mesh bsim tests #82319
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might also be worth a migration guide entry to indicate that it's now necessary to select the affected Kconfig options for the secure storage subsystem.
@@ -12,7 +12,7 @@ config SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS | |||
&& $(dt_node_has_compat,$(dt_node_parent,$(DT_STORAGE_PARTITION)),fixed-partitions) | |||
imply FLASH_MAP | |||
imply NVS | |||
select SETTINGS | |||
depends on SETTINGS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will require changes to enable this (and FLASH
) in the existing tests/samples under tests/subsys/secure_storage/
and samples/psa/
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say rather add this as part of the already existing depends on
, or split it into parts (e.g. putting FLASH_HAS_DRIVER_ENABLED
separately), for consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Kconfig options still need to be enabled in the samples, I think.
Commit removes PSA ITS emulator and enables usage of the PSA crypto storage instead. Signed-off-by: Aleksandr Khromykh <[email protected]>
63bf345
to
8321d0b
Compare
8321d0b
to
1bb8e85
Compare
1bb8e85
to
a1685a0
Compare
@@ -12,7 +12,7 @@ config SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS | |||
&& $(dt_node_has_compat,$(dt_node_parent,$(DT_STORAGE_PARTITION)),fixed-partitions) | |||
imply FLASH_MAP | |||
imply NVS | |||
select SETTINGS | |||
depends on SETTINGS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say rather add this as part of the already existing depends on
, or split it into parts (e.g. putting FLASH_HAS_DRIVER_ENABLED
separately), for consistency.
* The :kconfig:option:`CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS` symbol no longer implies the | ||
:kconfig:option:`CONFIG_FLASH_MAP` and :kconfig:option:`CONFIG_NVS` Kconfig options. | ||
It either no longer selects :kconfig:option:`CONFIG_SETTINGS` Kconfig option. | ||
Platforms using Secure storage must explicitly enable :kconfig:option:`CONFIG_FLASH_MAP`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using Secure storage with the settings-based ITS store module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't get this. How the final text should look like?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I think it can be made as simple as the following as we previously refer to CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS
:
Platforms using Secure storage must explicitly enable :kconfig:option:`CONFIG_FLASH_MAP`, | |
Platforms using it must now explicitly enable :kconfig:option:`CONFIG_FLASH_MAP`, |
a1685a0
to
e3ee4e9
Compare
e0c5700
to
30d9af5
Compare
The commit changes dependencies on SETTINGS and FLASH to avoid circular dependencies if security storage subsystem users select them too. Signed-off-by: Aleksandr Khromykh <[email protected]>
30d9af5
to
d2ffd41
Compare
#AutoPTS run zephyr nrf52 MESH/NODE/KR/BV-01-C DFUM/SR/FD/BV-01-C |
Scheduled PR #82319 (comment), board: nrf52, estimated start time: 14:43:31, test case count: 2, estimated duration: 0:04:49 Test cases to be runDFUM/SR/FD/BV-01-CMESH/NODE/KR/BV-01-C |
AutoPTS Bot results: Failed tests (1)MESH MESH/NODE/KR/BV-01-C FAILSuccessful tests (1)DFUM DFUM/SR/FD/BV-01-C PASS |
filter: CONFIG_SECURE_STORAGE and CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS | ||
and CONFIG_FLASH_HAS_DRIVER_ENABLED |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS
takes care of CONFIG_FLASH_HAS_DRIVER_ENABLED
:
filter: CONFIG_SECURE_STORAGE and CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS | |
and CONFIG_FLASH_HAS_DRIVER_ENABLED | |
filter: CONFIG_SECURE_STORAGE and CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS |
Also, why change this at all?
secure_storage.psa.crypto.secure_storage.settings: | ||
filter: CONFIG_SECURE_STORAGE and CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS | ||
and CONFIG_FLASH_HAS_DRIVER_ENABLED | ||
extra_args: EXTRA_CONF_FILE=overlay-secure_storage.conf;overlay-settings.conf | ||
integration_platforms: | ||
- native_sim | ||
- nrf54l15dk/nrf54l15/cpuapp | ||
secure_storage.psa.crypto.secure_storage.custom: | ||
filter: CONFIG_SECURE_STORAGE and CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_CUSTOM | ||
and CONFIG_FLASH_HAS_DRIVER_ENABLED |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a copy/paste fail right?
@@ -12,7 +12,7 @@ config SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS | |||
&& $(dt_node_has_compat,$(dt_node_parent,$(DT_STORAGE_PARTITION)),fixed-partitions) | |||
imply FLASH_MAP | |||
imply NVS | |||
select SETTINGS | |||
depends on SETTINGS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Kconfig options still need to be enabled in the samples, I think.
CONFIG_FLASH=y | ||
CONFIG_FLASH_MAP=y | ||
CONFIG_NVS=y | ||
CONFIG_SETTINGS=y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be here? Only in overlay-settings.conf
.
PR: