Files
linux-nv-oot/drivers/gpu/drm/tegra/Makefile
Santosh BS 91751dfb74 drm/tegra: move disply related code under CONFIG_DRM_TEGRA_HAVE_DISPLAY
As Tegra DRM driver display support is not needed for recent chips,
move the related codes under CONFIG_DRM_TEGRA_HAVE_DISPLAY and enable
that flag based on legacy chip configs accordingly.

Jira HOSTX-5833

Change-Id: Iddf884f5abdfe2500e7195778bc77f9423acc2d3
Signed-off-by: Santosh BS <santoshb@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3292246
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
2025-07-24 10:19:14 +00:00

55 lines
854 B
Makefile

# SPDX-License-Identifier: GPL-2.0-only
# Copyright (c) 2022-2025, NVIDIA CORPORATION. All rights reserved.
ccflags-$(CONFIG_DRM_TEGRA_DEBUG) += -DDEBUG
ccflags-y += -I$(srctree.nvidia-oot)/drivers/gpu/drm/tegra/include
ccflags-y += -I$(srctree.hwpm)/include
tegra-drm-y := \
drm.o \
uapi.o \
submit.o \
firewall.o \
gem.o \
fb.o \
virt.o
ifeq ($(CONFIG_DRM_TEGRA_HAVE_DISPLAY),y)
tegra-drm-y += \
dp.o \
hub.o \
plane.o \
dc.o \
output.o \
rgb.o \
hda.o \
hdmi.o \
mipi-phy.o \
dsi.o \
sor.o \
dpaux.o \
gr2d.o \
gr3d.o
endif
ifeq ($(CONFIG_TEGRA_DRM_NATIVE_DIS),y)
ccflags-y += -DCONFIG_TEGRA_DRM_NATIVE_DIS
else
tegra-drm-y += \
falcon.o \
hwpm.o \
vic.o \
nvdec.o \
nvenc.o \
nvjpg.o \
riscv.o \
util.o \
ofa.o
endif
tegra-drm-y += trace.o
tegra-drm-$(CONFIG_DRM_FBDEV_EMULATION) += fbdev.o
obj-m := tegra-drm.o