Bluetooth: Mesh: align mesh and host psa usage
Commit aligns usage mesh and host PSA. Since PSA crypto is supported in host then there is no reason to switch off some of host features to get rid of tinycrypt functions in the final image. Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
This commit is contained in:
parent
77acec32f7
commit
3cf219fb97
5 changed files with 11 additions and 19 deletions
|
@ -1,4 +1,2 @@
|
||||||
# The option adds TinyCrypt based bt_rand.
|
# Enable PSA as a crypto backend in host
|
||||||
CONFIG_BT_HOST_CRYPTO=n
|
CONFIG_BT_USE_PSA_API=y
|
||||||
# The option adds GATT caching feature that is based on TinyCrypt.
|
|
||||||
CONFIG_BT_GATT_CACHING=n
|
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
# The option adds TinyCrypt based bt_rand.
|
# Enable PSA as a crypto backend in host
|
||||||
CONFIG_BT_HOST_CRYPTO=n
|
CONFIG_BT_USE_PSA_API=y
|
||||||
# The option adds GATT caching feature that is based on TinyCrypt.
|
|
||||||
CONFIG_BT_GATT_CACHING=n
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
# The option adds TinyCrypt based bt_rand.
|
# Enable PSA as a crypto backend in host
|
||||||
CONFIG_BT_HOST_CRYPTO=n
|
CONFIG_BT_USE_PSA_API=y
|
||||||
|
|
|
@ -127,8 +127,6 @@ endif()
|
||||||
|
|
||||||
zephyr_library_link_libraries_ifdef(CONFIG_MBEDTLS mbedTLS)
|
zephyr_library_link_libraries_ifdef(CONFIG_MBEDTLS mbedTLS)
|
||||||
|
|
||||||
if (CONFIG_BUILD_WITH_TFM)
|
zephyr_library_include_directories_ifdef(CONFIG_BUILD_WITH_TFM
|
||||||
target_include_directories(${ZEPHYR_CURRENT_LIBRARY} PRIVATE
|
|
||||||
$<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/api_ns/interface/include
|
$<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/api_ns/interface/include
|
||||||
)
|
)
|
||||||
endif()
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
# The option adds TinyCrypt based bt_rand.
|
# Enable PSA as a crypto backend in host
|
||||||
CONFIG_BT_HOST_CRYPTO=n
|
CONFIG_BT_USE_PSA_API=y
|
||||||
# The option adds GATT caching feature that is based on TinyCrypt.
|
|
||||||
CONFIG_BT_GATT_CACHING=n
|
|
||||||
|
|
||||||
# Enable mbedTLS PSA as a crypto backend
|
# Enable mbedTLS PSA as a crypto backend
|
||||||
CONFIG_BT_MESH_USES_MBEDTLS_PSA=y
|
CONFIG_BT_MESH_USES_MBEDTLS_PSA=y
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue