@@ -62,6 +62,13 @@ make -C linux LLVM=1 -j$(($(nproc) + 1)) \
6262 defconfig \
6363 rfl-for-rust-ci.config
6464
65+ BUILD_TARGETS="
66+ samples/rust/rust_minimal.o
67+ samples/rust/rust_print.o
68+ drivers/net/phy/ax88796b_rust.o
69+ rust/doctests_kernel_generated.o
70+ "
71+
6572# Build a few Rust targets
6673#
6774# 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)) \
7178# `CONFIG_RUST_KERNEL_DOCTESTS=y` above (which, for the moment, uses the
7279# unstable `--test-builder` and `--no-run`).
7380make -C linux LLVM=1 -j$(( $(nproc) + 1 )) \
74- samples/rust/rust_minimal.o \
75- samples/rust/rust_print.o \
76- drivers/net/phy/ax88796b_rust.o \
77- rust/doctests_kernel_generated.o
81+ $BUILD_TARGETS
7882
7983# Generate documentation
8084make -C linux LLVM=1 -j$(( $(nproc) + 1 )) \
@@ -94,10 +98,7 @@ make -C linux LLVM=1 -j$(($(nproc) + 1)) \
9498# set (thus no `-Dwarnings`) and the kernel uses `-W` for all Clippy
9599# lints, including `clippy::all`. However, it could catch ICEs.
96100make -C linux LLVM=1 -j$(( $(nproc) + 1 )) CLIPPY=1 \
97- samples/rust/rust_minimal.o \
98- samples/rust/rust_print.o \
99- drivers/net/phy/ax88796b_rust.o \
100- rust/doctests_kernel_generated.o
101+ $BUILD_TARGETS
101102
102103# Format the code
103104#
0 commit comments