Skip to content

Commit

Permalink
Bluetooth: Mesh: adapting configuration parameters
Browse files Browse the repository at this point in the history
Commit adapts configuration ble mesh, trusted storage and
mbedtls psa parameters to be able to run mesh samples
and tests.

Signed-off-by: Aleksandr Khromykh <[email protected]>
  • Loading branch information
alxelax authored and anangl committed Jan 16, 2025
1 parent 68326ee commit 9cf54d9
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions subsys/bluetooth/mesh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,43 @@ config BT_MESH_SETTINGS_WORKQ_STACK_SIZE

endif

if BT_MESH_USES_MBEDTLS_PSA

config BT_MESH_MBEDTLS_BACKEND_ENABLE
bool
default y
imply NRF_SECURITY
imply MBEDTLS_ENABLE_HEAP

config MBEDTLS_HEAP_SIZE
default 1024

if BT_SETTINGS

config BT_MESH_PSA_CRYPTO_STORAGE
bool
default y
imply TRUSTED_STORAGE
select MBEDTLS_PSA_CRYPTO_STORAGE_C

choice TRUSTED_STORAGE_BACKEND_AEAD_KEY
default TRUSTED_STORAGE_BACKEND_AEAD_KEY_HASH_UID

endchoice # TRUSTED_STORAGE_BACKEND_AEAD_KEY

endif # BT_SETTINGS

if BT_LONG_WQ
# There is no clear undestanding where this parameter should be adapted for ble mesh purposes.
# This place has been chosen as temporary solution.
# JIRA task NCSDK-31391 was created to solve the issue later.
config BT_LONG_WQ_STACK_SIZE
default 4096

endif # BT_LONG_WQ

endif # BT_MESH_USES_MBEDTLS_PSA

if BT_MESH_ADV_EXT

# Set the optimal advertiser configuration to improve performance of the Relay, GATT and Friend
Expand Down

0 comments on commit 9cf54d9

Please sign in to comment.