Skip to content

Commit 6803606

Browse files
authored
Merge branch 'master' into feature/contribution-testplans-8
2 parents af84b2a + 8fea0ac commit 6803606

File tree

173 files changed

+1899
-559
lines changed

Some content is hidden

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

173 files changed

+1899
-559
lines changed

.github/workflows/chef.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
if: github.actor != 'restyled-io[bot]'
9797

9898
container:
99-
image: ghcr.io/project-chip/chip-build-esp32:172
99+
image: ghcr.io/project-chip/chip-build-esp32:174
100100
options: --user root
101101

102102
steps:
@@ -106,6 +106,16 @@ jobs:
106106
uses: ./.github/actions/checkout-submodules-and-bootstrap
107107
with:
108108
platform: esp32
109+
110+
# We cannot add esp-idf-kconfig==2.5.0 to rquirements.txt because it
111+
# will break the nuttx workflow which requires the older version of
112+
# the kconfiglib and esp-idf-kconfig==2.5.0 installs newer version
113+
# so, install it in in the virtual environment here
114+
- name: Install esp-idf-kconfig
115+
run: |
116+
./scripts/run_in_build_env.sh \
117+
"pip install esp-idf-kconfig==2.5.0"
118+
109119
- name: CI Examples ESP32
110120
shell: bash
111121
run: |

.github/workflows/examples-esp32.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ jobs:
5555
with:
5656
gh-context: ${{ toJson(github) }}
5757

58-
# Install esp-idf-kconfig==2.5.0 in the virtual environment here
59-
# so it will not affect other workflows
58+
# We cannot add esp-idf-kconfig==2.5.0 to rquirements.txt because it
59+
# will break the nuttx workflow which requires the older version of
60+
# the kconfiglib and esp-idf-kconfig==2.5.0 installs newer version
61+
# so, install it in in the virtual environment here
6062
- name: Install esp-idf-kconfig
6163
run: |
6264
./scripts/run_in_build_env.sh \
@@ -79,6 +81,9 @@ jobs:
7981
out/esp32-c3devkit-all-clusters/chip-all-clusters-app.elf \
8082
/tmp/bloat_reports/
8183
84+
- name: Remove built artifacts for all-clusters
85+
run: rm -rf out/esp32-c3devkit-all-clusters
86+
8287
- name: Prepare code pregen and ensure compile time pregen not possible
8388
run: |
8489
./scripts/run_in_build_env.sh "./scripts/codepregen.py ./zzz_pregenerated"
@@ -104,6 +109,9 @@ jobs:
104109
mv scripts/codegen.py.renamed scripts/codegen.py
105110
mv scripts/tools/zap/generate.py.renamed scripts/tools/zap/generate.py
106111
112+
- name: Remove built artifacts for all-clusters-minimal
113+
run: rm -rf out/esp32-m5stack-all-clusters-minimal
114+
107115
- name: Check for changed paths
108116
uses: dorny/paths-filter@v3
109117
id: changed_paths
@@ -139,6 +147,9 @@ jobs:
139147
--copy-artifacts-to out/artifacts \
140148
"
141149
150+
- name: Remove built artifacts for all-clusters-rpc-ipv6only
151+
run: rm -rf out/esp32-devkitc-all-clusters-rpc-ipv6only
152+
142153
- name: Build example Lighting App (Target:ESP32C6)
143154
run: scripts/examples/esp_example.sh lighting-app sdkconfig.wifi_thread.defaults esp32c6
144155

.restyled.yaml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -224,21 +224,12 @@ restylers:
224224
- "**/*.sh"
225225
- "**/*.bash"
226226
- name: autopep8
227-
image: restyled/restyler-autopep8:v2.3.1
228-
command:
229-
- autopep8
230-
- "--in-place"
231-
arguments: []
232-
include:
233-
- "**/*.py"
234-
interpreters:
235-
- python
227+
image: public.ecr.aws/restyled-io/restyler-autopep8:v2.3
236228
- name: isort
237-
image: restyled/restyler-isort:v5.11.2
229+
image: public.ecr.aws/restyled-io/restyler-isort:v7.0
230+
- name: ruff
231+
image: public.ecr.aws/restyled-io/restyler-ruff:v0.14
238232
command:
239-
- isort
240-
arguments: []
241-
include:
242-
- "**/*.py"
243-
interpreters:
244-
- python
233+
- ruff
234+
- check
235+
- --fix-only

credentials/fetch_paa_certs_from_dcl.py

100644100755
File mode changed.

examples/all-clusters-app/esp32/CMakeLists.txt

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -48,24 +48,30 @@ idf_build_set_property(COMPILE_OPTIONS "-Wno-error=maybe-uninitialized" APPEND)
4848

4949
flashing_script()
5050

51-
if (CONFIG_ENABLE_PW_RPC)
52-
get_filename_component(CHIP_ROOT ./third_party/connectedhomeip REALPATH)
53-
include(third_party/connectedhomeip/third_party/pigweed/repo/pw_build/pigweed.cmake)
54-
include($ENV{PW_ROOT}/pw_assert/backend.cmake)
55-
include($ENV{PW_ROOT}/pw_log/backend.cmake)
56-
include($ENV{PW_ROOT}/pw_sys_io/backend.cmake)
57-
include($ENV{PW_ROOT}/pw_trace/backend.cmake)
51+
if(CONFIG_ENABLE_PW_RPC)
52+
include(third_party/connectedhomeip/third_party/pigweed/repo/pw_build/pigweed.cmake)
53+
include($ENV{PW_ROOT}/pw_assert/backend.cmake)
54+
include($ENV{PW_ROOT}/pw_log/backend.cmake)
55+
include($ENV{PW_ROOT}/pw_sys_io/backend.cmake)
56+
include($ENV{PW_ROOT}/pw_trace/backend.cmake)
57+
include($ENV{PW_ROOT}/pw_interrupt/backend.cmake)
58+
include($ENV{PW_ROOT}/pw_sync/backend.cmake)
59+
include($ENV{PW_ROOT}/third_party/freertos/backend.cmake)
5860

59-
pw_set_module_config(pw_rpc_CONFIG pw_rpc.disable_global_mutex_config)
61+
pw_set_module_config(pw_rpc_CONFIG pw_rpc.disable_global_mutex_config)
6062

61-
pw_set_backend(pw_log pw_log_basic)
62-
pw_set_backend(pw_assert.check pw_assert_log.check_backend)
63-
pw_set_backend(pw_assert.assert pw_assert.assert_compatibility_backend)
64-
pw_set_backend(pw_sys_io pw_sys_io.esp32)
65-
pw_set_backend(pw_trace pw_trace_tokenized)
66-
67-
add_subdirectory(third_party/connectedhomeip/third_party/pigweed/repo)
68-
add_subdirectory(third_party/connectedhomeip/third_party/nanopb/repo)
69-
add_subdirectory(third_party/connectedhomeip/examples/platform/esp32/pw_sys_io)
63+
pw_set_backend(pw_log pw_log_basic)
64+
pw_set_backend(pw_assert.check pw_assert_log.check_backend)
65+
pw_set_backend(pw_assert.assert pw_assert.assert_compatibility_backend)
66+
pw_set_backend(pw_sys_io pw_sys_io.esp32)
67+
pw_set_backend(pw_trace pw_trace_tokenized)
68+
pw_set_backend(pw_interrupt.context pw_interrupt_freertos.context)
69+
pw_set_backend(pw_sync.interrupt_spin_lock pw_sync.esp32_interrupt_spin_lock)
70+
pw_set_backend(pw_sync.mutex pw_sync.esp32)
71+
pw_set_backend(pw_third_party.freertos idf::freertos)
7072

73+
add_subdirectory(third_party/connectedhomeip/third_party/pigweed/repo)
74+
add_subdirectory(third_party/connectedhomeip/third_party/nanopb/repo)
75+
add_subdirectory(third_party/connectedhomeip/examples/platform/esp32/pw_sys_io)
76+
add_subdirectory(third_party/connectedhomeip/examples/platform/esp32/pw_sync)
7177
endif(CONFIG_ENABLE_PW_RPC)

examples/all-clusters-app/esp32/sdkconfig_m5stack_rpc.defaults

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ CONFIG_EVENT_LOGGING_INFO_BUFFER_SIZE=512
9393
CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE=512
9494

9595
# Optimize Flash
96-
CONFIG_NEWLIB_NANO_FORMAT=y
96+
CONFIG_NEWLIB_NANO_FORMAT=y

examples/all-clusters-app/esp32/sdkconfig_rpc.defaults

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ CONFIG_EVENT_LOGGING_INFO_BUFFER_SIZE=512
9292
CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE=512
9393

9494
# Optimize Flash
95-
CONFIG_NEWLIB_NANO_FORMAT=y
95+
CONFIG_NEWLIB_NANO_FORMAT=y

examples/all-clusters-app/linux/entitlements/codesign.py

100644100755
File mode changed.

examples/all-clusters-app/linux/with_pw_rpc.gni

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ pw_rpc_system_server_BACKEND = "${chip_root}/config/linux/lib/pw_rpc:pw_rpc"
3030
dir_pw_third_party_nanopb = "${chip_root}/third_party/nanopb/repo"
3131
pw_chrono_SYSTEM_CLOCK_BACKEND = "$dir_pw_chrono_stl:system_clock"
3232
pw_sync_MUTEX_BACKEND = "$dir_pw_sync_stl:mutex_backend"
33+
pw_sync_INTERRUPT_SPIN_LOCK_BACKEND = "$dir_pw_sync_stl:interrupt_spin_lock"
3334
pw_thread_YIELD_BACKEND = "$dir_pw_thread_stl:yield"
3435
pw_thread_SLEEP_BACKEND = "$dir_pw_thread_stl:sleep"
3536

examples/all-clusters-minimal-app/linux/entitlements/codesign.py

100644100755
File mode changed.

0 commit comments

Comments
 (0)