From: Miguel Ojeda Date: Mon, 8 Jun 2026 14:14:23 +0000 (+0200) Subject: rust: kbuild: define `procmacro-name` function X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=50f3637a459a420ec84e73fa93c0ea469c7acdec;p=thirdparty%2Fkernel%2Flinux.git rust: kbuild: define `procmacro-name` function Since we are adding one more proc macro crate (`zerocopy-derive`), we are refactoring their handling. Thus define a `procmacro-name` function and use it to fill the existing variables' values. Reviewed-by: Nicolas Schier Link: https://patch.msgid.link/20260608141439.182634-5-ojeda@kernel.org Signed-off-by: Miguel Ojeda --- diff --git a/rust/Makefile b/rust/Makefile index 2b4a3983bb1e..8dfccf7399d9 100644 --- a/rust/Makefile +++ b/rust/Makefile @@ -47,10 +47,12 @@ endif # Avoids running `$(RUSTC)` when it may not be available. ifdef CONFIG_RUST -libmacros_name := $(shell MAKEFLAGS= $(RUSTC) --print file-names --crate-name macros --crate-type proc-macro -