Skip to content

Best approach for integrating a non-ARM toolchain #37

@cfrantz

Description

@cfrantz

I'm working on integrating a riscv32 toolchain so I can use bazel-embedded as the compiler configuration for the OpenTitan project (https://opentitan.org). It appears there are some incompatible flags between ARM and riscv32 gcc compilers.

Experimentally, I'm handling these flag differences with if statements in toolchains/features/common/impl/gcc.bzl and toolchains/features/embedded/impl/gcc.bzl. This seems ugly to me and that it would be more appropriate to elevate some of the compiler flag selections to the platform or device configurations in platforms/BUILD and/or devices/riscv32/riscv32.bzl. (See lowRISC#1)

I'm creating this issue to solicit feedback on the best approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions