Re: Adding Rust and Go to the coreboot toolchain

Tim Crawford via coreboot <[email protected]>
Newsgroups gmane.linux.bios
Message-ID <[email protected]>
> We’re already using a number of things written in Go as a part of the build

Only a few utils are written in Go. I don't need Go installed to actually build coreboot.

> leaving droppings outside of the coreboot and $obj folders as a part of the build

With Rust, this is controlled by setting the `RUSTUP_HOME` and `CARGO_HOME` paths.
How is it handled with Go?

> Ron has already posted a patch to add Rust support, but I think it needs to be reworked

CB:74124 doesn't add Rust support. It doesn't even install Rust. It just installs some random tools assuming rustup is already installed on the system.

> but I want to get the discussion started

Having the toolchains in the SDK is going to make them required for building even if they're not used, much like Ada, so code will at least compile. I detest Go, but it would mean I could e.g. enable SBOM without having to install Go globally on my system.

Will coreboot use prebuilt binaries, like installing Rust via rustup (does Go have something comparable?), or building the binaries itself like GCC?
I assume the former, since these are more modern languages that support such distribution and management.

-- 
Tim Crawford
System76
Kernel Engineer
[email protected]
_______________________________________________
coreboot mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.