xref: /linux/drivers/gpu/Makefile (revision ca524e273c43c990756cac471a4cb48d219480dd)
1# SPDX-License-Identifier: GPL-2.0-only
2# drm/tegra depends on host1x, so if both drivers are built-in care must be
3# taken to initialize them in the correct order. Link order is the only way
4# to ensure this currently.
5# Similarly, buddy must come first since it is used by other drivers.
6obj-$(CONFIG_GPU_BUDDY)	+= buddy.o
7obj-y			+= host1x/ drm/ vga/ tests/
8obj-$(CONFIG_IMX_IPUV3_CORE)	+= ipu-v3/
9obj-$(CONFIG_TRACE_GPU_MEM)		+= trace/
10
11# nova-core and nova-drm are built from this Makefile so nova-drm's dependency
12# on nova-core can be expressed as a plain Make prerequisite rather than a
13# recursive sub-make. This is a temporary workaround until the Rust build
14# system supports cross-crate dependencies natively.
15
16obj-$(CONFIG_NOVA_CORE) += nova-core.o
17nova-core-y := nova-core/nova_core.o
18
19obj-$(CONFIG_DRM_NOVA) += nova-drm.o
20nova-drm-y := drm/nova/nova.o
21