mirror of
https://github.com/espressif/openthread.git
synced 2026-08-07 19:27:46 +00:00
[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:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user