]> Git Repo - linux.git/commitdiff
drm/amd/display: Skip entire amdgpu_dm build if !CONFIG_DRM_AMD_DC
authorHarry Wentland <[email protected]>
Fri, 1 Dec 2023 13:25:22 +0000 (06:25 -0700)
committerAlex Deucher <[email protected]>
Wed, 6 Dec 2023 20:22:34 +0000 (15:22 -0500)
[WHY]
Previously this only excluded build for a few amdgpu_dm
binaries which makes no sense.

[HOW]
Wrap the entire Makefile in "ifneq ($(CONFIG_DRM_AMD_DC),)"

Tested-by: Daniel Wheeler <[email protected]>
Reviewed-by: Alex Hung <[email protected]>
Signed-off-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Hung <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/display/amdgpu_dm/Makefile

index 8bf94920d23ea3a82ef6a7d40417205bad2af0db..063205ecb137403f2a0d99fd2692799dce9b6543 100644 (file)
 
 
 
+ifneq ($(CONFIG_DRM_AMD_DC),)
 AMDGPUDM = \
        amdgpu_dm.o \
        amdgpu_dm_plane.o \
        amdgpu_dm_crtc.o \
        amdgpu_dm_irq.o \
        amdgpu_dm_mst_types.o \
-       amdgpu_dm_color.o
+       amdgpu_dm_color.o \
+       amdgpu_dm_services.o \
+       amdgpu_dm_helpers.o \
+       amdgpu_dm_pp_smu.o \
+       amdgpu_dm_psr.o \
+       amdgpu_dm_replay.o
 
 ifdef CONFIG_DRM_AMD_DC_FP
 AMDGPUDM += dc_fpu.o
 endif
 
-ifneq ($(CONFIG_DRM_AMD_DC),)
-AMDGPUDM += amdgpu_dm_services.o amdgpu_dm_helpers.o amdgpu_dm_pp_smu.o amdgpu_dm_psr.o amdgpu_dm_replay.o
-endif
-
 AMDGPUDM += amdgpu_dm_hdcp.o
 
 ifneq ($(CONFIG_DEBUG_FS),)
@@ -52,3 +54,4 @@ subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc
 AMDGPU_DM = $(addprefix $(AMDDALPATH)/amdgpu_dm/,$(AMDGPUDM))
 
 AMD_DISPLAY_FILES += $(AMDGPU_DM)
+endif
This page took 0.058083 seconds and 4 git commands to generate.