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>
This commit is contained in:
parent
5c558d3ff4
commit
778ff06ba6
@ -62,6 +62,13 @@ make -C linux LLVM=1 -j$(($(nproc) + 1)) \
|
|||||||
defconfig \
|
defconfig \
|
||||||
rfl-for-rust-ci.config
|
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
|
# Build a few Rust targets
|
||||||
#
|
#
|
||||||
# This does not include building the C side of the kernel nor linking,
|
# 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
|
# `CONFIG_RUST_KERNEL_DOCTESTS=y` above (which, for the moment, uses the
|
||||||
# unstable `--test-builder` and `--no-run`).
|
# unstable `--test-builder` and `--no-run`).
|
||||||
make -C linux LLVM=1 -j$(($(nproc) + 1)) \
|
make -C linux LLVM=1 -j$(($(nproc) + 1)) \
|
||||||
samples/rust/rust_minimal.o \
|
$BUILD_TARGETS
|
||||||
samples/rust/rust_print.o \
|
|
||||||
drivers/net/phy/ax88796b_rust.o \
|
|
||||||
rust/doctests_kernel_generated.o
|
|
||||||
|
|
||||||
# Generate documentation
|
# Generate documentation
|
||||||
make -C linux LLVM=1 -j$(($(nproc) + 1)) \
|
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
|
# set (thus no `-Dwarnings`) and the kernel uses `-W` for all Clippy
|
||||||
# lints, including `clippy::all`. However, it could catch ICEs.
|
# lints, including `clippy::all`. However, it could catch ICEs.
|
||||||
make -C linux LLVM=1 -j$(($(nproc) + 1)) CLIPPY=1 \
|
make -C linux LLVM=1 -j$(($(nproc) + 1)) CLIPPY=1 \
|
||||||
samples/rust/rust_minimal.o \
|
$BUILD_TARGETS
|
||||||
samples/rust/rust_print.o \
|
|
||||||
drivers/net/phy/ax88796b_rust.o \
|
|
||||||
rust/doctests_kernel_generated.o
|
|
||||||
|
|
||||||
# Format the code
|
# Format the code
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user