diff --git a/subsys/bluetooth/mesh/CMakeLists.txt b/subsys/bluetooth/mesh/CMakeLists.txt index 3c8d00112432..0a8020630f21 100644 --- a/subsys/bluetooth/mesh/CMakeLists.txt +++ b/subsys/bluetooth/mesh/CMakeLists.txt @@ -83,6 +83,6 @@ zephyr_library_sources_ifdef(CONFIG_BT_MESH_RPL_STORAGE_MODE_EMDS rpl.c) zephyr_library_sources_ifdef(CONFIG_BT_MESH_KEY_IMPORTER key_importer.c) -if(CONFIG_BT_MESH_USES_MBEDTLS_PSA AND (NOT CONFIG_SOC_FAMILY_NORDIC_NRF)) +if(CONFIG_PSA_CRYPTO_PROVIDER_MBEDTLS AND (NOT CONFIG_SOC_FAMILY_NORDIC_NRF)) zephyr_library_link_libraries(mbedTLS) endif() diff --git a/subsys/bluetooth/mesh/Kconfig b/subsys/bluetooth/mesh/Kconfig index 201704fef5da..6d5bef96b35b 100644 --- a/subsys/bluetooth/mesh/Kconfig +++ b/subsys/bluetooth/mesh/Kconfig @@ -22,7 +22,9 @@ config BT_MESH_ADV_STACK_SIZE endif # SOC_SERIES_NRF54LX -if BT_MESH_USES_MBEDTLS_PSA +if BT_MESH_CRYPTO_LIB + +if !BUILD_WITH_TFM config BT_MESH_MBEDTLS_BACKEND_ENABLE bool @@ -37,6 +39,7 @@ config MBEDTLS_HEAP_SIZE default 2048 if BT_MESH_DFD_SRV default 1152 if BT_MESH_NLC_PERF_BASELINE default 1024 +endif # !BUILD_WITH_TFM if BT_SETTINGS diff --git a/tests/subsys/bluetooth/mesh/light_ctrl/boards/native_sim.conf b/tests/subsys/bluetooth/mesh/light_ctrl/boards/native_sim.conf index ea81401fcb11..fb4382195b3e 100644 --- a/tests/subsys/bluetooth/mesh/light_ctrl/boards/native_sim.conf +++ b/tests/subsys/bluetooth/mesh/light_ctrl/boards/native_sim.conf @@ -2,4 +2,4 @@ # Enforcing usage of built-in Mbed TLS for native simulator. CONFIG_MBEDTLS=y CONFIG_MBEDTLS_BUILTIN=y -CONFIG_BT_MESH_USES_MBEDTLS_PSA=y +CONFIG_PSA_CRYPTO_PROVIDER_MBEDTLS=y diff --git a/tests/subsys/bluetooth/mesh/light_hue/CMakeLists.txt b/tests/subsys/bluetooth/mesh/light_hue/CMakeLists.txt index 19779323eac5..ea3ab8bc566f 100644 --- a/tests/subsys/bluetooth/mesh/light_hue/CMakeLists.txt +++ b/tests/subsys/bluetooth/mesh/light_hue/CMakeLists.txt @@ -28,7 +28,7 @@ target_compile_options(app -DCONFIG_BT_MESH_MOD_ACKD_TIMEOUT_BASE=3000 -DCONFIG_BT_MESH_MOD_ACKD_TIMEOUT_PER_HOP=50 -DCONFIG_BT_LOG_LEVEL=0 - -DCONFIG_BT_MESH_USES_MBEDTLS_PSA=1 + -DCONFIG_PSA_CRYPTO_PROVIDER_MBEDTLS=1 ) zephyr_ld_options( diff --git a/tests/subsys/bluetooth/mesh/light_hue/boards/native_sim.conf b/tests/subsys/bluetooth/mesh/light_hue/boards/native_sim.conf index ea81401fcb11..fb4382195b3e 100644 --- a/tests/subsys/bluetooth/mesh/light_hue/boards/native_sim.conf +++ b/tests/subsys/bluetooth/mesh/light_hue/boards/native_sim.conf @@ -2,4 +2,4 @@ # Enforcing usage of built-in Mbed TLS for native simulator. CONFIG_MBEDTLS=y CONFIG_MBEDTLS_BUILTIN=y -CONFIG_BT_MESH_USES_MBEDTLS_PSA=y +CONFIG_PSA_CRYPTO_PROVIDER_MBEDTLS=y diff --git a/tests/subsys/bluetooth/mesh/scheduler_model/action_planning/CMakeLists.txt b/tests/subsys/bluetooth/mesh/scheduler_model/action_planning/CMakeLists.txt index 387c8811df82..48f7eb08cf6f 100644 --- a/tests/subsys/bluetooth/mesh/scheduler_model/action_planning/CMakeLists.txt +++ b/tests/subsys/bluetooth/mesh/scheduler_model/action_planning/CMakeLists.txt @@ -33,7 +33,7 @@ target_compile_options(app -DCONFIG_BT_MESH_MODEL_LOG_LEVEL=0 -DCONFIG_BT_MESH_MOD_ACKD_TIMEOUT_BASE=0 -DCONFIG_BT_MESH_MOD_ACKD_TIMEOUT_PER_HOP=0 - -DCONFIG_BT_MESH_USES_MBEDTLS_PSA=1 + -DCONFIG_PSA_CRYPTO_PROVIDER_MBEDTLS=1 ) zephyr_ld_options( diff --git a/tests/subsys/bluetooth/mesh/scheduler_model/action_planning/boards/native_sim.conf b/tests/subsys/bluetooth/mesh/scheduler_model/action_planning/boards/native_sim.conf index ea81401fcb11..fb4382195b3e 100644 --- a/tests/subsys/bluetooth/mesh/scheduler_model/action_planning/boards/native_sim.conf +++ b/tests/subsys/bluetooth/mesh/scheduler_model/action_planning/boards/native_sim.conf @@ -2,4 +2,4 @@ # Enforcing usage of built-in Mbed TLS for native simulator. CONFIG_MBEDTLS=y CONFIG_MBEDTLS_BUILTIN=y -CONFIG_BT_MESH_USES_MBEDTLS_PSA=y +CONFIG_PSA_CRYPTO_PROVIDER_MBEDTLS=y diff --git a/tests/subsys/bluetooth/mesh/scheduler_model/message_validity/boards/native_sim.conf b/tests/subsys/bluetooth/mesh/scheduler_model/message_validity/boards/native_sim.conf index ea81401fcb11..fb4382195b3e 100644 --- a/tests/subsys/bluetooth/mesh/scheduler_model/message_validity/boards/native_sim.conf +++ b/tests/subsys/bluetooth/mesh/scheduler_model/message_validity/boards/native_sim.conf @@ -2,4 +2,4 @@ # Enforcing usage of built-in Mbed TLS for native simulator. CONFIG_MBEDTLS=y CONFIG_MBEDTLS_BUILTIN=y -CONFIG_BT_MESH_USES_MBEDTLS_PSA=y +CONFIG_PSA_CRYPTO_PROVIDER_MBEDTLS=y diff --git a/tests/subsys/bluetooth/mesh/scheduler_model/timing/CMakeLists.txt b/tests/subsys/bluetooth/mesh/scheduler_model/timing/CMakeLists.txt index 2a6ea40d013e..7b82791e1eb1 100644 --- a/tests/subsys/bluetooth/mesh/scheduler_model/timing/CMakeLists.txt +++ b/tests/subsys/bluetooth/mesh/scheduler_model/timing/CMakeLists.txt @@ -29,7 +29,7 @@ target_compile_options(app -DCONFIG_BT_MESH_MODEL_GROUP_COUNT=5 -DCONFIG_BT_LOG_LEVEL=0 -DCONFIG_BT_MESH_SCHEDULER_SRV=1 - -DCONFIG_BT_MESH_USES_MBEDTLS_PSA=1 + -DCONFIG_PSA_CRYPTO_PROVIDER_MBEDTLS=1 ) zephyr_ld_options( diff --git a/tests/subsys/bluetooth/mesh/scheduler_model/timing/boards/native_sim.conf b/tests/subsys/bluetooth/mesh/scheduler_model/timing/boards/native_sim.conf index ea81401fcb11..fb4382195b3e 100644 --- a/tests/subsys/bluetooth/mesh/scheduler_model/timing/boards/native_sim.conf +++ b/tests/subsys/bluetooth/mesh/scheduler_model/timing/boards/native_sim.conf @@ -2,4 +2,4 @@ # Enforcing usage of built-in Mbed TLS for native simulator. CONFIG_MBEDTLS=y CONFIG_MBEDTLS_BUILTIN=y -CONFIG_BT_MESH_USES_MBEDTLS_PSA=y +CONFIG_PSA_CRYPTO_PROVIDER_MBEDTLS=y diff --git a/tests/subsys/bluetooth/mesh/sensor_subsys/CMakeLists.txt b/tests/subsys/bluetooth/mesh/sensor_subsys/CMakeLists.txt index fca2605c31c5..b114976551a4 100644 --- a/tests/subsys/bluetooth/mesh/sensor_subsys/CMakeLists.txt +++ b/tests/subsys/bluetooth/mesh/sensor_subsys/CMakeLists.txt @@ -28,7 +28,7 @@ target_compile_options(app -DCONFIG_BT_MESH_SENSOR_CHANNELS_MAX=5 -DCONFIG_BT_MESH_SENSOR_CHANNEL_ENCODED_SIZE_MAX=4 -DCONFIG_BT_LOG_LEVEL=0 - -DCONFIG_BT_MESH_USES_MBEDTLS_PSA=1 + -DCONFIG_PSA_CRYPTO_PROVIDER_MBEDTLS=1 ) zephyr_linker_sources(SECTIONS sensor_types.ld) diff --git a/tests/subsys/bluetooth/mesh/sensor_subsys/boards/native_sim.conf b/tests/subsys/bluetooth/mesh/sensor_subsys/boards/native_sim.conf index ea81401fcb11..fb4382195b3e 100644 --- a/tests/subsys/bluetooth/mesh/sensor_subsys/boards/native_sim.conf +++ b/tests/subsys/bluetooth/mesh/sensor_subsys/boards/native_sim.conf @@ -2,4 +2,4 @@ # Enforcing usage of built-in Mbed TLS for native simulator. CONFIG_MBEDTLS=y CONFIG_MBEDTLS_BUILTIN=y -CONFIG_BT_MESH_USES_MBEDTLS_PSA=y +CONFIG_PSA_CRYPTO_PROVIDER_MBEDTLS=y diff --git a/tests/subsys/bluetooth/mesh/silvair_enocean_model/CMakeLists.txt b/tests/subsys/bluetooth/mesh/silvair_enocean_model/CMakeLists.txt index e8e1aa387a96..bf599165e8c9 100644 --- a/tests/subsys/bluetooth/mesh/silvair_enocean_model/CMakeLists.txt +++ b/tests/subsys/bluetooth/mesh/silvair_enocean_model/CMakeLists.txt @@ -30,7 +30,7 @@ target_compile_options(app -DCONFIG_BT_MESH_SILVAIR_ENOCEAN_AUTO_COMMISSION=1 -DCONFIG_BT_MESH_MODEL_KEY_COUNT=1 -DCONFIG_BT_MESH_MODEL_GROUP_COUNT=1 - -DCONFIG_BT_MESH_USES_MBEDTLS_PSA=1 + -DCONFIG_PSA_CRYPTO_PROVIDER_MBEDTLS=1 ) zephyr_ld_options( diff --git a/tests/subsys/bluetooth/mesh/silvair_enocean_model/boards/native_sim.conf b/tests/subsys/bluetooth/mesh/silvair_enocean_model/boards/native_sim.conf index ea81401fcb11..fb4382195b3e 100644 --- a/tests/subsys/bluetooth/mesh/silvair_enocean_model/boards/native_sim.conf +++ b/tests/subsys/bluetooth/mesh/silvair_enocean_model/boards/native_sim.conf @@ -2,4 +2,4 @@ # Enforcing usage of built-in Mbed TLS for native simulator. CONFIG_MBEDTLS=y CONFIG_MBEDTLS_BUILTIN=y -CONFIG_BT_MESH_USES_MBEDTLS_PSA=y +CONFIG_PSA_CRYPTO_PROVIDER_MBEDTLS=y diff --git a/tests/subsys/bluetooth/mesh/time_model/CMakeLists.txt b/tests/subsys/bluetooth/mesh/time_model/CMakeLists.txt index 4eb4f5dbfcd7..6e88f80d94e1 100644 --- a/tests/subsys/bluetooth/mesh/time_model/CMakeLists.txt +++ b/tests/subsys/bluetooth/mesh/time_model/CMakeLists.txt @@ -31,7 +31,7 @@ target_compile_options(app -DCONFIG_BT_MESH_TIME_SRV=1 -DCONFIG_BT_MESH_TIME_SRV_CLOCK_ACCURACY=500 -DCONFIG_BT_MESH_TIME_MESH_HOP_UNCERTAINTY=30 - -DCONFIG_BT_MESH_USES_MBEDTLS_PSA=1 + -DCONFIG_PSA_CRYPTO_PROVIDER_MBEDTLS=1 ) zephyr_ld_options( diff --git a/tests/subsys/bluetooth/mesh/time_model/boards/native_sim.conf b/tests/subsys/bluetooth/mesh/time_model/boards/native_sim.conf index ea81401fcb11..fb4382195b3e 100644 --- a/tests/subsys/bluetooth/mesh/time_model/boards/native_sim.conf +++ b/tests/subsys/bluetooth/mesh/time_model/boards/native_sim.conf @@ -2,4 +2,4 @@ # Enforcing usage of built-in Mbed TLS for native simulator. CONFIG_MBEDTLS=y CONFIG_MBEDTLS_BUILTIN=y -CONFIG_BT_MESH_USES_MBEDTLS_PSA=y +CONFIG_PSA_CRYPTO_PROVIDER_MBEDTLS=y diff --git a/west.yml b/west.yml index 4065f91bc550..9f24cda308c4 100644 --- a/west.yml +++ b/west.yml @@ -65,7 +65,7 @@ manifest: # https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/modules.html - name: zephyr repo-path: sdk-zephyr - revision: 980495663735d03d791ff659e254dcc6a299dee0 + revision: pull/3431/head import: # In addition to the zephyr repository itself, NCS also # imports the contents of zephyr/west.yml at the above