summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-06-10 14:30:34 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-06-10 14:30:34 +0300
commitb0d369dbad20a8c9702607e7294d63c4a0c8e0fe (patch)
treeeb9bca1fb71a69ffe8f15f701ea8524b34ddaf07 /scripts/generate_rust_analyzer.py
parentf8ace04d2abae708595964244a759fbe21962014 (diff)
parentfc85704c3dae5ac1cb3c94045727241cd72871ff (diff)
downloadlinux-b0d369dbad20a8c9702607e7294d63c4a0c8e0fe.tar.xz
Merge v6.15.2
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
-rwxr-xr-xscripts/generate_rust_analyzer.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/scripts/generate_rust_analyzer.py b/scripts/generate_rust_analyzer.py
index f2ff0f954236..fe663dd0c43b 100755
--- a/scripts/generate_rust_analyzer.py
+++ b/scripts/generate_rust_analyzer.py
@@ -98,6 +98,21 @@ def generate_crates(srctree, objtree, sysroot_src, external_src, cfgs):
)
append_crate(
+ "pin_init_internal",
+ srctree / "rust" / "pin-init" / "internal" / "src" / "lib.rs",
+ [],
+ cfg=["kernel"],
+ is_proc_macro=True,
+ )
+
+ append_crate(
+ "pin_init",
+ srctree / "rust" / "pin-init" / "src" / "lib.rs",
+ ["core", "pin_init_internal", "macros"],
+ cfg=["kernel"],
+ )
+
+ append_crate(
"ffi",
srctree / "rust" / "ffi.rs",
["core", "compiler_builtins"],
@@ -124,7 +139,7 @@ def generate_crates(srctree, objtree, sysroot_src, external_src, cfgs):
append_crate_with_generated("bindings", ["core", "ffi"])
append_crate_with_generated("uapi", ["core", "ffi"])
- append_crate_with_generated("kernel", ["core", "macros", "build_error", "ffi", "bindings", "uapi"])
+ append_crate_with_generated("kernel", ["core", "macros", "build_error", "pin_init", "ffi", "bindings", "uapi"])
def is_root_crate(build_file, target):
try: