Skip to content

bazel_bootlin v1.0.0 Release

Latest
Compare
Choose a tag to compare
@DanielSperry DanielSperry released this 12 Nov 19:56

Changes

  • Supporting non-hardcoded bootlin toolchains. Users can now enter the sha256 and other details about the toolchain.
  • Added a RISC-V example project

To incorporate bazel_bootlin toolchains into your project, copy the following into your
WORKSPACE file.

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "bazel_bootlin",
    strip_prefix = "bazel_bootlin-1.0.0",
    sha256 = "f94c5a7f4769bb9484f870a2a33e52593bdba8941130518b75f36d0ed8ee2d0b",
    url = "https://github.com/DanielSperry/bazel_bootlin/archive/refs/tags/v1.0.0.tar.gz",
)

load("@bazel_bootlin//toolchains:toolchains.bzl", "bootlin_toolchain")

# more toolchains at: https://toolchains.bootlin.com/

bootlin_toolchain(
    name = "gcc_12_3",
    architecture = "x86-64",
    libc_impl = "glibc",
    buildroot_version = "stable-2023.08-1",
    sha256 = "d6eca7f1ea736ef6f868a027a9d0baa875f9513755026aed2badc04a2b9cd7bd",
    gcc_version ="12.3.0",
    libc_version = "glibc_2.35",
)

register_toolchains(
    "@gcc_12_3//:toolchain",
)