From 72ae1f15c882e031a8526e972dd24ccbb43189d1 Mon Sep 17 00:00:00 2001 From: Mia Yang <145632982+mia1yang@users.noreply.github.com> Date: Sat, 11 May 2024 01:15:40 +0800 Subject: [PATCH] [border-agent] config related OpenThread core build flag according to OTBR_EPSKC option (#2247) --- etc/cmake/options.cmake | 2 +- third_party/openthread/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/cmake/options.cmake b/etc/cmake/options.cmake index 380bf6766d0..4b6c0bb7c97 100644 --- a/etc/cmake/options.cmake +++ b/etc/cmake/options.cmake @@ -108,7 +108,7 @@ if(OTBR_TREL) target_compile_definitions(otbr-config INTERFACE OTBR_ENABLE_TREL=1) endif() -option(OTBR_EPSKC "Enable ePSKc Support" OFF) +option(OTBR_EPSKC "Enable ephemeral PSKc" ON) if (OTBR_EPSKC) target_compile_definitions(otbr-config INTERFACE OTBR_ENABLE_EPSKC=1) else() diff --git a/third_party/openthread/CMakeLists.txt b/third_party/openthread/CMakeLists.txt index f07625da96b..8ea4516e4e7 100644 --- a/third_party/openthread/CMakeLists.txt +++ b/third_party/openthread/CMakeLists.txt @@ -31,6 +31,7 @@ set(OT_ANYCAST_LOCATOR ON CACHE STRING "enable anycast locator" FORCE) set(OT_BACKBONE_ROUTER ${OTBR_BACKBONE_ROUTER} CACHE STRING "Enable Backbone Router feature in OpenThread" FORCE) set(OT_BACKBONE_ROUTER_DUA_NDPROXYING ${OTBR_DUA_ROUTING} CACHE STRING "Configure DUA ND Proxy feature in OpenThread" FORCE) set(OT_BORDER_AGENT ON CACHE STRING "enable border agent" FORCE) +set(OT_BORDER_AGENT_EPSKC ON CACHE STRING "enable border agent ephemeral PSKc" FORCE) set(OT_BORDER_AGENT_ID ON CACHE STRING "enable border agent ID" FORCE) set(OT_BORDER_ROUTER ON CACHE STRING "enable border router feature" FORCE) set(OT_BORDER_ROUTING ${OTBR_BORDER_ROUTING} CACHE STRING "enable border routing feature" FORCE)