Skip to content

Commit

Permalink
[build] set default Thread version to 1.4 (#10690)
Browse files Browse the repository at this point in the history
This commit updates the default Thread version to 1.4, so that most
latest features will be enabled by default. This commit also explicitly
enable the epskc feature just like other features in the build script.
  • Loading branch information
bukepo authored Sep 10, 2024
1 parent 07a1b7b commit c0690e7
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion etc/cmake/options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ endif()

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
set(OT_THREAD_VERSION_VALUES "1.1" "1.2" "1.3" "1.3.1" "1.4")
set(OT_THREAD_VERSION "1.3" CACHE STRING "set Thread version")
set(OT_THREAD_VERSION "1.4" CACHE STRING "set Thread version")
set_property(CACHE OT_THREAD_VERSION PROPERTY STRINGS "${OT_THREAD_VERSION_VALUES}")
list(FIND OT_THREAD_VERSION_VALUES "${OT_THREAD_VERSION}" ot_index)
if(ot_index EQUAL -1)
Expand Down
2 changes: 1 addition & 1 deletion examples/config/ot-core-config-check-size-br.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#ifndef OT_CORE_CONFIG_CHECK_SIZE_BR_H_
#define OT_CORE_CONFIG_CHECK_SIZE_BR_H_

#define OPENTHREAD_CONFIG_THREAD_VERSION OT_THREAD_VERSION_1_3
#define OPENTHREAD_CONFIG_THREAD_VERSION OT_THREAD_VERSION_1_4

#define OPENTHREAD_CONFIG_ASSERT_ENABLE 1
#define OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE 1
Expand Down
2 changes: 1 addition & 1 deletion examples/config/ot-core-config-check-size-ftd.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#ifndef OT_CORE_CONFIG_CHECK_SIZE_FTD_H_
#define OT_CORE_CONFIG_CHECK_SIZE_FTD_H_

#define OPENTHREAD_CONFIG_THREAD_VERSION OT_THREAD_VERSION_1_3
#define OPENTHREAD_CONFIG_THREAD_VERSION OT_THREAD_VERSION_1_4

#define OPENTHREAD_CONFIG_ASSERT_ENABLE 1
#define OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE 0
Expand Down
2 changes: 1 addition & 1 deletion examples/config/ot-core-config-check-size-mtd.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#ifndef OT_CORE_CONFIG_CHECK_SIZE_MTD_H_
#define OT_CORE_CONFIG_CHECK_SIZE_MTD_H_

#define OPENTHREAD_CONFIG_THREAD_VERSION OT_THREAD_VERSION_1_3
#define OPENTHREAD_CONFIG_THREAD_VERSION OT_THREAD_VERSION_1_4

#define OPENTHREAD_CONFIG_ASSERT_ENABLE 1
#define OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE 0
Expand Down
3 changes: 2 additions & 1 deletion script/cmake-build
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ readonly OT_PLATFORMS

OT_POSIX_SIM_COMMON_OPTIONS=(
"-DOT_ANYCAST_LOCATOR=ON"
"-DOT_BLE_TCAT=ON"
"-DOT_BORDER_AGENT=ON"
"-DOT_BORDER_AGENT_EPSKC=ON"
"-DOT_BORDER_AGENT_ID=ON"
"-DOT_BORDER_ROUTER=ON"
"-DOT_CHANNEL_MANAGER=ON"
Expand Down Expand Up @@ -109,7 +111,6 @@ OT_POSIX_SIM_COMMON_OPTIONS=(
"-DOT_SRP_CLIENT=ON"
"-DOT_SRP_SERVER=ON"
"-DOT_UPTIME=ON"
"-DOT_BLE_TCAT=ON"
)
readonly OT_POSIX_SIM_COMMON_OPTIONS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def check_meshcop_service_by_data(self, br, service_data):
self.assertEqual(bool(state_bitmap >> 11 & 1), br.ephemeral_key_enabled) # ePSKc is supported or not
self.assertEqual(service_data['txt']['nn'], br.get_network_name())
self.assertEqual(service_data['txt']['rv'], '1')
self.assertIn(service_data['txt']['tv'], ['1.1.0', '1.1.1', '1.2.0', '1.3.0'])
self.assertIn(service_data['txt']['tv'], ['1.1.0', '1.1.1', '1.2.0', '1.3.0', '1.4.0'])

def discover_services(self, host, type):
instance_names = host.browse_mdns_services(type)
Expand Down

0 comments on commit c0690e7

Please sign in to comment.