[cmake] add option for RCP specific mbedtls library (#7781)

This commit enables a different mbedtls library to be used for RCP
builds. This will make it possible to use a PSA Crypto mbedtls library
for FTD/MTD images while using a non-PSA crypto library on RCPs.
This commit is contained in:
Mason Tran
2022-06-02 19:26:29 -07:00
committed by GitHub
parent 1811ac763f
commit c8556dfd66
3 changed files with 15 additions and 3 deletions
+5 -1
View File
@@ -37,13 +37,17 @@ if(NOT DEFINED OT_PLATFORM_LIB_RCP)
set(OT_PLATFORM_LIB_RCP ${OT_PLATFORM_LIB})
endif()
if(NOT DEFINED OT_MBEDTLS_RCP)
set(OT_MBEDTLS_RCP ${OT_MBEDTLS})
endif()
target_link_libraries(ot-cli-radio PRIVATE
openthread-cli-radio
${OT_PLATFORM_LIB_RCP}
openthread-radio-cli
${OT_PLATFORM_LIB_RCP}
openthread-cli-radio
${OT_MBEDTLS}
${OT_MBEDTLS_RCP}
ot-config
)