Skip to content

Commit 1008c69

Browse files
authored
Merge branch 'master' into pr/fabric_sync/doc
2 parents 070ec2b + ea235fd commit 1008c69

File tree

265 files changed

+10825
-1247
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

265 files changed

+10825
-1247
lines changed

.github/workflows/examples-cc13xx_26xx.yaml

+11-7
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,19 @@ name: Build example - TI CC13XX_26XX
1717
on:
1818
push:
1919
branches-ignore:
20-
- 'dependabot/**'
20+
- "dependabot/**"
2121
pull_request:
2222
merge_group:
2323

2424
concurrency:
25-
group: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
25+
group:
26+
${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name ==
27+
'pull_request' && github.event.number) || (github.event_name ==
28+
'workflow_dispatch' && github.run_number) || github.sha }}
2629
cancel-in-progress: true
2730
env:
2831
CHIP_NO_LOG_TIMESTAMPS: true
29-
32+
3033
jobs:
3134
cc13xx_26xx:
3235
name: cc13xx_26xx
@@ -47,13 +50,14 @@ jobs:
4750
- name: Checkout submodules & Bootstrap
4851
uses: ./.github/actions/checkout-submodules-and-bootstrap
4952
with:
50-
platform: cc13xx_26xx
53+
platform: cc13xx_26xx
54+
extra-submodule-parameters: " --recursive"
5155
- name: Set up environment for size reports
5256
uses: ./.github/actions/setup-size-reports
5357
if: ${{ !env.ACT }}
5458
with:
55-
gh-context: ${{ toJson(github) }}
56-
59+
gh-context: ${{ toJson(github) }}
60+
5761
- name: Build examples
5862
run: |
5963
scripts/run_in_build_env.sh "\
@@ -103,4 +107,4 @@ jobs:
103107
uses: ./.github/actions/upload-size-reports
104108
if: ${{ !env.ACT }}
105109
with:
106-
platform-name: cc13x4_26x4
110+
platform-name: cc13x4_26x4

.github/workflows/examples-rw61x.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ jobs:
4848
- name: Checkout submodules & Bootstrap
4949
uses: ./.github/actions/checkout-submodules-and-bootstrap
5050
with:
51-
platform: rw61x
51+
platform: nxp
52+
extra-submodule-parameters: --recursive
5253

5354
- name: Set up environment for size reports
5455
uses: ./.github/actions/setup-size-reports
@@ -61,6 +62,8 @@ jobs:
6162
scripts/run_in_build_env.sh "\
6263
./scripts/build/build_examples.py \
6364
--target rw61x-all-clusters-app-wifi \
65+
--target rw61x-all-clusters-app-thread \
66+
--target rw61x-all-clusters-app-thread-wifi \
6467
build \
6568
--copy-artifacts-to out/artifacts \
6669
"
@@ -70,6 +73,8 @@ jobs:
7073
scripts/run_in_build_env.sh "\
7174
./scripts/build/build_examples.py \
7275
--target rw61x-thermostat-wifi \
76+
--target rw61x-thermostat-thread \
77+
--target rw61x-thermostat-thread-wifi \
7378
build \
7479
--copy-artifacts-to out/artifacts \
7580
"
@@ -79,6 +84,8 @@ jobs:
7984
scripts/run_in_build_env.sh "\
8085
./scripts/build/build_examples.py \
8186
--target rw61x-laundry-washer-wifi \
87+
--target rw61x-laundry-washer-thread \
88+
--target rw61x-laundry-washer-thread-wifi \
8289
build \
8390
--copy-artifacts-to out/artifacts \
8491
"

.github/workflows/tests.yaml

+26-24
Large diffs are not rendered by default.

config/esp32/components/chip/CMakeLists.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,11 @@ chip_gn_arg_append("chip_config_network_layer_ble" "false")
118118
endif()
119119

120120
if(CONFIG_DISABLE_IPV4)
121-
chip_gn_arg_append("chip_inet_config_enable_ipv4" "false")
121+
if(NOT CONFIG_LWIP_IPV4)
122+
chip_gn_arg_append("chip_inet_config_enable_ipv4" "false")
123+
else()
124+
message(FATAL_ERROR "Please also disable config option CONFIG_LWIP_IPV4")
125+
endif()
122126
endif()
123127

124128
if(CONFIG_DISABLE_READ_CLIENT)

config/zephyr/app/enable-gnu-std.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ add_library(gnu17 INTERFACE)
22
target_compile_options(gnu17
33
INTERFACE
44
$<$<COMPILE_LANGUAGE:CXX>:-std=gnu++17>
5-
-D_SYS__PTHREADTYPES_H_)
6-
target_link_libraries(app PRIVATE gnu17)
5+
-D_DEFAULT_SOURCE)
6+
target_link_libraries(app PRIVATE gnu17)

config/zephyr/chip-module/CMakeLists.txt

+48-20
Original file line numberDiff line numberDiff line change
@@ -39,29 +39,27 @@ endif()
3939
get_filename_component(GN_ROOT_TARGET ${CHIP_ROOT}/config/zephyr/chip-gn REALPATH)
4040
get_filename_component(COMMON_CMAKE_SOURCE_DIR ${CHIP_ROOT}/config/common/cmake REALPATH)
4141

42-
# Additional configuration
43-
if (CONFIG_CHIP_PW_RPC)
44-
set(CONFIG_CHIP_LIB_PW_RPC YES)
45-
endif()
4642

4743
# Get common Cmake sources
4844
include(${COMMON_CMAKE_SOURCE_DIR}/chip_gn_args.cmake)
4945
include(${COMMON_CMAKE_SOURCE_DIR}/chip_gn.cmake)
5046

51-
# Prepare compiler flags
52-
matter_add_flags(-isystem${ZEPHYR_BASE}/../modules/crypto/mbedtls/include/)
53-
5447
if (CONFIG_POSIX_API)
55-
matter_add_flags(-D_SYS__PTHREADTYPES_H_)
48+
matter_add_flags(-D_DEFAULT_SOURCE)
5649
matter_add_flags(-isystem${ZEPHYR_BASE}/include/zephyr/posix)
5750
endif()
5851

52+
if(CONFIG_MBEDTLS)
53+
zephyr_include_directories($<TARGET_PROPERTY:mbedTLS,INTERFACE_INCLUDE_DIRECTORIES>)
54+
zephyr_compile_definitions($<TARGET_PROPERTY:mbedTLS,INTERFACE_COMPILE_DEFINITIONS>)
55+
endif()
56+
5957
zephyr_get_compile_flags(ZEPHYR_CFLAGS_C C)
60-
matter_add_cflags(${ZEPHYR_CFLAGS_C})
58+
matter_add_cflags("${ZEPHYR_CFLAGS_C}")
6159
zephyr_get_compile_flags(ZEPHYR_CFLAGS_CC CXX)
62-
matter_add_cxxflags(${ZEPHYR_CFLAGS_CC})
60+
matter_add_cxxflags("${ZEPHYR_CFLAGS_CC}")
6361
zephyr_get_gnu_cpp_standard(ZEPHYR_GNU_CPP_STD)
64-
matter_add_cxxflags(${ZEPHYR_GNU_CPP_STD})
62+
matter_add_cxxflags("${ZEPHYR_GNU_CPP_STD}")
6563

6664
# Set up custom OpenThread configuration
6765

@@ -81,29 +79,59 @@ matter_common_gn_args(
8179
DEBUG CONFIG_DEBUG
8280
LIB_SHELL CONFIG_CHIP_LIB_SHELL
8381
LIB_TESTS CONFIG_CHIP_BUILD_TESTS
84-
LIB_PW_RPC CONFIG_CHIP_PW_RPC
8582
PROJECT_CONFIG ${CONFIG_CHIP_PROJECT_CONFIG}
8683
)
87-
matter_add_gn_arg_string("zephyr_ar" ${CMAKE_AR})
88-
matter_add_gn_arg_string("zephyr_cc" ${CMAKE_C_COMPILER})
89-
matter_add_gn_arg_string("zephyr_cxx" ${CMAKE_CXX_COMPILER})
90-
matter_add_gn_arg_bool ("chip_enable_openthread" CONFIG_NET_L2_OPENTHREAD)
91-
matter_add_gn_arg_bool ("chip_openthread_ftd" CONFIG_OPENTHREAD_FTD)
92-
matter_add_gn_arg_bool ("chip_inet_config_enable_ipv4" CONFIG_NET_IPV4)
93-
matter_add_gn_arg_bool ("chip_inet_config_enable_tcp_endpoint" CONFIG_CHIP_BUILD_TESTS)
84+
85+
matter_add_gn_arg_string("zephyr_ar" ${CMAKE_AR})
86+
matter_add_gn_arg_string("zephyr_cc" ${CMAKE_C_COMPILER})
87+
matter_add_gn_arg_string("zephyr_cxx" ${CMAKE_CXX_COMPILER})
88+
matter_add_gn_arg_bool ("chip_logging" CONFIG_LOG)
89+
matter_add_gn_arg_bool ("chip_error_logging" CONFIG_MATTER_LOG_LEVEL GREATER_EQUAL 1)
90+
matter_add_gn_arg_bool ("chip_progress_logging" CONFIG_MATTER_LOG_LEVEL GREATER_EQUAL 3)
91+
matter_add_gn_arg_bool ("chip_detail_logging" CONFIG_MATTER_LOG_LEVEL GREATER_EQUAL 4)
92+
matter_add_gn_arg_bool ("chip_automation_logging" FALSE)
93+
matter_add_gn_arg_bool ("chip_enable_openthread" CONFIG_NET_L2_OPENTHREAD)
94+
matter_add_gn_arg_bool ("chip_openthread_ftd" CONFIG_OPENTHREAD_FTD)
95+
matter_add_gn_arg_bool ("chip_inet_config_enable_ipv4" CONFIG_CHIP_IPV4)
96+
matter_add_gn_arg_bool ("chip_enable_wifi" CONFIG_WIFI)
97+
matter_add_gn_arg_bool ("chip_config_network_layer_ble" CONFIG_BT)
98+
matter_add_gn_arg_bool ("chip_mdns_minimal" CONFIG_WIFI)
99+
matter_add_gn_arg_bool ("chip_mdns_minimal" CONFIG_NET_L2_ETHERNET)
100+
matter_add_gn_arg_bool ("chip_mdns_platform" CONFIG_NET_L2_OPENTHREAD)
101+
matter_add_gn_arg_bool ("chip_inet_config_enable_tcp_endpoint" CONFIG_CHIP_BUILD_TESTS)
102+
matter_add_gn_arg_bool ("chip_inet_config_enable_udp_endpoint" CONFIG_NET_UDP)
103+
matter_add_gn_arg_bool ("chip_inet_config_enable_tcp_endpoint" CONFIG_NET_TCP)
104+
matter_add_gn_arg_bool ("chip_malloc_sys_heap" CONFIG_CHIP_MALLOC_SYS_HEAP)
105+
94106

95107
if (CONFIG_CHIP_ENABLE_DNSSD_SRP)
96108
matter_add_gn_arg_string("chip_mdns" "platform")
97109
endif()
98110

111+
if(CONFIG_WIFI)
112+
matter_add_gn_arg_string("chip_mdns" "minimal")
113+
elseif (CONFIG_NET_L2_ETHERNET)
114+
matter_add_gn_arg_string("chip_mdns" "minimal")
115+
elseif (CONFIG_NET_L2_OPENTHREAD)
116+
matter_add_gn_arg_string("chip_mdns" "platform")
117+
else()
118+
matter_add_gn_arg_string("chip_mdns" "none")
119+
endif()
120+
121+
if (CONFIG_CHIP_PW_RPC)
122+
set(PIGWEED_DIR "//third_party/pigweed/repo")
123+
matter_add_gn_arg_string("pw_assert_BACKEND" ${PIGWEED_DIR}/pw_assert_log:check_backend)
124+
matter_add_gn_arg_string("pw_log_BACKEND" ${PIGWEED_DIR}/pw_log_basic)
125+
matter_add_gn_arg("pw_build_LINK_DEPS" [\"${PIGWEED_DIR}/pw_assert:impl\",\ \"${PIGWEED_DIR}/pw_log:impl\"])
126+
endif()
127+
99128
matter_generate_args_tmp_file()
100129

101130
# ==============================================================================
102131
# Build chip library
103132
# ==============================================================================
104133
matter_build(chip
105134
LIB_SHELL ${CONFIG_CHIP_LIB_SHELL}
106-
LIB_PW_RPC ${CONFIG_CHIP_PW_RPC}
107135
LIB_TESTS ${CONFIG_CHIP_BUILD_TESTS}
108136
GN_DEPENDENCIES kernel
109137
)

config/zephyr/chip-module/Kconfig.bt

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#
2+
# Copyright (c) 2021 Project CHIP Authors
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
# Bluetooth Low Energy configs
18+
config BT
19+
bool
20+
default y
21+
22+
config BT_PERIPHERAL
23+
bool
24+
default y
25+
26+
config BT_PERIPHERAL_PREF_MIN_INT
27+
int
28+
default 36
29+
30+
config BT_PERIPHERAL_PREF_MAX_INT
31+
int
32+
default 36
33+
34+
config BT_GAP_AUTO_UPDATE_CONN_PARAMS
35+
bool
36+
default y
37+
38+
config BT_GATT_DYNAMIC_DB
39+
bool
40+
default y
41+
42+
config BT_DEVICE_NAME_DYNAMIC
43+
bool
44+
default y
45+
46+
config BT_DEVICE_NAME_MAX
47+
int
48+
default 15
49+
50+
config BT_MAX_CONN
51+
int
52+
default 1
53+
54+
config BT_L2CAP_TX_MTU
55+
int
56+
default 247
57+
58+
config BT_BUF_ACL_RX_SIZE
59+
int
60+
default 251
61+
62+
config BT_BUF_ACL_TX_SIZE
63+
int
64+
default 251
65+
66+
config BT_RX_STACK_SIZE
67+
int
68+
default 1200

config/zephyr/chip-module/Kconfig.defaults

-71
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,6 @@
2020

2121
if CHIP
2222

23-
config LOG
24-
bool
25-
default y
26-
27-
if LOG
28-
29-
choice LOG_MODE
30-
default LOG_MODE_MINIMAL
31-
endchoice
32-
33-
choice MATTER_LOG_LEVEL_CHOICE
34-
default MATTER_LOG_LEVEL_DBG
35-
endchoice
36-
37-
config LOG_DEFAULT_LEVEL
38-
int
39-
default 2
40-
41-
endif
42-
4323
# disable synchronous printk to avoid blocking IRQs which
4424
# may affect time sensitive components
4525
config PRINTK_SYNC
@@ -119,58 +99,7 @@ config NET_BUF_TX_COUNT
11999
int
120100
default 80
121101

122-
# Bluetooth Low Energy configs
123-
config BT
124-
bool
125-
default y
126-
127-
config BT_PERIPHERAL
128-
bool
129-
default y
130-
131-
config BT_PERIPHERAL_PREF_MIN_INT
132-
int
133-
default 36
134-
135-
config BT_PERIPHERAL_PREF_MAX_INT
136-
int
137-
default 36
138-
139-
config BT_GAP_AUTO_UPDATE_CONN_PARAMS
140-
bool
141-
default y
142-
143-
config BT_GATT_DYNAMIC_DB
144-
bool
145-
default y
146-
147-
config BT_DEVICE_NAME_DYNAMIC
148-
bool
149-
default y
150-
151-
config BT_DEVICE_NAME_MAX
152-
int
153-
default 15
154102

155-
config BT_MAX_CONN
156-
int
157-
default 1
158-
159-
config BT_L2CAP_TX_MTU
160-
int
161-
default 247
162-
163-
config BT_BUF_ACL_RX_SIZE
164-
int
165-
default 251
166-
167-
config BT_BUF_ACL_TX_SIZE
168-
int
169-
default 251
170-
171-
config BT_RX_STACK_SIZE
172-
int
173-
default 1200
174103

175104
config CHIP_OTA_REQUESTOR
176105
bool

0 commit comments

Comments
 (0)