Skip to content

Commit

Permalink
mbedtls: add a new Kconfig file for PSA_WANT logic
Browse files Browse the repository at this point in the history
The already existing "Kconfig.psa" maps Mbed TLS's PSA_WANT_xxx
symbols to Kconfigs that can be used in Zephyr to select which
PSA crypto API feature should be enabled in the build. In order
to ease maintainability, "Kconfig.psa" is automatically generated
so it should not be edited manually to add logic between
Kconfigs symbols defined there. As a consequence a new Kconfig file
is introduced in this commit, named "Kconfig.psa.logic", to
address this limitation. This new Kconfig file does not add new
public symbols (only hidden ones, if needed) and it simply adds
logic between PSA_WANT ones.

This commit also renames "Kconfig.psa" as "Kconfig.psa.auto" to
put it at the same "naming level" as the newly created file and,
at the same time, emphasize that it is an automatically generated
file.

Signed-off-by: Valerio Setti <[email protected]>
  • Loading branch information
valeriosetti committed Oct 15, 2024
1 parent 74c5c84 commit 8406c3d
Show file tree
Hide file tree
Showing 6 changed files with 152 additions and 364 deletions.
3 changes: 2 additions & 1 deletion modules/mbedtls/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ config MBEDTLS_PROMPTLESS
mbed TLS menu prompt and instead handle the selection of MBEDTLS from
dependent sub-configurations and thus prevent stuck symbol behavior.

rsource "Kconfig.psa"
rsource "Kconfig.psa.auto"
rsource "Kconfig.psa.logic"

menuconfig MBEDTLS
bool "mbed TLS Support" if !MBEDTLS_PROMPTLESS
Expand Down
355 changes: 0 additions & 355 deletions modules/mbedtls/Kconfig.psa

This file was deleted.

Loading

0 comments on commit 8406c3d

Please sign in to comment.