config: add rust build configurations by 10ne1 · Pull Request #1468 · kernelci/kernelci-core

10ne1

mgalka

mgalka

10ne1 added a commit to 10ne1/kernelci-core that referenced this pull request

Nov 4, 2022
Suggested by Michal in pull request kernelci#1468

Co-authored-by: Michał Gałka <galka.michal@gmail.com>

10ne1 added a commit to 10ne1/kernelci-core that referenced this pull request

Nov 4, 2022
Suggested by Michal in pull request kernelci#1468

Co-authored-by: Michał Gałka <galka.michal@gmail.com>
Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>

ojeda

ojeda

@ojeda ojeda mentioned this pull request

Nov 16, 2022

@ojeda ojeda mentioned this pull request

Nov 16, 2022

11 tasks

ojeda

@10ne1 @mgalka

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>

aliceinwire

10ne1 added a commit to 10ne1/kernelci-core that referenced this pull request

Dec 6, 2022
PR kernelci#1468 added the mainline rust build in a separate
`rust` build configuration instead of adding to the
already existing mainline config which can cause
unnecessary builds. Move it in the proper place.

Suggested-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>

10ne1 added a commit to 10ne1/kernelci-core that referenced this pull request

Dec 6, 2022
PR kernelci#1468 added the mainline rust build in a separate
`rust` build configuration instead of adding to the
already existing mainline config which can cause
unnecessary builds. Move it in the proper place.

Suggested-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>

10ne1 added a commit to 10ne1/kernelci-core that referenced this pull request

Dec 6, 2022
PR kernelci#1468 added the mainline rust build in a separate
`rust` build configuration instead of adding to the
already existing mainline config which can cause
unnecessary builds. Move it in the proper place.

Suggested-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Reviewed-by: Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>

@10ne1 10ne1 deleted the dev/aratiu/add-rust-trees branch

December 6, 2022 18:20

10ne1 added a commit to 10ne1/kernelci-core that referenced this pull request

Dec 7, 2022
PR kernelci#1468 added the mainline rust build in a separate
`rust` build configuration instead of adding to the
already existing mainline config which can cause
unnecessary builds. Move it in the proper place.

Fixes: 43875d0 ("config: add rust build configurations")
Suggested-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Reviewed-by: Alice Ferrazzi <alice.ferrazzi@miraclelinux.com>
Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>

10ne1 added a commit to 10ne1/kernelci-core that referenced this pull request

Dec 7, 2022
PR kernelci#1468 added the mainline rust build in a separate
`rust` build configuration instead of adding to the
already existing mainline config which can cause
unnecessary builds. Move it in the proper place.

While at it also change the x86_64_arch anchor to
build just the base x86_64_defconfig to avoid
unnecessary allmodconfig rebuilds.

Fixes: 43875d0 ("config: add rust build configurations")
Suggested-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Reviewed-by: Alice Ferrazzi <alice.ferrazzi@miraclelinux.com>
Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>

aliceinwire pushed a commit that referenced this pull request

Dec 8, 2022
PR #1468 added the mainline rust build in a separate
`rust` build configuration instead of adding to the
already existing mainline config which can cause
unnecessary builds. Move it in the proper place.

While at it also change the x86_64_arch anchor to
build just the base x86_64_defconfig to avoid
unnecessary allmodconfig rebuilds.

Fixes: 43875d0 ("config: add rust build configurations")
Suggested-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Reviewed-by: Alice Ferrazzi <alice.ferrazzi@miraclelinux.com>
Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>

@gctucker gctucker linked an issue

Feb 8, 2023

that may be closed by this pull request