mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
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>
This commit is contained in:
parent
0dc79ddc9f
commit
f1bd7119ac
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user