From f69182c16c610ce43ddfc413da5af80aea3c80ba Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Tue, 21 Jan 2025 10:46:15 +0000 Subject: [PATCH] lisa._assets.kmodules.lisa: Makefile: Ensure versions are locked Ensure the versions of all Rust dependencies are locked to the Cargo.lock file so there is no bad surprise. --- lisa/_assets/kmodules/lisa/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisa/_assets/kmodules/lisa/Makefile b/lisa/_assets/kmodules/lisa/Makefile index b8a1de2ca..8db88eade 100644 --- a/lisa/_assets/kmodules/lisa/Makefile +++ b/lisa/_assets/kmodules/lisa/Makefile @@ -79,7 +79,7 @@ $(CARGO_TARGET_DIR) $(GENERATED) $(RUST_GENERATED) $(RUST_BUILD_DIR) $(RUST_C_SH # #[no_mangle] ones. This avoids having tons of GLOBAL symbols from core lib. $(RUST_OBJECT_RAW): $(RUST_BUILD_DIR) $(CARGO_TARGET_DIR) # Build the crate into a static library - cd $(RUST_SRC) && export RUSTFLAGS="$(RUSTFLAGS)" && $(call cargo_cmd,build --release --target=$(RUST_SRC)/rustc_targets/$(ARCH)/target.json -Zbuild-std=core$(comma)alloc) + cd $(RUST_SRC) && export RUSTFLAGS="$(RUSTFLAGS)" && $(call cargo_cmd,build --locked --release --target=$(RUST_SRC)/rustc_targets/$(ARCH)/target.json -Zbuild-std=core$(comma)alloc) # Prelink the archive into a single object file. $(LD) $(KBUILD_LDFLAGS) -nostdlib -r -o $(RUST_OBJECT_RAW) --whole-archive $(CARGO_TARGET_DIR)/target/release/liblisakmod.a -- GitLab