From 506054980429497d106261568bd39c22a40e0fdd Mon Sep 17 00:00:00 2001 From: Miguel Ojeda Date: Mon, 8 Jun 2026 16:14:36 +0200 Subject: [PATCH] rust: zerocopy-derive: enable support in kbuild With all the new files in place and ready from the new crate, enable the support for it in the build system. In addition, skip formatting for this vendored crate. Link: https://patch.msgid.link/20260608141439.182634-18-ojeda@kernel.org Signed-off-by: Miguel Ojeda --- Makefile | 1 + rust/Makefile | 41 +++++++++++++++++++++++++------ scripts/Makefile.build | 2 +- scripts/generate_rust_analyzer.py | 10 ++++++-- 4 files changed, 43 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 33135f39bbeea..c71c43bc3658a 100644 --- a/Makefile +++ b/Makefile @@ -1957,6 +1957,7 @@ rustfmt: -o -path $(srctree)/rust/quote \ -o -path $(srctree)/rust/syn \ -o -path $(srctree)/rust/zerocopy \ + -o -path $(srctree)/rust/zerocopy-derive \ \) -prune -o \ -type f -a -name '*.rs' -a ! -name '*generated*' -print \ | xargs $(RUSTFMT) $(rustfmt_flags) diff --git a/rust/Makefile b/rust/Makefile index a87b33926cdfa..2fbdebb93bf20 100644 --- a/rust/Makefile +++ b/rust/Makefile @@ -52,10 +52,11 @@ ifdef CONFIG_RUST procmacro-name = $(shell MAKEFLAGS= $(RUSTC) --print file-names --crate-name $(1) --crate-type proc-macro -