mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
Enable building with Bazel on Raspberry PI OS machines (#1921)
* Adding RaspberryPI OS as build host * Add rp2350 for build on Raspberry PI OS
This commit is contained in:
parent
f12ac1c2c1
commit
ec0037b508
2 changed files with 11 additions and 0 deletions
10
MODULE.bazel
10
MODULE.bazel
|
|
@ -26,6 +26,14 @@ archive_override(
|
||||||
|
|
||||||
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
||||||
|
|
||||||
|
http_archive(
|
||||||
|
name = "arm_gcc_linux-aarch64",
|
||||||
|
build_file = "//bazel/toolchain:gcc_arm_none_eabi.BUILD",
|
||||||
|
sha256 = "8fd8b4a0a8d44ab2e195ccfbeef42223dfb3ede29d80f14dcf2183c34b8d199a",
|
||||||
|
strip_prefix = "arm-gnu-toolchain-13.2.Rel1-aarch64-arm-none-eabi",
|
||||||
|
url = "https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-aarch64-arm-none-eabi.tar.xz",
|
||||||
|
)
|
||||||
|
|
||||||
http_archive(
|
http_archive(
|
||||||
name = "arm_gcc_linux-x86_64",
|
name = "arm_gcc_linux-x86_64",
|
||||||
build_file = "//bazel/toolchain:gcc_arm_none_eabi.BUILD",
|
build_file = "//bazel/toolchain:gcc_arm_none_eabi.BUILD",
|
||||||
|
|
@ -128,6 +136,8 @@ http_archive(
|
||||||
)
|
)
|
||||||
|
|
||||||
register_toolchains(
|
register_toolchains(
|
||||||
|
"//bazel/toolchain:linux-aarch64-rp2040",
|
||||||
|
"//bazel/toolchain:linux-aarch64-rp2350",
|
||||||
"//bazel/toolchain:linux-x86_64-rp2040",
|
"//bazel/toolchain:linux-x86_64-rp2040",
|
||||||
"//bazel/toolchain:linux-x86_64-rp2350",
|
"//bazel/toolchain:linux-x86_64-rp2350",
|
||||||
"//bazel/toolchain:win-x86_64-rp2040",
|
"//bazel/toolchain:win-x86_64-rp2040",
|
||||||
|
|
|
||||||
|
|
@ -173,6 +173,7 @@ cc_feature(
|
||||||
|
|
||||||
HOSTS = (
|
HOSTS = (
|
||||||
("linux", "x86_64"),
|
("linux", "x86_64"),
|
||||||
|
("linux", "aarch64"),
|
||||||
("win", "x86_64"),
|
("win", "x86_64"),
|
||||||
("mac", "x86_64"),
|
("mac", "x86_64"),
|
||||||
("mac", "aarch64"),
|
("mac", "aarch64"),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue