[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 22:26:29 -04: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
)
+5 -1
View File
@@ -46,10 +46,14 @@ target_sources(openthread-cli-radio
cli_output.cpp
)
if(NOT DEFINED OT_MBEDTLS_RCP)
set(OT_MBEDTLS_RCP ${OT_MBEDTLS})
endif()
target_link_libraries(openthread-cli-radio
PUBLIC
openthread-radio
PRIVATE
${OT_MBEDTLS}
${OT_MBEDTLS_RCP}
ot-config
)
+5 -1
View File
@@ -47,8 +47,12 @@ if(OT_VENDOR_EXTENSION)
target_sources(openthread-radio-cli PRIVATE ${OT_VENDOR_EXTENSION})
endif()
if(NOT DEFINED OT_MBEDTLS_RCP)
set(OT_MBEDTLS_RCP ${OT_MBEDTLS})
endif()
target_link_libraries(openthread-radio-cli
PRIVATE
${OT_MBEDTLS}
${OT_MBEDTLS_RCP}
ot-config
)