-
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.
* BL602 pull request * [BL602] delete README.pdf, restyled README.md, add items for include config check * [BL602] Rebase code to fix compile errors * BL602 pull request * [BL602] delete README.pdf, restyled README.md, add items for include config check * [BL602] Update compile cmds * [BL602] Fix compile error, and update submodule * [BL602] Update compile errors * [BL602] Update lwip build, add bouffalolab to world list * [BL602] Update test action * Restyled by clang-format * Restyled by gn * Restyled by prettier-markdown * Restyled by autopep8 * [BL602] Update action data * [BL602] Update lwipconfig, and fix action errors * Restyled by clang-format * [BL602] Fix check error Co-authored-by: Restyled.io <[email protected]>
- Loading branch information
1 parent
a208c3d
commit 3666138
Showing
117 changed files
with
12,865 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1451,3 +1451,4 @@ localedef | |
nameserver | ||
nmcli | ||
tsan | ||
bouffalolab |
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,64 @@ | ||
# 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. | ||
|
||
import("//build_overrides/build.gni") | ||
|
||
if (current_cpu == "riscv") { | ||
declare_args() { | ||
# Build file to import for RISCV defaults. | ||
riscv_platform_config = "" | ||
} | ||
|
||
# Allow platforms to override how RISCV architecture flags are chosen by | ||
# providing a file to import. | ||
if (riscv_platform_config != "") { | ||
_platform_defaults = { | ||
import(riscv_platform_config) | ||
} | ||
} | ||
|
||
_defaults = { | ||
riscv_arch = "" | ||
riscv_cpu = "" | ||
riscv_tune = "" | ||
riscv_fpu = "" | ||
riscv_float_abi = "" | ||
riscv_abi = "" | ||
|
||
# Update defaults with platform values, if any. | ||
if (riscv_platform_config != "") { | ||
forward_variables_from(_platform_defaults, "*") | ||
} | ||
} | ||
|
||
declare_args() { | ||
# RISCV architecture (value for -march flag). | ||
riscv_arch = _defaults.riscv_arch | ||
|
||
# RISCV CPU (value for -mcpu flag). | ||
riscv_cpu = _defaults.riscv_cpu | ||
|
||
# RISCV tuning (value for -mtune flag). | ||
riscv_tune = _defaults.riscv_tune | ||
|
||
# RISCV FPU (value for -mfpu flag). | ||
riscv_fpu = _defaults.riscv_fpu | ||
|
||
# RISCV float ABI (value for -mfloat-abi flag). | ||
riscv_float_abi = _defaults.riscv_float_abi | ||
|
||
# RISCV ABI (value for -mabi flag). | ||
riscv_abi = _defaults.riscv_abi | ||
} | ||
} |
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,21 @@ | ||
# Copyright 2021 The Pigweed Authors | ||
# 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("riscv_toolchain.gni") | ||
|
||
riscv_toolchain("riscv_gcc") { | ||
toolchain_args = { | ||
} | ||
} |
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,35 @@ | ||
# 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/bl602_sdk.gni") | ||
import("//build_overrides/build.gni") | ||
|
||
import("${build_root}/toolchain/gcc_toolchain.gni") | ||
|
||
template("riscv_toolchain") { | ||
gcc_toolchain(target_name) { | ||
_tool_name_root = "${root_build_dir}/../../third_party/bouffalolab/bl602_sdk/repo/toolchain/riscv/Linux/bin/riscv64-unknown-elf-" | ||
ar = _tool_name_root + "ar" | ||
cc = _tool_name_root + "gcc" | ||
cxx = _tool_name_root + "g++" | ||
|
||
toolchain_args = { | ||
current_cpu = "riscv" | ||
current_os = invoker.current_os | ||
is_clang = false | ||
|
||
forward_variables_from(invoker.toolchain_args, "*") | ||
} | ||
} | ||
} |
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,18 @@ | ||
# 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_sdk" | ||
} |
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,36 @@ | ||
# 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") | ||
|
||
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/bl602/pw_sys_io:pw_sys_io_bl602", | ||
"${dir_pigweed}/pw_hdlc:pw_rpc", | ||
dir_pw_assert, | ||
dir_pw_checksum, | ||
dir_pw_hdlc, | ||
dir_pw_log, | ||
] | ||
|
||
output_dir = "${root_out_dir}/lib" | ||
} |
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,28 @@ | ||
# 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") | ||
|
||
pw_log_BACKEND = "$dir_pw_log_basic" | ||
pw_assert_BACKEND = "$dir_pw_assert_log" | ||
pw_sys_io_BACKEND = | ||
"${chip_root}/examples/platform/bl602/pw_sys_io:pw_sys_io_bl602" | ||
|
||
pw_build_LINK_DEPS = [ | ||
"$dir_pw_assert:impl", | ||
"$dir_pw_log:impl", | ||
] | ||
|
||
dir_pw_third_party_nanopb = "${chip_root}/third_party/nanopb/repo" |
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,39 @@ | ||
# 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/build.gni") | ||
import("//build_overrides/chip.gni") | ||
|
||
import("${build_root}/toolchain/riscv_gcc/riscv_toolchain.gni") | ||
|
||
riscv_toolchain("bl602_lock_app") { | ||
toolchain_args = { | ||
current_os = "freertos" | ||
import("${chip_root}/examples/lock-app/bl602/args.gni") | ||
} | ||
} | ||
|
||
riscv_toolchain("bl602_lighting_app") { | ||
toolchain_args = { | ||
current_os = "freertos" | ||
import("${chip_root}/examples/lighting-app/bl602/args.gni") | ||
} | ||
} | ||
|
||
riscv_toolchain("bl602_window_app") { | ||
toolchain_args = { | ||
current_os = "freertos" | ||
import("${chip_root}/examples/window-app/bl602/args.gni") | ||
} | ||
} |
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,19 @@ | ||
# 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. | ||
|
||
declare_args() { | ||
# Root directory for bl602 SDK. | ||
bl602_sdk_build_root = | ||
"//third_party/connectedhomeip/third_party/bouffalolab/bl602_sdk" | ||
} |
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,28 @@ | ||
# 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/build.gni") | ||
|
||
# The location of the build configuration file. | ||
buildconfig = "${build_root}/config/BUILDCONFIG.gn" | ||
|
||
# CHIP uses angle bracket includes. | ||
check_system_includes = true | ||
|
||
default_args = { | ||
target_cpu = "riscv" | ||
target_os = "freertos" | ||
|
||
import("//args.gni") | ||
} |
Oops, something went wrong.