Skip to content

Commit

Permalink
Merge branch 'master' into docker_0.6.03
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 authored Oct 11, 2022
2 parents 217e615 + a7475d3 commit 7850e20
Show file tree
Hide file tree
Showing 309 changed files with 38,255 additions and 2,012 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/examples-k32w.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
--target k32w-light-ota-se \
--target k32w-light-release-no-ota \
--target k32w-lock-low-power-release \
--target k32w-contact-low-power-release \
--target k32w-shell-release \
build \
--copy-artifacts-to out/artifacts \
Expand All @@ -92,6 +93,13 @@ jobs:
k32w k32w0+release lock \
out/artifacts/k32w-lock-low-power-release/chip-k32w0x-lock-example \
/tmp/bloat_reports/
- name: Get contact size stats
timeout-minutes: 5
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
k32w k32w0+release contact \
out/artifacts/k32w-contact-low-power-release/chip-k32w0x-contact-example \
/tmp/bloat_reports/
- name: Uploading Size Reports
uses: actions/upload-artifact@v2
if: ${{ !env.ACT }}
Expand Down
6 changes: 2 additions & 4 deletions build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import("${build_root}/config/compiler/compiler.gni")
import("${build_root}/config/sysroot.gni")
import("${build_root}/config/target.gni")

if (current_os == "mac") {
if (current_os == "mac" || current_os == "ios") {
import("${build_root}/config/mac/mac_sdk.gni")
}

Expand Down Expand Up @@ -49,13 +49,11 @@ config("debug_default") {

config("abi_default") {
cflags = []
if (current_os == "mac") {
if (current_os == "mac" || current_os == "ios") {
cflags += [
"-target",
mac_target_triple,
]
} else if (current_os == "ios") {
# iOS ABI currently set by chip_xcode_build_connector.sh
}

if (current_os != "mac" && current_os != "ios") {
Expand Down
35 changes: 24 additions & 11 deletions build/config/mac/mac_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,34 @@
# See the License for the specific language governing permissions and
# limitations under the License.

_mac_deployment_target = "10.15"

if (current_cpu == "arm64") {
_mac_deployment_target = "11.0"
target_arch = current_cpu
if (current_cpu == "x86") {
target_arch = "i386"
} else if (current_cpu == "x64") {
target_arch = "x86_64"
} else if (current_cpu == "armv7") {
target_arch = "arm"
} else if (current_cpu == "arm64") {
target_arch = "arm64"
}

declare_args() {
# OS X version to target when compiling.
mac_deployment_target = _mac_deployment_target
target_sdk = "macos"
if (current_os != "mac") {
target_sdk = current_os
}

if (current_cpu == "x64") {
mac_target_arch = "x86_64"
deployment_target = "10.15"
if (current_os == "mac") {
if (current_cpu == "arm64") {
deployment_target = "11.0"
}
} else {
mac_target_arch = current_cpu
deployment_target = "13.4"
}

declare_args() {
# SDK version to target when compiling.
mac_deployment_target = target_sdk + deployment_target
}

mac_target_triple = "${mac_target_arch}-apple-macos${mac_deployment_target}"
mac_target_triple = "${target_arch}-apple-${mac_deployment_target}"
4 changes: 3 additions & 1 deletion build_overrides/boringssl.gni
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import("//build_overrides/chip.gni")

declare_args() {
# Root directory for BoringSSL
boringssl_root = "//third_party/boringssl/repo"
boringssl_root = "${chip_root}/third_party/boringssl/repo"
}
47 changes: 0 additions & 47 deletions config/esp32/components/chip/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,6 @@ menu "CHIP Core"

menu "Security Options"

config MAX_SESSION_KEYS
int "Max Session Keys"
range 0 65535
default 8
help
The maximum number of simultaneously active session keys.

menu "Debugging"

config SECURITY_TEST_MODE
Expand All @@ -193,17 +186,6 @@ menu "CHIP Core"
WARNING: This option makes it possible to circumvent basic CHIP security functionality,
including message encryption. Because of this it SHOULD NEVER BE ENABLED IN PRODUCTION BUILDS.

config DISABLE_PROVISIONING_AUTH
bool "Disable Provisioning Authentication Checks"
default n
help
Disable authentication checks for CHIP provisioning operations. This makes it possible to
perform device provisioning operations (e.g. adding a network or joining a fabric) without
establishing a secure session.

WARNING: This option makes it possible to circumvent basic CHIP security functionality.
Because of this it SHOULD NEVER BE ENABLED IN PRODUCTION BUILDS.

endmenu # "Debugging"

endmenu # "Security Options"
Expand Down Expand Up @@ -245,14 +227,6 @@ menu "CHIP Device Layer"
default 25
help
The maximum number of events that can be held in the CHIP Platform event queue.

config SERVICE_DIRECTORY_CACHE_SIZE
int "CHIP Service Directory Cache Size"
range 0 65535
default 512
help
The size (in bytes) of the service directory cache. This limits the maximum size of the directory
that can be returned in response to a service directory query.

config ENABLE_EXTENDED_DISCOVERY
bool "Enable Extended discovery Support"
Expand Down Expand Up @@ -570,18 +544,6 @@ menu "CHIP Device Layer"

endmenu

menu "CHIP Trait Manager"

config ENABLE_TRAIT_MANAGER
bool "Enable Trait Manager"
default y
help
Enable support for the CHIP Trait Manager.

The Trait Manager is an experimental feature of the CHIP Device Layer.

endmenu

menu "Time Sync Options"

config ENABLE_SERVICE_DIRECTORY_TIME_SYNC
Expand Down Expand Up @@ -811,15 +773,6 @@ menu "CHIP Device Layer"

This critical production event buffer must exist.

config EVENT_LOGGING_PROD_BUFFER_SIZE
int "Event Logging Production Buffer Size"
range 0 65535
default 2048
help
A size, in bytes, of the individual production event logging buffer.

This critical production event buffer must exist.

config EVENT_LOGGING_INFO_BUFFER_SIZE
int "Event Logging Info Buffer Size"
range 0 65535
Expand Down
7 changes: 7 additions & 0 deletions config/k32w/toolchain/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ arm_toolchain("k32w_lock_app") {
}
}

arm_toolchain("k32w_contact_sensor_app") {
toolchain_args = {
current_os = "freertos"
import("${chip_root}/examples/contact-sensor-app/nxp/k32w/k32w0/args.gni")
}
}

arm_toolchain("k32w_shell_app") {
toolchain_args = {
current_os = "freertos"
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-----BEGIN CERTIFICATE-----
MIICBzCCAa2gAwIBAgIHY3NhY2RrMTAKBggqhkjOPQQDAjBSMQwwCgYDVQQKDAND
U0ExLDAqBgNVBAMMI01hdHRlciBDZXJ0aWZpY2F0aW9uIGFuZCBUZXN0aW5nIENB
MRQwEgYKKwYBBAGConwCAQwEQzVBMDAgFw0yMjEwMDMxOTI4NTVaGA8yMDcyMDky
MDE5Mjg1NVowWDEMMAoGA1UECgwDQ1NBMTIwMAYDVQQDDClDZXJ0aWZpY2F0aW9u
IERlY2xhcmF0aW9uIFNpZ25pbmcgS2V5IDAwMTEUMBIGCisGAQQBgqJ8AgEMBEM1
QTAwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAATN7uk+RPi3K+PRqcB+IZaLmv/z
tAPwXhZp17Hlyu5vx3FLQufiNpXpLNdjVHOigK5ojze7lInhFim5uU/3sJkpo2Yw
ZDASBgNVHRMBAf8ECDAGAQH/AgEAMA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQU
/jQ/lZlHdjth7kU5ExM4SU/mfY4wHwYDVR0jBBgwFoAUl+Rp0MUEFMJvxwH3fpR3
OQmN9qUwCgYIKoZIzj0EAwIDSAAwRQIgEDWOcdKsVGtUh3evHbBd1lq4aS7yQtOp
6GrOQ3/zXBsCIQDxorh2RXSaI8m2RCcoWaiWa0nLzQepNm3C2jrQVJmC2Q==
-----END CERTIFICATE-----
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-----BEGIN CERTIFICATE-----
MIICCDCCAa2gAwIBAgIHY3NhY2RrMjAKBggqhkjOPQQDAjBSMQwwCgYDVQQKDAND
U0ExLDAqBgNVBAMMI01hdHRlciBDZXJ0aWZpY2F0aW9uIGFuZCBUZXN0aW5nIENB
MRQwEgYKKwYBBAGConwCAQwEQzVBMDAgFw0yMjEwMDMxOTM2NDZaGA8yMDcyMDky
MDE5MzY0NlowWDEMMAoGA1UECgwDQ1NBMTIwMAYDVQQDDClDZXJ0aWZpY2F0aW9u
IERlY2xhcmF0aW9uIFNpZ25pbmcgS2V5IDAwMjEUM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AUl+Rp0MUEFMJvxwH3fpR3
OQmN9qUwCgYIKoZIzj0EAwIDRwAwRAIgIFecbY+1mVVNqxH9+8IMB8+safdyIJU2
AqqtZ/w7AkQCIHiVlYTaCnJsnW5/cvj9GfIv7Eb0cjdmcAkrYGbnPQzX
-----END CERTIFICATE-----
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-----BEGIN CERTIFICATE-----
MIICBjCCAa2gAwIBAgIHY3NhY2RrNDAKBggqhkjOPQQDAjBSMQwwCgYDVQQKDAND
U0ExLDAqBgNVBAMMI01hdHRlciBDZXJ0aWZpY2F0aW9uIGFuZCBUZXN0aW5nIENB
MRQwEgYKKwYBBAGConwCAQwEQzVBMDAgFw0yMjEwMDMxOTQzMjFaGA8yMDcyMDky
MDE5NDMyMVowWDEMMAoGA1UECgwDQ1NBMTIwMAYDVQQDDClDZXJ0aWZpY2F0aW9u
IERlY2xhcmF0aW9uIFNpZ25pbmcgS2V5IDAwNDEUMBIGCisGAQQBgqJ8AgEMBEM1
QTAwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAR8/I2IEKic9PoZF3jyr+x4+FF6
l6Plf8ITutiI42EedP+2hL3rqKaLJSNKXDWPNzurm20wThMG3XYgpSjRFhwLo2Yw
ZDASBgNVHRMBAf8ECDAGAQH/AgEAMA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQU
9oYDo2kumBByQZ6h4as4VL13ldMwHwYDVR0jBBgwFoAUl+Rp0MUEFMJvxwH3fpR3
OQmN9qUwCgYIKoZIzj0EAwIDRwAwRAIgLqAfkbtLYYdmQsnbn0CWv3G1/lbE36nz
HbLbW5t6PY4CIE8oyIHsVhNSTPcb3mwRp+Vxhs8tKhbAdwv5BGgDaAHj
-----END CERTIFICATE-----
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-----BEGIN CERTIFICATE-----
MIICBzCCAa2gAwIBAgIHY3NhY2RrNTAKBggqhkjOPQQDAjBSMQwwCgYDVQQKDAND
U0ExLDAqBgNVBAMMI01hdHRlciBDZXJ0aWZpY2F0aW9uIGFuZCBUZXN0aW5nIENB
MRQwEgYKKwYBBAGConwCAQwEQzVBMDAgFw0yMjEwMDMxOTQ3MTVaGA8yMDcyMDky
MDE5NDcxNVowWDEMMAoGA1UECgwDQ1NBMTIwMAYDVQQDDClDZXJ0aWZpY2F0aW9u
IERlY2xhcmF0aW9uIFNpZ25pbmcgS2V5IDAwNTEUMBIGCisGAQQBgqJ8AgEMBEM1
QTAwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAARDilLGYqKm1yZH+V63UxNu5K4P
2zqpwWkxQms9CGf5EDrn16G4h+n4E6byb3a7zak1k3h8EneMqPKXXcRaIEL5o2Yw
ZDASBgNVHRMBAf8ECDAGAQH/AgEAMA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQU
Y38mNK1i6v5q9mLvuW9v0vy//C8wHwYDVR0jBBgwFoAUl+Rp0MUEFMJvxwH3fpR3
OQmN9qUwCgYIKoZIzj0EAwIDSAAwRQIhAM1HQpvkHKxLJByWaSYAPRZgh3Bis18W
AViq7c/mtzEAAiBZO0lVe6Qo9iQPIBWZaVx/S/YSNO9uKNa/pvFu3V+nIg==
-----END CERTIFICATE-----
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-----BEGIN CERTIFICATE-----
MIICATCCAaegAwIBAgIHY3Nhcm9vdDAKBggqhkjOPQQDAjBSMQwwCgYDVQQKDAND
U0ExLDAqBgNVBAMMI01hdHRlciBDZXJ0aWZpY2F0aW9uIGFuZCBUZXN0aW5nIENB
MRQwEgYKKwYBBAGConwCAQwEQzVBMDAgFw0yMjA3MDcxOTI4MDRaGA8yMTIyMDYx
MzE5MjgwNFowUjEMMAoGA1UECgwDQ1NBMSwwKgYDVQQDDCNNYXR0ZXIgQ2VydGlm
aWNhdGlvbiBhbmQgVGVzdGluZyBDQTEUMBIGCisGAQQBgqJ8AgEMBEM1QTAwWTAT
BgcqhkjOPQIBBggqhkjOPQMBBwNCAAQ4SjrDql2+y3IP5iEdPK1IYm/3EaCkkp+t
2GD44nf/wN4fPrYzejSEe1o6BW6ocQ6Td+7t7iUXA/3ZNQEly45Io2YwZDASBgNV
HRMBAf8ECDAGAQH/AgEBMA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUl+Rp0MUE
FMJvxwH3fpR3OQmN9qUwHwYDVR0jBBgwFoAUl+Rp0MUEFMJvxwH3fpR3OQmN9qUw
CgYIKoZIzj0EAwIDSAAwRQIgearlB0fCJ49UoJ6xwKPdlPEopCOL9jVCviODEleI
+mQCIQDvvDCKi7kvj4R4BoFS4BVZGCk4zJ84W4tfTTfu89lRbQ==
-----END CERTIFICATE-----
12 changes: 12 additions & 0 deletions credentials/development/cd-certs/Chip-Test-CD-Cert.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
-----BEGIN CERTIFICATE-----
MIIBszCCAVqgAwIBAgIIRdrzneR6oI8wCgYIKoZIzj0EAwIwKzEpMCcGA1UEAwwg
TWF0dGVyIFRlc3QgQ0QgU2lnbmluZyBBdXRob3JpdHkwIBcNMjEwNjI4MTQyMzQz
WhgPOTk5OTEyMzEyMzU5NTlaMCsxKTAnBgNVBAMMIE1hdHRlciBUZXN0IENEIFNp
Z25pbmcgQXV0aG9yaXR5MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEPDmJIkUr
VcrzicJb0bykZWlSzLkOiGkkmthHRlMBTL+V1oeWXgNrUhxRA35rjO3vyh60QEZp
T6CIgu7WUZ3suqNmMGQwEgYDVR0TAQH/BAgwBgEB/wIBATAOBgNVHQ8BAf8EBAMC
AQYwHQYDVR0OBBYEFGL6gjNZrPqplj4c+hQK3fUE83FgMB8GA1UdIwQYMBaAFGL6
gjNZrPqplj4c+hQK3fUE83FgMAoGCCqGSM49BAMCA0cAMEQCICxUXOTkV9im8NnZ
u+vW7OHd/n+MbZps83UyH8b6xxOEAiBUB3jodDlyUn7t669YaGIgtUB48s1OYqdq
58u5L/VMiw==
-----END CERTIFICATE-----
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"featureLevel": 80,
"featureLevel": 81,
"creator": "zap",
"keyValuePairs": [
{
Expand Down Expand Up @@ -275,7 +275,7 @@
],
"attributes": [
{
"name": "name support",
"name": "NameSupport",
"code": 0,
"mfgCode": null,
"side": "server",
Expand Down Expand Up @@ -8841,7 +8841,7 @@
],
"attributes": [
{
"name": "name support",
"name": "NameSupport",
"code": 0,
"mfgCode": null,
"side": "server",
Expand Down Expand Up @@ -20971,7 +20971,7 @@
],
"attributes": [
{
"name": "name support",
"name": "NameSupport",
"code": 0,
"mfgCode": null,
"side": "server",
Expand Down Expand Up @@ -24740,6 +24740,5 @@
"endpointVersion": 1,
"deviceIdentifier": 61442
}
],
"log": []
]
}
11 changes: 9 additions & 2 deletions examples/all-clusters-app/nrfconnect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ device works as a Thread Minimal End Device.
- [Flashing on the development kits](#nrfdks_flashing)
- [Flashing on the nRF52840 Dongle](#nrf52840dongle_flashing)
- [Testing the example](#testing-the-example)
- [Testing using CHIPTool](#testing-using-chiptool)
- [Testing using Linux CHIPTool](#testing-using-linux-chiptool)
- [Testing using Android CHIPTool](#testing-using-android-chiptool)

<hr>

Expand Down Expand Up @@ -427,7 +428,13 @@ to read more about flashing on the nRF52840 Dongle.
Check the [CLI tutorial](../../../docs/guides/nrfconnect_examples_cli.md) to
learn how to use command-line interface of the application.

### Testing using CHIPTool
### Testing using Linux CHIPTool

Read the [CHIP Tool user guide](../../../docs/guides/chip_tool_guide.md) to see
how to use [CHIP Tool for Linux or mac OS](../../chip-tool/README.md) to
commission and control the application within a Matter-enabled Thread network.

### Testing using Android CHIPTool

Read the
[Android commissioning guide](../../../docs/guides/nrfconnect_android_commissioning.md)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"featureLevel": 80,
"featureLevel": 81,
"creator": "zap",
"keyValuePairs": [
{
Expand Down Expand Up @@ -275,7 +275,7 @@
],
"attributes": [
{
"name": "name support",
"name": "NameSupport",
"code": 0,
"mfgCode": null,
"side": "server",
Expand Down Expand Up @@ -8691,7 +8691,7 @@
],
"attributes": [
{
"name": "name support",
"name": "NameSupport",
"code": 0,
"mfgCode": null,
"side": "server",
Expand Down Expand Up @@ -20747,7 +20747,7 @@
],
"attributes": [
{
"name": "name support",
"name": "NameSupport",
"code": 0,
"mfgCode": null,
"side": "server",
Expand Down
Loading

0 comments on commit 7850e20

Please sign in to comment.