Skip to content

Commit

Permalink
add bl616 and bl704l contact sensor support
Browse files Browse the repository at this point in the history
  • Loading branch information
wy-hh committed Jan 3, 2025
1 parent 8ea6b8d commit a0a48d2
Show file tree
Hide file tree
Showing 116 changed files with 14,890 additions and 1,070 deletions.
30 changes: 24 additions & 6 deletions .github/workflows/examples-bouffalolab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ jobs:
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--target bouffalolab-bl602dk-light-mfd-littlefs-rpc-115200 \
--target bouffalolab-bl602dk-light-wifi-littlefs-mfd-rpc \
build \
--copy-artifacts-to out/artifacts \
"
- name: Prepare some bloat report from the previous builds
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
bl602 bl602+mfd+littlefs+rpc lighting-app \
out/artifacts/bouffalolab-bl602dk-light-mfd-littlefs-rpc-115200/chip-bl602-lighting-example.out \
out/artifacts/bouffalolab-bl602dk-light-wifi-littlefs-mfd-rpc/chip-bl602-lighting-example.out \
/tmp/bloat_reports/
- name: Clean out build output
run: rm -rf ./out
Expand All @@ -77,7 +77,7 @@ jobs:
"./scripts/build/build_examples.py \
--target bouffalolab-bl706dk-light-ethernet-easyflash \
--target bouffalolab-bl706dk-light-wifi-littlefs \
--target bouffalolab-bl706dk-light-mfd-rpc-littlefs-115200 \
--target bouffalolab-bl706dk-light-thread-littlefs-mfd-rpc \
build \
--copy-artifacts-to out/artifacts \
"
Expand All @@ -93,7 +93,7 @@ jobs:
/tmp/bloat_reports/
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
bl702 bl706+mfd+rpc+littlefs lighting-app \
out/artifacts/bouffalolab-bl706dk-light-mfd-rpc-littlefs-115200/chip-bl702-lighting-example.out \
out/artifacts/bouffalolab-bl706dk-light-thread-littlefs-mfd-rpc/chip-bl702-lighting-example.out \
/tmp/bloat_reports/
- name: Clean out build output
run: rm -rf ./out
Expand All @@ -103,15 +103,33 @@ jobs:
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--target bouffalolab-bl704ldk-light-mfd-littlefs \
--target bouffalolab-bl704ldk-light-thread-littlefs-mfd \
build \
--copy-artifacts-to out/artifacts \
"
- name: Prepare some bloat report from the previous builds
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
bl702l bl702l+mfd+littlefs lighting-app \
out/artifacts/bouffalolab-bl704ldk-light-mfd-littlefs/chip-bl702l-lighting-example.out \
out/artifacts/bouffalolab-bl704ldk-light-thread-littlefs-mfd/chip-bl702l-lighting-example.out \
/tmp/bloat_reports/
- name: Clean out build output
run: rm -rf ./out

- name: Build example BL702L Contact Sensor
timeout-minutes: 30
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--target bouffalolab-bl704ldk-contact-sensor-thread-mtd-littlefs-mfd \
build \
--copy-artifacts-to out/artifacts \
"
- name: Prepare some bloat report from the previous builds
run: |
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
bl702l bl702l+mfd+littlefs lighting-app \
out/artifacts/bouffalolab-bl704ldk-contact-sensor-thread-mtd-littlefs-mfd/chip-bl702l-contact-sensor-example.out \
/tmp/bloat_reports/
- name: Clean out build output
run: rm -rf ./out
Expand Down
7 changes: 6 additions & 1 deletion config/bouffalolab/toolchain/riscv_toolchain.gni
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,18 @@ import("//build_overrides/chip.gni")

import("//build_overrides/bouffalolab_iot_sdk.gni")
import("${build_root}/toolchain/gcc_toolchain.gni")
import("${chip_root}/src/platform/device.gni")

template("riscv_toolchain") {
gcc_toolchain(target_name) {
_tool_name_root = ""

if ("linux" == host_os) {
_tool_name_root = "${bouffalolab_sdk_root}/toolchain/riscv/Linux/bin/riscv64-unknown-elf-"
if (chip_device_platform == "bl616") {
_tool_name_root = "${bouffalolab_sdk_root}/toolchain/t-head-riscv/gcc_t-head_v2.6.1/bin/riscv64-unknown-elf-"
} else {
_tool_name_root = "${bouffalolab_sdk_root}/toolchain/riscv/Linux/bin/riscv64-unknown-elf-"
}
} else if ("mac" == host_os || "darwin" == host_os) {
_tool_name_root = "${bouffalolab_sdk_root}/toolchain/riscv/Darwin/bin/riscv64-unknown-elf-"
}
Expand Down
Loading

0 comments on commit a0a48d2

Please sign in to comment.