-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into alvin_doorlock_9.5
- Loading branch information
Showing
492 changed files
with
19,329 additions
and
5,224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
#### Problem | ||
What is being fixed? Examples: | ||
* Fix crash on startup | ||
* Fixes #12345 Frobnozzle is leaky (exactly like that, so GitHub will auto-close the issue). | ||
#### Issue Being Resolved | ||
* Fixes #12345 (exactly like this, so this PR is associated with an issue) | ||
|
||
#### Change overview | ||
What's in this PR | ||
|
||
#### Testing | ||
How was this tested? (at least one bullet point required) | ||
* If unit tests were added, how do they cover this issue? | ||
* If unit tests existed, how were they fixed/modified to prevent this in future? | ||
* If new unit tests are not added, why not? | ||
* If integration tests were added, how do they verify this change? | ||
* If new integration tests are not added, why not? | ||
* If manually tested, what platforms controller and device platforms were manually tested, and how? | ||
* If no testing is required, why not? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# Copyright (c) 2020 Project CHIP Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: Build example - Bouffalolab BL702 | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
bl702: | ||
name: BL702 | ||
timeout-minutes: 90 | ||
|
||
runs-on: ubuntu-latest | ||
if: github.actor != 'restyled-io[bot]' | ||
|
||
container: | ||
image: connectedhomeip/chip-build:latest | ||
volumes: | ||
- "/tmp/bloat_reports:/tmp/bloat_reports" | ||
steps: | ||
- uses: Wandalen/[email protected] | ||
name: Checkout | ||
with: | ||
action: actions/checkout@v3 | ||
with: | | ||
token: ${{ github.token }} | ||
attempt_limit: 3 | ||
attempt_delay: 2000 | ||
- name: Checkout submodules | ||
run: scripts/checkout_submodules.py --shallow --platform bouffalolab | ||
|
||
- name: Set up environment for size reports | ||
if: ${{ !env.ACT }} | ||
env: | ||
GH_CONTEXT: ${{ toJson(github) }} | ||
run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" | ||
|
||
- name: Build example BL702 Lighting App | ||
timeout-minutes: 30 | ||
run: | | ||
./scripts/run_in_build_env.sh \ | ||
"./scripts/build/build_examples.py --target bouffalolab-BL706-IoT-DVK-BL706C-22-light build" | ||
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py bl702 bl702 lighting-app \ | ||
out/bouffalolab-BL706-IoT-DVK-BL706C-22-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-BL706C-22-light-rpc build" | ||
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py bl702 bl702+rpc lighting-app \ | ||
out/bouffalolab-BL706-IoT-DVK-BL706C-22-light-rpc/chip-bl702-lighting-example.out /tmp/bloat_reports/ | ||
- name: Uploading Size Reports | ||
uses: actions/upload-artifact@v2 | ||
if: ${{ !env.ACT }} | ||
with: | ||
name: Size,BL702-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }} | ||
path: | | ||
/tmp/bloat_reports/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
android: | ||
full_android: | ||
name: Run | ||
timeout-minutes: 75 | ||
|
||
|
@@ -40,14 +40,25 @@ jobs: | |
|
||
steps: | ||
- uses: Wandalen/[email protected] | ||
if: ${{ !env.ACT }} | ||
name: Checkout | ||
with: | ||
action: actions/checkout@v3 | ||
with: | | ||
submodules: true | ||
token: ${{ github.token }} | ||
attempt_limit: 3 | ||
attempt_delay: 2000 | ||
# To use act like: | ||
# act -j full_android | ||
# | ||
# Note you likely still need to have non submodules setup for the | ||
# local machine, like: | ||
# git submodule deinit --all | ||
- uses: actions/checkout@v3 | ||
if: ${{ env.ACT }} | ||
name: Checkout (ACT for local build) | ||
- name: Checkout submodules | ||
run: scripts/checkout_submodules.py --shallow --platform android | ||
- name: Bootstrap | ||
timeout-minutes: 10 | ||
run: scripts/build/gn_bootstrap.sh | ||
|
@@ -59,16 +70,38 @@ jobs: | |
path: | | ||
.environment/gn_out/.ninja_log | ||
.environment/pigweed-venv/*.log | ||
- name: Build Android CHIPTool and CHIPTest (ARM) | ||
- name: Build Android arm-chip-tool | ||
run: | | ||
./scripts/run_in_build_env.sh \ | ||
"./scripts/build/build_examples.py --no-log-timestamps --target-glob 'android-arm-*' build" | ||
"./scripts/build/build_examples.py --no-log-timestamps --target android-arm-chip-tool build" | ||
- name: Clean out build output | ||
run: rm -rf ./out | ||
- name: Build Android CHIPTool and CHIPTest (ARM64) | ||
- name: Build Android arm-tv-casting-app | ||
run: | | ||
./scripts/run_in_build_env.sh \ | ||
"./scripts/build/build_examples.py --no-log-timestamps --target-glob 'android-arm64-*' build" | ||
"./scripts/build/build_examples.py --no-log-timestamps --target android-arm-tv-casting-app build" | ||
- name: Clean out build output | ||
run: rm -rf ./out | ||
- name: Build Android arm-tv-server | ||
run: | | ||
./scripts/run_in_build_env.sh \ | ||
"./scripts/build/build_examples.py --no-log-timestamps --target android-arm-tv-server build" | ||
- name: Clean out build output | ||
run: rm -rf ./out | ||
- name: Build Android arm64-tv-casting-app | ||
run: | | ||
./scripts/run_in_build_env.sh \ | ||
"./scripts/build/build_examples.py --no-log-timestamps --target android-arm64-tv-casting-app build" | ||
- name: Clean out build output | ||
run: rm -rf ./out | ||
- name: Build Android arm64-tv-server | ||
run: | | ||
./scripts/run_in_build_env.sh \ | ||
"./scripts/build/build_examples.py --no-log-timestamps --target android-arm64-tv-server build" | ||
- name: Build Android arm64-chip-tool | ||
run: | | ||
./scripts/run_in_build_env.sh \ | ||
"./scripts/build/build_examples.py --no-log-timestamps --target android-arm64-chip-tool build" | ||
- name: Run Android build rule tests | ||
run: | | ||
./scripts/run_in_build_env.sh \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright (c) 2021 Project CHIP Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
declare_args() { | ||
# Root directory for bl602 SDK build files. | ||
bl602_sdk_build_root = "//third_party/bouffalolab/bl602" | ||
|
||
# Root directory for bl702 SDK build files. | ||
bl702_sdk_build_root = "//third_party/bouffalolab/bl702" | ||
|
||
# Root directory of toolchain of Bouffalolab chips | ||
bouffalolab_toolchain = "//third_party/bouffalolab/repo/toolchain/riscv" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Copyright (c) 2021 Project CHIP Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import("//build_overrides/chip.gni") | ||
import("//build_overrides/pigweed.gni") | ||
import("$dir_pw_build/target_types.gni") | ||
|
||
config("pw_string_config") { | ||
defines = [ | ||
"_GLIBCXX_USE_C99_MATH_TR1", | ||
"_LDBL_EQ_DBL", | ||
] | ||
} | ||
|
||
pw_source_set("pw_string_dep") { | ||
public_configs = [ ":pw_string_config" ] | ||
} | ||
|
||
static_library("pw_rpc") { | ||
output_name = "libPwRpc" | ||
|
||
public_configs = [ "${dir_pigweed}/pw_hdlc:default_config" ] | ||
|
||
public_deps = [ | ||
"$dir_pw_rpc:server", | ||
"$dir_pw_rpc/nanopb:echo_service", | ||
"${chip_root}/examples/platform/bouffalolab/bl702/pw_sys_io:pw_sys_io_bl702", | ||
"${dir_pigweed}/pw_hdlc:pw_rpc", | ||
dir_pw_assert, | ||
dir_pw_checksum, | ||
dir_pw_hdlc, | ||
dir_pw_log, | ||
] | ||
|
||
output_dir = "${root_out_dir}/lib" | ||
} |
Oops, something went wrong.