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

secure_storage: add a ZMS-based implementation of the ITS store module #81235

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Commits on Nov 28, 2024

  1. secure_storage: add a ZMS-based implementation of the ITS store module

    It becomes the new default when the secure_storage_its_partition
    devicetree chosen property is defined as it is a preferred alternative.
    
    See the help message of the
    `CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_ZMS` Kconfig option
    for more information.
    
    Signed-off-by: Tomi Fontanilles <[email protected]>
    tomi-font committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    a3e6a86 View commit details
    Browse the repository at this point in the history
  2. tests: secure_storage: psa: its: add a test for the ZMS ITS store module

    Add a test scenario for the ITS store module implementation that uses
    ZMS for storage.
    Reorganize the others at the same time.
    
    Signed-off-by: Tomi Fontanilles <[email protected]>
    tomi-font committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    8b4631f View commit details
    Browse the repository at this point in the history
  3. secure_storage: its: store: settings: stop using SETTINGS_MAX_VAL_LEN

    Remove the hard restriction on CONFIG_SECURE_STORAGE_ITS_MAX_DATA_SIZE.
    SETTINGS_MAX_VAL_LEN is in practice not used by any settings backend
    implementation.
    
    Signed-off-by: Tomi Fontanilles <[email protected]>
    tomi-font committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    cac0506 View commit details
    Browse the repository at this point in the history
  4. secure_storage: warn when there is no ITS store module implementation

    Output a CMake error when the ITS store module is enabled but no
    implementation ended up enabled (due to unfulfilled prerequisites).
    This is to make it more clear than undefined references at link time.
    Not a fatal error because CMake cannot fail for the twister filtering
    to work on the tests.
    
    Signed-off-by: Tomi Fontanilles <[email protected]>
    tomi-font committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    195810c View commit details
    Browse the repository at this point in the history
  5. secure_storage: its: store: settings: allow using zephyr,settings-par…

    …tition
    
    Align with the behavior of the settings subsystem.
    
    Signed-off-by: Tomi Fontanilles <[email protected]>
    tomi-font committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    0876102 View commit details
    Browse the repository at this point in the history
  6. fs: zms: fix format string

    Use %zu for size_t.
    
    Signed-off-by: Tomi Fontanilles <[email protected]>
    tomi-font committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    d8a6fe5 View commit details
    Browse the repository at this point in the history
  7. secure_storage: its: store: settings: improve debug logging

    Align the debug logging with that of the ZMS-based implementation.
    
    Signed-off-by: Tomi Fontanilles <[email protected]>
    tomi-font committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    e853d2f View commit details
    Browse the repository at this point in the history