summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2026-06-22 22:30:10 +0900
committerDanilo Krummrich <dakr@kernel.org>2026-06-29 11:28:39 +0200
commitf1bd7119ac4c98fc2f0ddf5a6d851de66bc5f62f (patch)
tree11d518a47909065f903f71ce749ca8a30237fefe
parent0dc79ddc9f6f5dde8c3a78395f5f10c1cf82b2df (diff)
downloadlinux-stable-f1bd7119ac4c98fc2f0ddf5a6d851de66bc5f62f.tar.gz
linux-stable-f1bd7119ac4c98fc2f0ddf5a6d851de66bc5f62f.zip
gpu: drm: nova: depend on nova-core and use its symbols
Make nova-core a build dependency of nova-drm, so its crate metadata is available and up-to-date when the latter is built. This is intended to be a workaround until the build system supports Rust cross-crate dependencies natively. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Link: https://patch.msgid.link/20260622-nova-exports-v5-4-6191773fc977@nvidia.com Signed-off-by: Danilo Krummrich <dakr@kernel.org>
-rw-r--r--drivers/gpu/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/Makefile b/drivers/gpu/Makefile
index 13c96aa57033..e372fc02139f 100644
--- a/drivers/gpu/Makefile
+++ b/drivers/gpu/Makefile
@@ -60,3 +60,7 @@ endif
# Output nova-core's crate metadata for use by nova-drm at compile time.
RUSTFLAGS_nova-core/nova_core.o += \
--emit=metadata=$(objtree)/$(obj)/nova-core/libnova_core.rmeta
+
+# Allow nova-drm to import nova-core's types.
+$(obj)/drm/nova/nova.o: $(obj)/nova-core/nova_core.o
+RUSTFLAGS_drm/nova/nova.o := -L $(objtree)/$(obj)/nova-core --extern nova_core