Skip to content

Commit d2fe709

Browse files
frkvanangl
authored andcommitted
mesh: tests: Deprecate usage of TinyCrypt in tests
-Changing from using CONFIG_BT_MESH_USES_TINYCRYPT to CONFIG_BT_MESH_USES_MBEDTLS_PSA for mesh tests because TinyCrypt is deprecated -Adding boards/native_sim.conf for mesh tests to enable usage of builtin Mbed TLS (nrf_security not supported): -light_ctrl -light_hue -scheduler_model/action_planning -scheduler_model/message_validity -scheduler_model/timing Signed-off-by: Frank Audun Kvamtrø <[email protected]>
1 parent ae6a3c2 commit d2fe709

File tree

16 files changed

+48
-8
lines changed

16 files changed

+48
-8
lines changed

tests/subsys/bluetooth/mesh/light_ctrl/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ target_compile_options(app
6060
-DCONFIG_BT_MESH_LIGHT_CTRL_AMB_LIGHT_LEVEL_TIMEOUT=20
6161
-DCONFIG_BT_MESH_SENSOR_CHANNELS_MAX=1
6262
-DCONFIG_BT_MESH_SENSOR_CHANNEL_ENCODED_SIZE_MAX=4
63-
-DCONFIG_BT_MESH_USES_TINYCRYPT
63+
-DCONFIG_BT_MESH_USES_MBEDTLS_PSA=1
6464
)
6565

6666
zephyr_linker_sources(SECTIONS ${ZEPHYR_NRF_MODULE_DIR}/subsys/bluetooth/mesh/sensor_types.ld)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# nrf_security only supports Cortex-M via PSA crypto libraries.
2+
# Enforcing usage of built-in Mbed TLS for native simulator.
3+
CONFIG_MBEDTLS=y
4+
CONFIG_MBEDTLS_BUILTIN=y
5+
CONFIG_BT_MESH_USES_MBEDTLS_PSA=y

tests/subsys/bluetooth/mesh/light_hue/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ target_compile_options(app
2828
-DCONFIG_BT_MESH_MOD_ACKD_TIMEOUT_BASE=3000
2929
-DCONFIG_BT_MESH_MOD_ACKD_TIMEOUT_PER_HOP=50
3030
-DCONFIG_BT_LOG_LEVEL=0
31-
-DCONFIG_BT_MESH_USES_TINYCRYPT
31+
-DCONFIG_BT_MESH_USES_MBEDTLS_PSA=1
3232
)
3333

3434
zephyr_ld_options(
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# nrf_security only supports Cortex-M via PSA crypto libraries.
2+
# Enforcing usage of built-in Mbed TLS for native simulator.
3+
CONFIG_MBEDTLS=y
4+
CONFIG_MBEDTLS_BUILTIN=y
5+
CONFIG_BT_MESH_USES_MBEDTLS_PSA=y

tests/subsys/bluetooth/mesh/scheduler_model/action_planning/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ target_compile_options(app
3333
-DCONFIG_BT_MESH_MODEL_LOG_LEVEL=0
3434
-DCONFIG_BT_MESH_MOD_ACKD_TIMEOUT_BASE=0
3535
-DCONFIG_BT_MESH_MOD_ACKD_TIMEOUT_PER_HOP=0
36-
-DCONFIG_BT_MESH_USES_TINYCRYPT
36+
-DCONFIG_BT_MESH_USES_MBEDTLS_PSA=1
3737
)
3838

3939
zephyr_ld_options(
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# nrf_security only supports Cortex-M via PSA crypto libraries.
2+
# Enforcing usage of built-in Mbed TLS for native simulator.
3+
CONFIG_MBEDTLS=y
4+
CONFIG_MBEDTLS_BUILTIN=y
5+
CONFIG_BT_MESH_USES_MBEDTLS_PSA=y

tests/subsys/bluetooth/mesh/scheduler_model/message_validity/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ target_compile_options(app
3434
-DCONFIG_BT_MESH_MODEL_LOG_LEVEL=0
3535
-DCONFIG_BT_MESH_MOD_ACKD_TIMEOUT_BASE=0
3636
-DCONFIG_BT_MESH_MOD_ACKD_TIMEOUT_PER_HOP=0
37-
-DCONFIG_BT_MESH_USES_TINYCRYPT
37+
-DCONFIG_BT_MESH_USES_MBEDTLS_PSA=1
3838
)
3939

4040
zephyr_ld_options(
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# nrf_security only supports Cortex-M via PSA crypto libraries.
2+
# Enforcing usage of built-in Mbed TLS for native simulator.
3+
CONFIG_MBEDTLS=y
4+
CONFIG_MBEDTLS_BUILTIN=y
5+
CONFIG_BT_MESH_USES_MBEDTLS_PSA=y

tests/subsys/bluetooth/mesh/scheduler_model/timing/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ target_compile_options(app
2929
-DCONFIG_BT_MESH_MODEL_GROUP_COUNT=5
3030
-DCONFIG_BT_LOG_LEVEL=0
3131
-DCONFIG_BT_MESH_SCHEDULER_SRV=1
32-
-DCONFIG_BT_MESH_USES_TINYCRYPT
32+
-DCONFIG_BT_MESH_USES_MBEDTLS_PSA=1
3333
)
3434

3535
zephyr_ld_options(
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# nrf_security only supports Cortex-M via PSA crypto libraries.
2+
# Enforcing usage of built-in Mbed TLS for native simulator.
3+
CONFIG_MBEDTLS=y
4+
CONFIG_MBEDTLS_BUILTIN=y
5+
CONFIG_BT_MESH_USES_MBEDTLS_PSA=y

0 commit comments

Comments
 (0)