Skip to content

Commit

Permalink
nrf_security: Resolve conflict with upstream Kconfig symbol
Browse files Browse the repository at this point in the history
Upstream Zephyr defined MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG as a choice
symbol, which does not play well with default y (no effect, compliance
warning). Hence, try to circumvent this by defining a custom hidden
symbol, which implies MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG (should work with
both choice and standard bool symbols).

Signed-off-by: Robert Lubos <[email protected]>
  • Loading branch information
rlubos committed May 16, 2024
1 parent f475937 commit 0f404fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion subsys/nrf_security/Kconfig.legacy
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,10 @@ config MBEDTLS_HMAC_DRBG_C
This setting will enable HMAC_DRBG APIs in mbed TLS.
Corresponds to MBEDTLS_HMAC_DRBG_C setting in mbed TLS config file.

config MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG
config MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG_HIDDEN
bool
default y
imply MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG

config MBEDTLS_ENTROPY_C
bool
Expand Down
3 changes: 2 additions & 1 deletion subsys/nrf_security/Kconfig.psa
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ config MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER

osource "modules/mbedtls/Kconfig.psa"

config MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG
config MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG_HIDDEN
bool
default y
imply MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG

rsource "src/core/Kconfig"

Expand Down

0 comments on commit 0f404fd

Please sign in to comment.