mirror of
https://github.com/espressif/openthread.git
synced 2026-08-14 22:57:46 +00:00
[cmake] add option to enable secure settings API (#7517)
This commit adds an option to the POSIX platform CMake module to turn on/off the secure settings API.
This commit is contained in:
@@ -62,6 +62,13 @@ if(OT_POSIX_MAX_POWER_TABLE)
|
||||
)
|
||||
endif()
|
||||
|
||||
option(OT_POSIX_SECURE_SETTINGS "enable secure settings" OFF)
|
||||
if (OT_POSIX_SECURE_SETTINGS)
|
||||
target_compile_definitions(ot-posix-config
|
||||
INTERFACE "OPENTHREAD_POSIX_CONFIG_SECURE_SETTINGS_ENABLE=1"
|
||||
)
|
||||
endif()
|
||||
|
||||
set(OT_POSIX_CONFIG_RCP_BUS "" CACHE STRING "RCP bus type")
|
||||
if(OT_POSIX_CONFIG_RCP_BUS)
|
||||
target_compile_definitions(ot-posix-config
|
||||
|
||||
Reference in New Issue
Block a user