mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 05:04:02 +02:00
gpu: nova-core: emit Rust metadata for nova-drm
Emit nova-core's crate metadata (libnova_core.rmeta) so that nova-drm can import nova-core's types and functions at compile time. 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-3-6191773fc977@nvidia.com Signed-off-by: Danilo Krummrich <dakr@kernel.org>
This commit is contained in:
parent
3b7b7ad78f
commit
0dc79ddc9f
|
|
@ -56,3 +56,7 @@ $(obj)/nova-core/nova_core_exports.o: private cmd_gensymtypes_c = \
|
|||
$(if $(KBUILD_SYMTYPES), --symtypes $(@:.o=.symtypes),) \
|
||||
$(obj)/nova-core/nova_core.o
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user