Skip to content

Commit

Permalink
kconfig.nrf: Fix bsim builds with new psa crypto
Browse files Browse the repository at this point in the history
ENTROPY_GENERATOR is required but was not being selected for
nrf53 bsim for some reason.

Also the heap size required for bsim is larger than on
actual target, reason unknown.

Signed-off-by: Sean Madigan <[email protected]>
  • Loading branch information
sean-madigan committed Feb 5, 2025
1 parent 801a65c commit 992c700
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Kconfig.nrf
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,17 @@ endif
config NRF_SECURITY_ENABLER
def_bool y
imply NRF_SECURITY if BT_CRYPTO || BT_HOST_CRYPTO || BT_MESH_USES_MBEDTLS_PSA || BT_FAST_PAIR_CRYPTO_PSA
imply ENTROPY_GENERATOR if BOARD_NATIVE_SIM
imply ENTROPY_GENERATOR if BOARD_NATIVE_SIM || SOC_SERIES_BSIM_NRFXX
imply PSA_WANT_GENERATE_RANDOM if BT_HOST_CRYPTO_PRNG || BT_ECC
imply MBEDTLS_ENABLE_HEAP if BT_HOST_CRYPTO_PRNG || BT_ECC
depends on !SOC_NRF5340_CPUNET

if SOC_SERIES_BSIM_NRFXX && ENTROPY_GENERATOR
config MBEDTLS_HEAP_SIZE
int
default 2048
endif

rsource "samples/Kconfig"
rsource "subsys/Kconfig"
rsource "modules/Kconfig"
Expand Down

0 comments on commit 992c700

Please sign in to comment.