Skip to content

Commit

Permalink
Merge branch 'project-chip:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
FernandoLGuzman authored Oct 12, 2022
2 parents 33c727a + 26dab6c commit 143e13e
Show file tree
Hide file tree
Showing 411 changed files with 42,558 additions and 6,619 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/examples-ameba.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,12 @@ jobs:
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform ameba
- name: Build example Ameba All Clusters App
run: scripts/run_in_build_env.sh "./scripts/build/build_examples.py --target-glob 'ameba-*' build"
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--target ameba-amebad-all-clusters \
--target ameba-amebad-all-clusters-minimal \
--target ameba-amebad-light \
--target ameba-amebad-pigweed \
build \
"
8 changes: 4 additions & 4 deletions .github/workflows/examples-bouffalolab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,17 @@ jobs:
timeout-minutes: 30
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --target bouffalolab-BL706-IoT-DVK-light build"
"./scripts/build/build_examples.py --target bouffalolab-bl706-iot-dvk-light build"
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py bl702 bl702 lighting-app \
out/bouffalolab-BL706-IoT-DVK-light/chip-bl702-lighting-example.out /tmp/bloat_reports/
out/bouffalolab-bl706-iot-dvk-light/chip-bl702-lighting-example.out /tmp/bloat_reports/
- name: Build example BL702 Lighting App with RPCs
timeout-minutes: 30
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --target bouffalolab-BL706-IoT-DVK-light-rpc build"
"./scripts/build/build_examples.py --target bouffalolab-bl706-iot-dvk-light-rpc build"
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py bl702 bl702+rpc lighting-app \
out/bouffalolab-BL706-IoT-DVK-light-rpc/chip-bl702-lighting-example.out /tmp/bloat_reports/
out/bouffalolab-bl706-iot-dvk-light-rpc/chip-bl702-lighting-example.out /tmp/bloat_reports/
- name: Uploading Size Reports
uses: actions/upload-artifact@v2
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/examples-cc13x2x7_26x2x7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,15 @@ jobs:
timeout-minutes: 60
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py --target-glob cc13x2x7_26x2x7* build \
./scripts/build/build_examples.py \
--target cc13x2x7_26x2x7-all-clusters-mtd \
--target cc13x2x7_26x2x7-all-clusters-minimal \
--target cc13x2x7_26x2x7-lock-ftd \
--target cc13x2x7_26x2x7-lock-mtd \
--target cc13x2x7_26x2x7-pump \
--target cc13x2x7_26x2x7-pump-controller \
--target cc13x2x7_26x2x7-shell \
build \
--copy-artifacts-to out/artifacts \
"
- name: Get lock FTD size stats
Expand Down Expand Up @@ -104,7 +112,7 @@ jobs:
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
cc13x2_26x2 LP_CC2652R7 all-clusters-app \
out/artifacts/cc13x2x7_26x2x7-all-clusters/chip-LP_CC2652R7-all-clusters-example.out \
out/artifacts/cc13x2x7_26x2x7-all-clusters-mtd/chip-LP_CC2652R7-all-clusters-example.out \
/tmp/bloat_reports/
- name: Get All Clusters Minimal App size stats
timeout-minutes: 5
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/examples-efr32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@ jobs:
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--enable-flashbundle \
--target-glob '*-brd4187c-{lock,light,switch,window-covering,unit-test}' \
--target efr32-brd4187c-window-covering \
--target efr32-brd4187c-switch \
--target efr32-brd4187c-unit-test \
--target efr32-brd4187c-light \
--target efr32-brd4187c-light-rpc \
--target efr32-brd4187c-lock-rpc \
build \
--copy-artifacts-to out/artifacts \
"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/examples-esp32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ jobs:
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--enable-flashbundle \
--target-glob '*-m5stack-{all-clusters,all-clusters-minimal,all-clusters-rpc-ipv6only}' \
--target esp32-m5stack-all-clusters \
--target esp32-m5stack-all-clusters-minimal \
--target esp32-m5stack-all-clusters-rpc-ipv6only \
build \
--copy-artifacts-to out/artifacts \
"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/examples-infineon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ jobs:
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--target-glob 'cyw30739-cyw930739m2evb_01-{light,lock,ota-requestor-no-progress-logging}' \
--target cyw30739-cyw930739m2evb_01-light \
--target cyw30739-cyw930739m2evb_01-lock \
--target cyw30739-cyw930739m2evb_01-ota-requestor-no-progress-logging \
build \
--copy-artifacts-to out/artifacts \
"
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/examples-k32w.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@ jobs:
run: |
scripts/run_in_build_env.sh "\
./scripts/build/build_examples.py \
--target k32w-light-ota-se \
--target k32w-light-release-no-ota \
--target k32w-lock-low-power-release \
--target k32w-shell-release \
--target k32w-light-no-ble-se05x \
--target k32w-light-no-ota \
--target k32w-lock-low-power-nologs \
--target k32w-contact-low-power-nologs \
--target k32w-shell \
build \
--copy-artifacts-to out/artifacts \
"
Expand All @@ -83,14 +84,21 @@ jobs:
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
k32w k32w0+release light \
out/artifacts/k32w-light-release-no-ota/chip-k32w0x-light-example \
out/artifacts/k32w-light-no-ota/chip-k32w0x-light-example \
/tmp/bloat_reports/
- name: Get lock size stats
timeout-minutes: 5
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
k32w k32w0+release lock \
out/artifacts/k32w-lock-low-power-release/chip-k32w0x-lock-example \
out/artifacts/k32w-lock-low-power-nologs/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-nologs/chip-k32w0x-contact-example \
/tmp/bloat_reports/
- name: Uploading Size Reports
uses: actions/upload-artifact@v2
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/examples-linux-arm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,26 +69,26 @@ jobs:
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--target linux-arm64-clang-all-clusters \
--target linux-arm64-clang-chip-tool-ipv6only \
--target linux-arm64-clang-lock \
--target linux-arm64-clang-minmdns \
--target linux-arm64-clang-thermostat-no-ble \
--target linux-arm64-all-clusters-clang \
--target linux-arm64-chip-tool-ipv6only-clang \
--target linux-arm64-lock-clang \
--target linux-arm64-minmdns-clang \
--target linux-arm64-thermostat-no-ble-clang \
build \
"
- name: Bloat report - chip-tool
timeout-minutes: 5
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
linux arm64 chip-tool-ipv6only \
out/linux-arm64-clang-chip-tool-ipv6only/chip-tool \
out/linux-arm64-chip-tool-ipv6only-clang/chip-tool \
/tmp/bloat_reports/
- name: Bloat report - thermostat
timeout-minutes: 5
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
linux arm64 thermostat-no-ble \
out/linux-arm64-clang-thermostat-no-ble/thermostat-app \
out/linux-arm64-thermostat-no-ble-clang/thermostat-app \
/tmp/bloat_reports/
- name: Uploading Size Reports
uses: actions/upload-artifact@v2
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/examples-linux-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ jobs:
timeout-minutes: 10
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --no-log-timestamps --target-glob '*-chip-cert' build"
"./scripts/build/build_examples.py --no-log-timestamps \
--target linux-x64-chip-cert \
--target linux-arm64-chip-cert \
build \
"
- name: Build minmdns example with platform dns
timeout-minutes: 10
run: |
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/examples-qpg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ jobs:
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--enable-flashbundle \
--target-glob 'qpg-{lock,light,shell,persistent-storage}' \
--target qpg-qpg6105-lock \
--target qpg-qpg6105-light \
--target qpg-qpg6105-shell \
--target qpg-qpg6105-persistent-storage \
build \
--copy-artifacts-to out/artifacts \
"
Expand All @@ -85,11 +88,11 @@ jobs:
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
qpg qpg6105+debug lighting-app \
out/qpg-light/chip-qpg6105-lighting-example.out \
out/qpg-qpg6105-light/chip-qpg6105-lighting-example.out \
/tmp/bloat_reports/
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
qpg qpg6105+debug lock-app \
out/qpg-lock/chip-qpg6105-lock-example.out \
out/qpg-qpg6105-lock/chip-qpg6105-lock-example.out \
/tmp/bloat_reports/
- name: Uploading Size Reports
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/examples-tizen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ jobs:
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--enable-flashbundle \
--target-glob 'tizen-*' \
--target tizen-arm-all-clusters \
--target tizen-arm-all-clusters-minimal-no-wifi \
--target chip-tool \
--target light \
--target light-no-ble-no-wifi \
build \
--copy-artifacts-to out/artifacts \
"
2 changes: 1 addition & 1 deletion .github/workflows/full-android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ jobs:
# - name: Build Android Studio build (arm64 only)
# run: |
# ./scripts/run_in_build_env.sh \
# "./scripts/build/build_examples.py --no-log-timestamps --target-glob 'android-androidstudio-arm64-chip-tool' build"
# "./scripts/build/build_examples.py --no-log-timestamps --target android-androidstudio-arm64-chip-tool build"
1 change: 1 addition & 0 deletions .restyled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ exclude:
- "src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm" # https://github.com/project-chip/connectedhomeip/issues/20236
- "src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h" # https://github.com/project-chip/connectedhomeip/issues/20236
- "examples/platform/nxp/k32w/k32w0/scripts/demo_generated_certs/**/*"
- "integrations/cloudbuild/*.yaml" # uglier long command line content


changed_paths:
Expand Down
12 changes: 0 additions & 12 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,6 @@
"base": "$gcc"
}
},
{
"label": "Build examples (glob)",
"type": "shell",
"command": "scripts/run_in_build_env.sh",
"args": [
"./scripts/build/build_examples.py --target-glob \"${input:exampleGlob}\" build"
],
"group": "build",
"problemMatcher": {
"base": "$gcc"
}
},
{
"label": "Main Build",
"type": "shell",
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"
}
Loading

0 comments on commit 143e13e

Please sign in to comment.