Since the TinyCrypt library is being deprecated in Zephyr, this commit set TinyCrypt usage in BT mesh as deprecated and it sets Mbed TLS PSA Crypto API as the default option (when TF-M is not available). Tests are also updated in this commit. Signed-off-by: Valerio Setti <vsetti@baylibre.com>
22 lines
520 B
CMake
22 lines
520 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
project(bluetooth_mesh_rpl)
|
|
|
|
FILE(GLOB app_sources src/*.c)
|
|
target_sources(app
|
|
PRIVATE
|
|
${app_sources}
|
|
${ZEPHYR_BASE}/subsys/bluetooth/mesh/rpl.c)
|
|
|
|
target_include_directories(app
|
|
PRIVATE
|
|
${ZEPHYR_BASE}/subsys/bluetooth/mesh)
|
|
|
|
target_compile_options(app
|
|
PRIVATE
|
|
-DCONFIG_BT_MESH_CRPL=10
|
|
-DCONFIG_BT_MESH_RPL_STORE_TIMEOUT=1
|
|
-DCONFIG_BT_SETTINGS
|
|
-DCONFIG_BT_MESH_USES_MBEDTLS_PSA)
|