You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting with the upcoming v6.1, mainline Linux has merged the
initial Rust infrastructure so this adds some configs for build
testing it together with some sample modules.
The kernel requires a specific version of rustc, so we add the
rustc-1.62 build environment which derives from clang-15, since
a C compiler is still required to build the kernel and the
supported kernel version is 15 (we might bump this later).
Obviously GCC can be used as well but for now testing all the
toolchain combinations does not add significant value. In the
future more toolchain combinations can be used as needed.
The official "offline" toolchain installation method is used as
documented at [1] with sha256sum and because some distros like
Debian stable might not provide up to date toolchain and crates
to keep up with the mainline kernel.
Only the x86_64 architecture is supported by the kernel for now.
We also add the Rust-for-Linux kernel maintainer trees which
contain additional modules and bindings.
[1] https://forge.rust-lang.org/infra/other-installation-methods.html
Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Co-authored-by: Michał Gałka <galka.michal@gmail.com>
Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
0 commit comments