diff options
| author | Miguel Ojeda <ojeda@kernel.org> | 2024-08-10 17:22:42 +0200 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2024-08-28 01:57:16 +0200 |
| commit | 778ff06ba6fe5d5c85604e569179100e00dd24d1 (patch) | |
| tree | 252682e9190759f04966607b3f7ebd2cbcb0758b | |
| parent | 5c558d3ff419fce1d74dd455bb089e26938578af (diff) | |
| download | rust-778ff06ba6fe5d5c85604e569179100e00dd24d1.tar.gz rust-778ff06ba6fe5d5c85604e569179100e00dd24d1.zip | |
CI: rfl: factor out build targets
It will make it easier to add more in the future. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
| -rwxr-xr-x | src/ci/docker/scripts/rfl-build.sh | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/ci/docker/scripts/rfl-build.sh b/src/ci/docker/scripts/rfl-build.sh index e8b6235921d..8011e07e92e 100755 --- a/src/ci/docker/scripts/rfl-build.sh +++ b/src/ci/docker/scripts/rfl-build.sh @@ -62,6 +62,13 @@ make -C linux LLVM=1 -j$(($(nproc) + 1)) \ defconfig \ rfl-for-rust-ci.config +BUILD_TARGETS=" + samples/rust/rust_minimal.o + samples/rust/rust_print.o + drivers/net/phy/ax88796b_rust.o + rust/doctests_kernel_generated.o +" + # Build a few Rust targets # # This does not include building the C side of the kernel nor linking, @@ -71,10 +78,7 @@ make -C linux LLVM=1 -j$(($(nproc) + 1)) \ # `CONFIG_RUST_KERNEL_DOCTESTS=y` above (which, for the moment, uses the # unstable `--test-builder` and `--no-run`). make -C linux LLVM=1 -j$(($(nproc) + 1)) \ - samples/rust/rust_minimal.o \ - samples/rust/rust_print.o \ - drivers/net/phy/ax88796b_rust.o \ - rust/doctests_kernel_generated.o + $BUILD_TARGETS # Generate documentation make -C linux LLVM=1 -j$(($(nproc) + 1)) \ @@ -94,10 +98,7 @@ make -C linux LLVM=1 -j$(($(nproc) + 1)) \ # set (thus no `-Dwarnings`) and the kernel uses `-W` for all Clippy # lints, including `clippy::all`. However, it could catch ICEs. make -C linux LLVM=1 -j$(($(nproc) + 1)) CLIPPY=1 \ - samples/rust/rust_minimal.o \ - samples/rust/rust_print.o \ - drivers/net/phy/ax88796b_rust.o \ - rust/doctests_kernel_generated.o + $BUILD_TARGETS # Format the code # |
