CI: rfl: factor out build targets · rust-lang/rust@778ff06 (original) (raw)

Original file line number Diff line number Diff line change
@@ -62,6 +62,13 @@ make -C linux LLVM=1 -j$(($(nproc) + 1)) \
62 62 defconfig \
63 63 rfl-for-rust-ci.config
64 64
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 +
65 72 # Build a few Rust targets
66 73 #
67 74 # 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)) \
71 78 # `CONFIG_RUST_KERNEL_DOCTESTS=y` above (which, for the moment, uses the
72 79 # unstable `--test-builder` and `--no-run`).
73 80 make -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
78 82
79 83 # Generate documentation
80 84 make -C linux LLVM=1 -j$(($(nproc) + 1)) \
@@ -94,10 +98,7 @@ make -C linux LLVM=1 -j$(($(nproc) + 1)) \
94 98 # set (thus no `-Dwarnings`) and the kernel uses `-W` for all Clippy
95 99 # lints, including `clippy::all`. However, it could catch ICEs.
96 100 make -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
101 102
102 103 # Format the code
103 104 #