Skip to content

Commit 1ae3487

Browse files
Merge commit 'ba6168c' into restore_merge_history
2 parents 170c8e4 + ba6168c commit 1ae3487

File tree

689 files changed

+66285
-15272
lines changed

Some content is hidden

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

689 files changed

+66285
-15272
lines changed

.github/.wordlist.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ CurrentHue
326326
CurrentLevel
327327
CurrentSaturation
328328
customAcl
329+
customizable
329330
customizations
330331
cvfJ
331332
cxx
@@ -1039,6 +1040,7 @@ otatesting
10391040
otaURL
10401041
OTBR
10411042
otcli
1043+
OU
10421044
outform
10431045
outgoingCommands
10441046
overridable
@@ -1150,6 +1152,7 @@ PyObject
11501152
pypi
11511153
PyRun
11521154
pytest
1155+
PYTHONPATH
11531156
QEMU
11541157
Qorvo
11551158
QPG
@@ -1326,6 +1329,7 @@ SRP
13261329
SRV
13271330
SSBL
13281331
SSID
1332+
SSL
13291333
startoffset
13301334
StartScan
13311335
startsWith
@@ -1490,6 +1494,7 @@ unfocus
14901494
Unicast
14911495
UniFlash
14921496
UnitLocalization
1497+
unittest
14931498
unpair
14941499
unprovisioned
14951500
Unsecure

.github/workflows/tests.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ jobs:
497497
--target linux-x64-fabric-admin-rpc-ipv6only-clang \
498498
--target linux-x64-fabric-bridge-rpc-ipv6only-no-ble-no-wifi-clang \
499499
--target linux-x64-light-data-model-no-unique-id-ipv6only-no-ble-no-wifi-clang \
500+
--target linux-x64-terms-and-conditions \
500501
--target linux-x64-python-bindings \
501502
build \
502503
--copy-artifacts-to objdir-clone \
@@ -514,6 +515,7 @@ jobs:
514515
echo "FABRIC_ADMIN_APP: out/linux-x64-fabric-admin-rpc-ipv6only-clang/fabric-admin" >> /tmp/test_env.yaml
515516
echo "FABRIC_BRIDGE_APP: out/linux-x64-fabric-bridge-rpc-ipv6only-no-ble-no-wifi-clang/fabric-bridge-app" >> /tmp/test_env.yaml
516517
echo "LIGHTING_APP_NO_UNIQUE_ID: out/linux-x64-light-data-model-no-unique-id-ipv6only-no-ble-no-wifi-clang/chip-lighting-app" >> /tmp/test_env.yaml
518+
echo "TERMS_AND_CONDITIONS_APP: out/linux-x64-terms-and-conditions/chip-terms-and-conditions-app" >> /tmp/test_env.yaml
517519
echo "TRACE_APP: out/trace_data/app-{SCRIPT_BASE_NAME}" >> /tmp/test_env.yaml
518520
echo "TRACE_TEST_JSON: out/trace_data/test-{SCRIPT_BASE_NAME}" >> /tmp/test_env.yaml
519521
echo "TRACE_TEST_PERFETTO: out/trace_data/test-{SCRIPT_BASE_NAME}" >> /tmp/test_env.yaml
@@ -530,6 +532,7 @@ jobs:
530532
scripts/run_in_python_env.sh out/venv 'python3 ./src/python_testing/TestConformanceTest.py'
531533
scripts/run_in_python_env.sh out/venv 'python3 ./src/python_testing/TestChoiceConformanceSupport.py'
532534
scripts/run_in_python_env.sh out/venv 'python3 ./src/python_testing/TestMatterTestingSupport.py'
535+
scripts/run_in_python_env.sh out/venv 'python3 ./src/python_testing/TestSpecParsingSelection.py'
533536
scripts/run_in_python_env.sh out/venv 'python3 ./src/python_testing/TestSpecParsingSupport.py'
534537
scripts/run_in_python_env.sh out/venv 'python3 ./src/python_testing/test_testing/test_TC_ICDM_2_1.py'
535538
scripts/run_in_python_env.sh out/venv 'python3 ./src/python_testing/test_testing/test_IDM_10_4.py'

.vscode/launch.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,39 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7+
{
8+
"name": "Python: Mock Server Tests",
9+
"type": "debugpy",
10+
"request": "launch",
11+
"module": "unittest",
12+
"args": [
13+
"${workspaceFolder}/integrations/mock_server/tests/test_mock_server.py"
14+
],
15+
"env": {
16+
"PYTHONPATH": "${workspaceFolder}/integrations/mock_server/src:${PYTHONPATH}"
17+
},
18+
"console": "integratedTerminal",
19+
"cwd": "${workspaceFolder}"
20+
},
21+
{
22+
"name": "Python Debugger: test_dcl_server",
23+
"type": "debugpy",
24+
"request": "launch",
25+
"program": "${workspaceFolder}/integrations/mock_server/src/main.py",
26+
"args": [
27+
"--port",
28+
"8443",
29+
"--config",
30+
"${workspaceFolder}/integrations/mock_server/configurations/server_config.json",
31+
"--routing-config-dir",
32+
"${workspaceFolder}/integrations/mock_server/configurations/fake_distributed_compliance_ledger",
33+
"--cert",
34+
"${workspaceFolder}/server.crt",
35+
"--key",
36+
"${workspaceFolder}/server.key"
37+
],
38+
"console": "integratedTerminal"
39+
},
740
{
841
"name": "Attach to running process",
942
"type": "lldb",

config/esp32/components/chip/CMakeLists.txt

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ endif()
4141

4242
if (NOT CMAKE_BUILD_EARLY_EXPANSION)
4343
if (CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE)
44-
set(is_debug TRUE)
45-
else()
4644
set(is_debug FALSE)
45+
else()
46+
set(is_debug TRUE)
4747
endif()
4848
endif()
4949

@@ -252,6 +252,10 @@ if (CONFIG_ENABLE_OTA_REQUESTOR)
252252
chip_gn_arg_append("chip_enable_ota_requestor" "true")
253253
endif()
254254

255+
if (CONFIG_ENABLE_ACCESS_RESTRICTIONS)
256+
chip_gn_arg_append("chip_enable_access_restrictions" "true")
257+
endif()
258+
255259
if (CONFIG_ENABLE_ROTATING_DEVICE_ID)
256260
chip_gn_arg_append("chip_enable_additional_data_advertising" "true")
257261
chip_gn_arg_append("chip_enable_rotating_device_id" "true")
@@ -393,7 +397,6 @@ externalproject_add(
393397
BUILD_COMMAND ninja "esp32"
394398
INSTALL_COMMAND ""
395399
BUILD_BYPRODUCTS ${chip_libraries}
396-
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
397400
DEPENDS args_gn
398401
BUILD_ALWAYS 1
399402
)
@@ -435,7 +438,15 @@ if(CONFIG_BT_ENABLED)
435438
if((target_name STREQUAL "esp32h2") OR (target_name STREQUAL "esp32c2") OR (target_name STREQUAL "esp32c6"))
436439
idf_component_get_property(bt_dir bt COMPONENT_DIR)
437440
list(APPEND chip_libraries $<TARGET_FILE:${bt_lib}>)
438-
list(APPEND chip_libraries "${bt_dir}/controller/lib_${target_name}/${target_name}-bt-lib/libble_app.a")
441+
if (EXISTS ${bt_dir}/controller/lib_${target_name}/${target_name}-bt-lib/libble_app.a)
442+
list(APPEND chip_libraries "${bt_dir}/controller/lib_${target_name}/${target_name}-bt-lib/libble_app.a")
443+
elseif(EXISTS ${bt_dir}/controller/lib_${target_name}/${target_name}-bt-lib/${target_name}/libble_app.a)
444+
list(APPEND chip_libraries "${bt_dir}/controller/lib_${target_name}/${target_name}-bt-lib/${target_name}/libble_app.a")
445+
else()
446+
message(WARNING "There is no libble_app.a in the given path")
447+
endif()
448+
elseif(target_name STREQUAL "esp32p4")
449+
list(APPEND chip_libraries $<TARGET_FILE:${bt_lib}>)
439450
else()
440451
list(APPEND chip_libraries $<TARGET_FILE:${bt_lib}> -lbtdm_app)
441452
endif()
@@ -514,11 +525,12 @@ endif()
514525
idf_component_get_property(lwip_lib lwip COMPONENT_LIB)
515526
list(APPEND chip_libraries $<TARGET_FILE:${lwip_lib}>)
516527

517-
518-
if (CONFIG_ESP32_WIFI_ENABLED)
528+
if (CONFIG_ESP32_WIFI_ENABLED OR CONFIG_IDF_TARGET_ESP32P4)
519529
idf_component_get_property(esp_wifi_lib esp_wifi COMPONENT_LIB)
520-
idf_component_get_property(esp_wifi_dir esp_wifi COMPONENT_DIR)
521530
list(APPEND chip_libraries $<TARGET_FILE:${esp_wifi_lib}>)
531+
endif()
532+
if (CONFIG_ESP32_WIFI_ENABLED)
533+
idf_component_get_property(esp_wifi_dir esp_wifi COMPONENT_DIR)
522534
if (CONFIG_IDF_TARGET_ESP32C2)
523535
set(blobs core net80211 pp)
524536
else()
@@ -544,6 +556,7 @@ list(APPEND chip_libraries $<TARGET_FILE:${esp_netif_lib}>)
544556
idf_component_get_property(esp_hw_support_lib esp_hw_support COMPONENT_LIB)
545557
list(APPEND chip_libraries $<TARGET_FILE:${esp_hw_support_lib}>)
546558

559+
if (NOT CONFIG_IDF_TARGET_ESP32P4)
547560
idf_component_get_property(esp_phy_lib esp_phy COMPONENT_LIB)
548561
idf_component_get_property(esp_phy_dir esp_phy COMPONENT_DIR)
549562
list(APPEND chip_libraries $<TARGET_FILE:${esp_phy_lib}>)
@@ -558,8 +571,12 @@ endif()
558571
foreach(phy_blob ${phy_blobs})
559572
list(APPEND chip_libraries "${esp_phy_dir}/lib/${target_name}/lib${phy_blob}.a")
560573
endforeach()
574+
endif()
561575

562-
set(components_to_link esp_event hal esp_system soc efuse vfs driver esp_coex freertos esp_timer)
576+
set(components_to_link esp_event hal esp_system soc efuse vfs driver freertos esp_timer)
577+
if (NOT CONFIG_IDF_TARGET_ESP32P4)
578+
list(APPEND components_to_link esp_coex)
579+
endif()
563580
idf_build_get_property(build_components BUILD_COMPONENTS)
564581
foreach(component ${components_to_link})
565582
# Some of the components are not present in IDF v4.x

config/esp32/components/chip/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,4 +1406,12 @@ menu "CHIP Device Layer"
14061406

14071407
endmenu
14081408

1409+
menu "Cluster Configuration Options"
1410+
config ENABLE_ACCESS_RESTRICTIONS
1411+
bool "Enable Access Restrictions of Access Control Cluster"
1412+
default n
1413+
help
1414+
Enable this option to enable Access Restrictions on the device.
1415+
1416+
endmenu
14091417
endmenu

config/esp32/components/chip/idf_component.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies:
77
- if: "target != esp32h2"
88

99
espressif/esp_secure_cert_mgr:
10-
version: "^2.3.0"
10+
version: "^2.5.0"
1111
rules:
1212
- if: "idf_version >=4.3"
1313

@@ -18,22 +18,14 @@ dependencies:
1818
- if: "idf_version >=4.4"
1919

2020
espressif/esp_insights:
21-
version: "1.0.1"
21+
version: "1.2.2"
2222
require: public
2323
# There is an issue with IDF-Component-Manager when ESP Insights is included.
2424
# Issue: https://github.com/project-chip/connectedhomeip/issues/29125
2525
rules:
2626
- if: "idf_version >=5.0"
2727
- if: "target != esp32h2"
2828

29-
# This matches the dependency of esp_insights
30-
espressif/esp_diag_data_store:
31-
version: "1.0.1"
32-
require: public
33-
rules:
34-
- if: "idf_version >=5.0"
35-
- if: "target != esp32h2"
36-
3729
espressif/esp_rcp_update:
3830
version: "1.2.0"
3931
rules:
@@ -44,3 +36,8 @@ dependencies:
4436
require: public
4537
rules:
4638
- if: "idf_version >=4.3"
39+
40+
espressif/esp_wifi_remote:
41+
version: ">=0.1.12"
42+
rules:
43+
- if: "target in [esp32p4]"

0 commit comments

Comments
 (0)