Skip to content

Commit 68caf63

Browse files
wy-hhrestyled-commitsandy31415
authored
[Bouffalo Lab] Cherry-pick: mfd, bl616, bl704l contact sensor, crash fixes, documents updates (#1)
* [Bouffalo Lab] Add a script to demonstrate mfd partition generation (project-chip#35192) * [Bouffalo Lab] Add a script to demonstrate mfd partition generation * fix restyle * fix restyle * fix lint code and spell * fix lint code and spell * revert changes on Makefile of doc * [bouffalo lab] fix crash issues in route hook and rpc uart driver mod… (project-chip#36944) * [bouffalo lab] fix crash issues in route hook and rpc uart driver modules * Restyled by clang-format --------- Co-authored-by: Restyled.io <commits@restyled.io> * [bouffalo lab] add bl616 lighting example with Wi-Fi and Thread suppo… (project-chip#36954) * [bouffalo lab] add bl616 lighting example with Wi-Fi and Thread supported * Restyled by gn --------- Co-authored-by: Restyled.io <commits@restyled.io> Co-authored-by: Andrei Litvin <andy314@gmail.com> * [bouffalo lab] add bl704l thread sed, low power, support on contact s… (project-chip#36953) * [bouffalo lab] add bl704l thread sed, low power, support on contact sensor example * update zap file * [bouffalo lab] Update Bouffalo Lab platform documents (project-chip#37067) * [bouffalo lab] Update bouffalo lab documents for contact sensor and new platform bl616 * Restyled by prettier-markdown * fix document references * Restyled by prettier-markdown --------- Co-authored-by: Restyled.io <commits@restyled.io> * change contact sensor zap to version 103 --------- Co-authored-by: Restyled.io <commits@restyled.io> Co-authored-by: Andrei Litvin <andy314@gmail.com>
1 parent 5d21af8 commit 68caf63

File tree

121 files changed

+16783
-574
lines changed

Some content is hidden

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

121 files changed

+16783
-574
lines changed

.github/workflows/examples-bouffalolab.yaml

+29-36
Original file line numberDiff line numberDiff line change
@@ -58,25 +58,15 @@ jobs:
5858
run: |
5959
./scripts/run_in_build_env.sh \
6060
"./scripts/build/build_examples.py \
61-
--target bouffalolab-bl602dk-light-easyflash \
62-
--target bouffalolab-bl602dk-light-mfd-littlefs \
63-
--target bouffalolab-bl602dk-light-rpc-115200-littlefs \
61+
--target bouffalolab-bl602dk-light-wifi-littlefs-mfd-rpc \
6462
build \
6563
--copy-artifacts-to out/artifacts \
6664
"
6765
- name: Prepare some bloat report from the previous builds
6866
run: |
6967
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
70-
bl602 bl602 lighting-app \
71-
out/artifacts/bouffalolab-bl602dk-light-easyflash/chip-bl602-lighting-example.out \
72-
/tmp/bloat_reports/
73-
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
74-
bl602 bl602+mfd lighting-app \
75-
out/artifacts/bouffalolab-bl602dk-light-mfd-littlefs/chip-bl602-lighting-example.out \
76-
/tmp/bloat_reports/
77-
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
78-
bl602 bl602+rpc lighting-app \
79-
out/artifacts/bouffalolab-bl602dk-light-rpc-115200-littlefs/chip-bl602-lighting-example.out \
68+
bl602 bl602+mfd+littlefs+rpc lighting-app \
69+
out/artifacts/bouffalolab-bl602dk-light-wifi-littlefs-mfd-rpc/chip-bl602-lighting-example.out \
8070
/tmp/bloat_reports/
8171
- name: Clean out build output
8272
run: rm -rf ./out
@@ -85,35 +75,25 @@ jobs:
8575
run: |
8676
./scripts/run_in_build_env.sh \
8777
"./scripts/build/build_examples.py \
88-
--target bouffalolab-bl706dk-light-easyflash \
89-
--target bouffalolab-bl706dk-light-mfd-littlefs \
90-
--target bouffalolab-bl706dk-light-ethernet-littlefs \
78+
--target bouffalolab-bl706dk-light-ethernet-easyflash \
9179
--target bouffalolab-bl706dk-light-wifi-littlefs \
92-
--target bouffalolab-bl706dk-light-rpc-115200-littlefs \
80+
--target bouffalolab-bl706dk-light-thread-littlefs-mfd-rpc \
9381
build \
9482
--copy-artifacts-to out/artifacts \
9583
"
9684
- name: Prepare some bloat report from the previous builds
9785
run: |
9886
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
99-
bl702 bl702 lighting-app \
100-
out/artifacts/bouffalolab-bl706dk-light-easyflash/chip-bl702-lighting-example.out \
101-
/tmp/bloat_reports/
102-
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
103-
bl702 bl702+mfd lighting-app \
104-
out/artifacts/bouffalolab-bl706dk-light-mfd-littlefs/chip-bl702-lighting-example.out \
105-
/tmp/bloat_reports/
106-
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
107-
bl702 bl706-eth lighting-app \
108-
out/artifacts/bouffalolab-bl706dk-light-ethernet-littlefs/chip-bl702-lighting-example.out \
87+
bl702 bl702+eth lighting-app \
88+
out/artifacts/bouffalolab-bl706dk-light-ethernet-easyflash/chip-bl702-lighting-example.out \
10989
/tmp/bloat_reports/
11090
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
111-
bl702 bl706-wifi lighting-app \
91+
bl702 bl702+wifi lighting-app \
11292
out/artifacts/bouffalolab-bl706dk-light-wifi-littlefs/chip-bl702-lighting-example.out \
11393
/tmp/bloat_reports/
11494
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
115-
bl702 bl702+rpc lighting-app \
116-
out/artifacts/bouffalolab-bl706dk-light-rpc-115200-littlefs/chip-bl702-lighting-example.out \
95+
bl702 bl706+mfd+rpc+littlefs lighting-app \
96+
out/artifacts/bouffalolab-bl706dk-light-thread-littlefs-mfd-rpc/chip-bl702-lighting-example.out \
11797
/tmp/bloat_reports/
11898
- name: Clean out build output
11999
run: rm -rf ./out
@@ -123,20 +103,33 @@ jobs:
123103
run: |
124104
./scripts/run_in_build_env.sh \
125105
"./scripts/build/build_examples.py \
126-
--target bouffalolab-bl704ldk-light-easyflash \
127-
--target bouffalolab-bl704ldk-light-mfd-littlefs \
106+
--target bouffalolab-bl704ldk-light-thread-littlefs-mfd \
128107
build \
129108
--copy-artifacts-to out/artifacts \
130109
"
131110
- name: Prepare some bloat report from the previous builds
132111
run: |
133112
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
134-
bl702l bl702l lighting-app \
135-
out/artifacts/bouffalolab-bl704ldk-light-easyflash/chip-bl702l-lighting-example.out \
113+
bl702l bl702l+mfd+littlefs lighting-app \
114+
out/artifacts/bouffalolab-bl704ldk-light-thread-littlefs-mfd/chip-bl702l-lighting-example.out \
136115
/tmp/bloat_reports/
116+
- name: Clean out build output
117+
run: rm -rf ./out
118+
119+
- name: Build example BL702L Contact Sensor
120+
timeout-minutes: 30
121+
run: |
122+
./scripts/run_in_build_env.sh \
123+
"./scripts/build/build_examples.py \
124+
--target bouffalolab-bl704ldk-contact-sensor-thread-mtd-littlefs-mfd \
125+
build \
126+
--copy-artifacts-to out/artifacts \
127+
"
128+
- name: Prepare some bloat report from the previous builds
129+
run: |
137130
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
138-
bl702l bl702l+mfd lighting-app \
139-
out/artifacts/bouffalolab-bl704ldk-light-mfd-littlefs/chip-bl702l-lighting-example.out \
131+
bl702l bl702l+mfd+littlefs contact-sensor-app \
132+
out/artifacts/bouffalolab-bl704ldk-contact-sensor-thread-mtd-littlefs-mfd/chip-bl702l-contact-sensor-example.out \
140133
/tmp/bloat_reports/
141134
- name: Clean out build output
142135
run: rm -rf ./out

config/bouffalolab/toolchain/riscv_toolchain.gni

+6-1
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,18 @@ import("//build_overrides/chip.gni")
1717

1818
import("//build_overrides/bouffalolab_iot_sdk.gni")
1919
import("${build_root}/toolchain/gcc_toolchain.gni")
20+
import("${chip_root}/src/platform/device.gni")
2021

2122
template("riscv_toolchain") {
2223
gcc_toolchain(target_name) {
2324
_tool_name_root = ""
2425

2526
if ("linux" == host_os) {
26-
_tool_name_root = "${bouffalolab_sdk_root}/toolchain/riscv/Linux/bin/riscv64-unknown-elf-"
27+
if (chip_device_platform == "bl616") {
28+
_tool_name_root = "${bouffalolab_sdk_root}/toolchain/t-head-riscv/gcc_t-head_v2.6.1/bin/riscv64-unknown-elf-"
29+
} else {
30+
_tool_name_root = "${bouffalolab_sdk_root}/toolchain/riscv/Linux/bin/riscv64-unknown-elf-"
31+
}
2732
} else if ("mac" == host_os || "darwin" == host_os) {
2833
_tool_name_root = "${bouffalolab_sdk_root}/toolchain/riscv/Darwin/bin/riscv64-unknown-elf-"
2934
}

0 commit comments

Comments
 (0)