mirror of
https://github.com/espressif/openthread.git
synced 2026-08-30 13:59:54 +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})
|
set(OT_PLATFORM_LIB_RCP ${OT_PLATFORM_LIB})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(NOT DEFINED OT_MBEDTLS_RCP)
|
||||||
|
set(OT_MBEDTLS_RCP ${OT_MBEDTLS})
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_libraries(ot-cli-radio PRIVATE
|
target_link_libraries(ot-cli-radio PRIVATE
|
||||||
openthread-cli-radio
|
openthread-cli-radio
|
||||||
${OT_PLATFORM_LIB_RCP}
|
${OT_PLATFORM_LIB_RCP}
|
||||||
openthread-radio-cli
|
openthread-radio-cli
|
||||||
${OT_PLATFORM_LIB_RCP}
|
${OT_PLATFORM_LIB_RCP}
|
||||||
openthread-cli-radio
|
openthread-cli-radio
|
||||||
${OT_MBEDTLS}
|
${OT_MBEDTLS_RCP}
|
||||||
ot-config
|
ot-config
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
+5
-1
@@ -46,10 +46,14 @@ target_sources(openthread-cli-radio
|
|||||||
cli_output.cpp
|
cli_output.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(NOT DEFINED OT_MBEDTLS_RCP)
|
||||||
|
set(OT_MBEDTLS_RCP ${OT_MBEDTLS})
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_libraries(openthread-cli-radio
|
target_link_libraries(openthread-cli-radio
|
||||||
PUBLIC
|
PUBLIC
|
||||||
openthread-radio
|
openthread-radio
|
||||||
PRIVATE
|
PRIVATE
|
||||||
${OT_MBEDTLS}
|
${OT_MBEDTLS_RCP}
|
||||||
ot-config
|
ot-config
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -47,8 +47,12 @@ if(OT_VENDOR_EXTENSION)
|
|||||||
target_sources(openthread-radio-cli PRIVATE ${OT_VENDOR_EXTENSION})
|
target_sources(openthread-radio-cli PRIVATE ${OT_VENDOR_EXTENSION})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(NOT DEFINED OT_MBEDTLS_RCP)
|
||||||
|
set(OT_MBEDTLS_RCP ${OT_MBEDTLS})
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_libraries(openthread-radio-cli
|
target_link_libraries(openthread-radio-cli
|
||||||
PRIVATE
|
PRIVATE
|
||||||
${OT_MBEDTLS}
|
${OT_MBEDTLS_RCP}
|
||||||
ot-config
|
ot-config
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user