Skip to content

Commit

Permalink
Merge branch 'master' into feature/add-debug-prints-rs911x
Browse files Browse the repository at this point in the history
  • Loading branch information
brosahay authored Jan 21, 2025
2 parents e24f909 + f4c9198 commit 6138da0
Show file tree
Hide file tree
Showing 47 changed files with 149 additions and 32 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,18 @@ jobs:
export TEST_RUNNER_ASAN_OPTIONS=__CURRENT_VALUE__:detect_stack_use_after_return=1
# Disable BLE (CHIP_IS_BLE=NO) because the app does not have the permission to use it and that may crash the CI.
xcodebuild test -target "Matter" -scheme "Matter Framework Tests" -sdk macosx ${{ matrix.options.arguments }} \
xcodebuild test -target "Matter" -scheme "Matter Framework Tests" \
-resultBundlePath /tmp/darwin/framework-tests/TestResults.xcresult \
-sdk macosx ${{ matrix.options.arguments }} \
CHIP_IS_BLE=NO GCC_PREPROCESSOR_DEFINITIONS='${inherited} ${{ matrix.options.defines }}' \
> >(tee /tmp/darwin/framework-tests/darwin-tests.log) 2> >(tee /tmp/darwin/framework-tests/darwin-tests-err.log >&2)
- name: Generate Summary
if: always()
working-directory: /tmp
run: |
wget /~https://github.com/a7ex/xcresultparser/releases/download/1.8.4/xcresultparser.zip
unzip -j xcresultparser.zip
./xcresultparser --output-format md --failed-tests-only /tmp/darwin/framework-tests/TestResults.xcresult >>"$GITHUB_STEP_SUMMARY"
- name: Collect crash logs
if: failure() && !env.ACT
run: |
Expand Down
2 changes: 2 additions & 0 deletions examples/common/tracing/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ source_set("trace_handlers_decoder") {

deps = [
":trace_handlers",
"${chip_root}/src/app/common:cluster-objects",
"${chip_root}/src/lib",
"${chip_root}/src/lib/core:types",
]
Expand Down Expand Up @@ -123,6 +124,7 @@ executable("chip-trace-decoder") {
deps = [ "${chip_root}/src/platform/logging:stdio" ]

public_deps = [
"${chip_root}/src/app/common:cluster-objects",
"${chip_root}/src/lib",
"${chip_root}/src/lib/core:types",
"${chip_root}/third_party/jsoncpp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ static_library("ESP32_custom") {
]

deps = [
"${chip_root}/src/app:app_config",
"${chip_root}/src/lib/dnssd:platform_header",
"${chip_root}/src/platform/logging:headers",
"${chip_root}/src/setup_payload",
Expand Down
2 changes: 2 additions & 0 deletions src/access/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ source_set("types") {

public_deps = [
":access_config",
"${chip_root}/src/app:app_config",
"${chip_root}/src/lib/core",
"${chip_root}/src/lib/core:types",
]
Expand Down Expand Up @@ -76,6 +77,7 @@ static_library("access") {
"AccessRestrictionProvider.cpp",
"AccessRestrictionProvider.h",
]
public_deps += [ "${chip_root}/src/app/common:cluster-objects" ]
}
}

Expand Down
3 changes: 3 additions & 0 deletions src/app/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ static_library("interaction-model") {
":event-reporter",
":paths",
":subscription-info-provider",
"${chip_root}/src/access",
"${chip_root}/src/app/MessageDef",
"${chip_root}/src/app/data-model-provider",
"${chip_root}/src/app/icd/server:icd-server-config",
Expand Down Expand Up @@ -350,6 +351,7 @@ source_set("status-response") {
":constants",
"${chip_root}/src/app/MessageDef",
"${chip_root}/src/messaging",
"${chip_root}/src/protocols/interaction_model",
]
}

Expand Down Expand Up @@ -387,6 +389,7 @@ source_set("command-handler-impl") {
":status-response",
"${chip_root}/src/access:types",
"${chip_root}/src/app/MessageDef",
"${chip_root}/src/app/common:cluster-objects",
"${chip_root}/src/app/data-model",
"${chip_root}/src/app/data-model-provider",
"${chip_root}/src/app/util:callbacks",
Expand Down
1 change: 1 addition & 0 deletions src/app/MessageDef/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ source_set("MessageDef") {
"${chip_root}/src/app:constants",
"${chip_root}/src/app:events",
"${chip_root}/src/app:paths",
"${chip_root}/src/app/data-model",
"${chip_root}/src/lib/core",
"${chip_root}/src/lib/support",
"${chip_root}/src/protocols/interaction_model",
Expand Down
1 change: 1 addition & 0 deletions src/app/data-model-provider/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ source_set("data-model-provider") {
"${chip_root}/src/app:events",
"${chip_root}/src/app:paths",
"${chip_root}/src/app/MessageDef",
"${chip_root}/src/app/common:cluster-objects",
"${chip_root}/src/app/data-model",
"${chip_root}/src/lib/core",
"${chip_root}/src/lib/core:error",
Expand Down
1 change: 1 addition & 0 deletions src/app/icd/server/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ source_set("manager") {
":observer",
"${chip_root}/src/app:subscription-info-provider",
"${chip_root}/src/app:test-event-trigger",
"${chip_root}/src/app/common:ids",
"${chip_root}/src/credentials:credentials",
"${chip_root}/src/lib/address_resolve:address_resolve",
"${chip_root}/src/messaging",
Expand Down
1 change: 1 addition & 0 deletions src/app/util/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ source_set("af-types") {
deps = [
":types",
"${chip_root}/src/app:paths",
"${chip_root}/src/app/common:cluster-objects",
"${chip_root}/src/app/data-model",
"${chip_root}/src/messaging",
"${chip_root}/src/protocols/interaction_model",
Expand Down
1 change: 1 addition & 0 deletions src/credentials/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ static_library("credentials") {

public_deps = [
":build_time_header",
"${chip_root}/src/app/util:types",
"${chip_root}/src/controller:delegates",
"${chip_root}/src/crypto",
"${chip_root}/src/lib/asn1",
Expand Down
1 change: 1 addition & 0 deletions src/lib/support/tests/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ chip_test_suite("tests") {
]

public_deps = [
"${chip_root}/src/app/common:cluster-objects",
"${chip_root}/src/credentials",
"${chip_root}/src/lib/core",
"${chip_root}/src/lib/core:string-builder-adapters",
Expand Down
4 changes: 2 additions & 2 deletions src/platform/ASR/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ import("${chip_root}/src/platform/device.gni")
assert(chip_device_platform == "asr")

static_library("ASR") {
sources = []
sources += [
sources = [
"../SingletonConfigurationManager.cpp",
"ASRConfig.cpp",
"ASRConfig.h",
Expand Down Expand Up @@ -72,6 +71,7 @@ static_library("ASR") {
]

deps = [
"${chip_root}/src/app:app_config",
"${chip_root}/src/lib/dnssd:platform_header",
"${chip_root}/src/platform/logging:headers",
"${chip_root}/src/setup_payload",
Expand Down
1 change: 1 addition & 0 deletions src/platform/Ameba/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ static_library("Ameba") {
]

deps = [
"${chip_root}/src/app:app_config",
"${chip_root}/src/lib/dnssd:platform_header",
"${chip_root}/src/platform/logging:headers",
"${chip_root}/src/setup_payload",
Expand Down
3 changes: 2 additions & 1 deletion src/platform/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,8 @@ if (chip_device_platform != "none") {

public_deps = [
":platform_base",
"${chip_root}/src/app/common:cluster-objects",
"${chip_root}/src/app/common:ids",
"${chip_root}/src/app/util:types",
"${chip_root}/src/crypto",
"${chip_root}/src/lib/support",
]
Expand Down
4 changes: 1 addition & 3 deletions src/platform/Beken/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ static_library("Beken") {
"ConfigurationManagerImpl.h",
"ConnectivityManagerImpl.cpp",
"ConnectivityManagerImpl.h",

#"DeviceInfoProviderImpl.cpp",
#"DeviceInfoProviderImpl.h",
"DiagnosticDataProviderImpl.cpp",
"DiagnosticDataProviderImpl.h",
"KeyValueStoreManagerImpl.cpp",
Expand All @@ -50,6 +47,7 @@ static_library("Beken") {
]

deps = [
"${chip_root}/src/app:app_config",
"${chip_root}/src/lib/dnssd:platform_header",
"${chip_root}/src/platform/logging:headers",
"${chip_root}/src/setup_payload",
Expand Down
1 change: 1 addition & 0 deletions src/platform/Darwin/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ static_library("Darwin") {
deps = [
":logging",
":tracing",
"${chip_root}/src/app:app_config",
"${chip_root}/src/lib/dnssd:platform_header",
"${chip_root}/src/platform/logging:headers",
"${chip_root}/src/setup_payload",
Expand Down
9 changes: 9 additions & 0 deletions src/platform/ESP32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ static_library("ESP32") {
]

deps = [
"${chip_root}/src/app:app_config",
"${chip_root}/src/lib/dnssd:platform_header",
"${chip_root}/src/platform/logging:headers",
"${chip_root}/src/setup_payload",
Expand Down Expand Up @@ -123,6 +124,13 @@ static_library("ESP32") {
"NetworkCommissioningDriver.cpp",
"NetworkCommissioningDriver.h",
]

# TODO: this is NOT ok, however we added a layering dependecy
# in NetworkCommissioningDriver accessing app/InteractionModelEngine.h
#
# Should be removed after /~https://github.com/project-chip/connectedhomeip/issues/37126
# is fixed
deps += [ "${chip_root}/src/access:access_config" ]
}

if (chip_mdns == "platform") {
Expand Down Expand Up @@ -166,6 +174,7 @@ static_library("ESP32") {
"ThreadStackManagerImpl.cpp",
"ThreadStackManagerImpl.h",
]
deps += [ "${chip_root}/src/app:app_config" ]
if (chip_mdns == "platform") {
sources += [
"../OpenThread/OpenThreadDnssdImpl.cpp",
Expand Down
1 change: 1 addition & 0 deletions src/platform/Infineon/CYW30739/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ static_library("CYW30739") {
]

deps = [
"${chip_root}/src/app:app_config",
"${chip_root}/src/crypto",
"${matter_wpan_sdk_build_root}:wpan_sdk",
]
Expand Down
1 change: 1 addition & 0 deletions src/platform/Infineon/PSOC6/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ static_library("PSOC6") {
]

deps = [
"${chip_root}/src/app:app_config",
"${chip_root}/src/lib/dnssd:platform_header",
"${chip_root}/src/platform/logging:headers",
"${chip_root}/src/setup_payload",
Expand Down
2 changes: 2 additions & 0 deletions src/platform/Linux/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ static_library("Linux") {
]

deps = [
"${chip_root}/src/app:app_config",
"${chip_root}/src/app/icd/server:icd-server-config",
"${chip_root}/src/credentials:credentials_header",
"${chip_root}/src/setup_payload",
Expand Down Expand Up @@ -134,6 +135,7 @@ static_library("Linux") {
"ThreadStackManagerImpl.h",
]

deps += [ "${chip_root}/src/app:app_config" ]
public_deps += [ "dbus/openthread" ]
}

Expand Down
2 changes: 2 additions & 0 deletions src/platform/NuttX/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ static_library("NuttX") {
]

deps = [
"${chip_root}/src/app:app_config",
"${chip_root}/src/app/icd/server:icd-server-config",
"${chip_root}/src/credentials:credentials_header",
"${chip_root}/src/setup_payload",
Expand Down Expand Up @@ -132,6 +133,7 @@ static_library("NuttX") {
"ThreadStackManagerImpl.h",
]

deps += [ "${chip_root}/src/app:app_config" ]
public_deps += [ "dbus/openthread" ]
}

Expand Down
2 changes: 2 additions & 0 deletions src/platform/Tizen/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ static_library("Tizen") {
deps = [ "${chip_root}/src/setup_payload" ]

public_deps = [
"${chip_root}/src/app:app_config",
"${chip_root}/src/platform:platform_base",
"${chip_root}/src/platform/logging:headers",
"${tizen_root}:tizen",
Expand Down Expand Up @@ -100,6 +101,7 @@ static_library("Tizen") {
"ThreadStackManagerImpl.cpp",
"ThreadStackManagerImpl.h",
]
deps += [ "${chip_root}/src/app:app_config" ]
}

if (chip_enable_wifi) {
Expand Down
6 changes: 5 additions & 1 deletion src/platform/Zephyr/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,18 @@ static_library("Zephyr") {
]

public_deps = [ "${chip_root}/src/platform:platform_base" ]
deps = [ "${chip_root}/src/platform/logging:headers" ]
deps = [
"${chip_root}/src/app:app_config",
"${chip_root}/src/platform/logging:headers",
]

if (chip_enable_openthread) {
sources += [
"../OpenThread/OpenThreadUtils.cpp",
"ThreadStackManagerImpl.cpp",
"ThreadStackManagerImpl.h",
]
deps += [ "${chip_root}/src/app:app_config" ]

if (chip_mdns == "platform") {
sources += [
Expand Down
1 change: 1 addition & 0 deletions src/platform/android/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ static_library("android") {

deps = [
":tracing",
"${chip_root}/src/app:app_config",
"${chip_root}/src/lib/dnssd:platform_header",
"${chip_root}/src/setup_payload",
]
Expand Down
1 change: 1 addition & 0 deletions src/platform/bouffalolab/BL602/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ static_library("BL602") {
}

deps = [
"${chip_root}/src/app:app_config",
"${chip_root}/src/credentials:credentials_header",
"${chip_root}/src/lib/dnssd:platform_header",
"${chip_root}/src/platform/logging:headers",
Expand Down
6 changes: 5 additions & 1 deletion src/platform/bouffalolab/BL616/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ static_library("BL616") {
}

deps = [
"${chip_root}/src/app:app_config",
"${chip_root}/src/credentials:credentials_header",
"${chip_root}/src/platform/logging:headers",
]
Expand All @@ -86,7 +87,10 @@ static_library("BL616") {

import("//build_overrides/bouffalolab_iot_sdk.gni")
import("${bouffalolab_iot_sdk_build_root}/bl616/bouffalo_sdk.gni")
deps += [ "${bouffalolab_iot_sdk_build_root}/bl616:bouffalo_sdk" ]
deps += [
"${bouffalolab_iot_sdk_build_root}/bl616:bouffalo_sdk",
"${chip_root}/src/app:app_config",
]

sources += [
"../../OpenThread/OpenThreadUtils.cpp",
Expand Down
10 changes: 8 additions & 2 deletions src/platform/bouffalolab/BL702/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ static_library("BL702") {

import("//build_overrides/bouffalolab_iot_sdk.gni")
import("${bouffalolab_iot_sdk_build_root}/bl702/bl_iot_sdk.gni")
deps += [ "${bouffalolab_iot_sdk_build_root}/bl702:bl_iot_sdk" ]
deps += [
"${bouffalolab_iot_sdk_build_root}/bl702:bl_iot_sdk",
"${chip_root}/src/app:app_config",
]

sources += [
"../../OpenThread/OpenThreadUtils.cpp",
Expand All @@ -116,7 +119,10 @@ static_library("BL702") {
"EthernetInterface.c",
]

deps += [ "${chip_root}/src/lib/dnssd:platform_header" ]
deps += [
"${chip_root}/src/app:app_config",
"${chip_root}/src/lib/dnssd:platform_header",
]
}

public_deps = [ "${chip_root}/src/platform:platform_base" ]
Expand Down
6 changes: 5 additions & 1 deletion src/platform/bouffalolab/BL702L/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ static_library("BL702L") {
}

deps = [
"${chip_root}/src/app:app_config",
"${chip_root}/src/credentials:credentials_header",
"${chip_root}/src/platform/logging:headers",
]
Expand All @@ -79,7 +80,10 @@ static_library("BL702L") {

import("//build_overrides/bouffalolab_iot_sdk.gni")
import("${bouffalolab_iot_sdk_build_root}/bl702l/bl_iot_sdk.gni")
deps += [ "${bouffalolab_iot_sdk_build_root}/bl702l:bl_iot_sdk" ]
deps += [
"${bouffalolab_iot_sdk_build_root}/bl702l:bl_iot_sdk",
"${chip_root}/src/app:app_config",
]

sources += [
"../../OpenThread/OpenThreadUtils.cpp",
Expand Down
Loading

0 comments on commit 6138da0

Please sign in to comment.