summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dcn32/Makefile
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2022-06-06 11:34:46 -0400
committerAlex Deucher <alexander.deucher@amd.com>2022-06-06 14:43:38 -0400
commitd1b08baf93352bb3c88d637055dc21187a456646 (patch)
tree6c221debc6a2b5180f22fde31be86f4de8f7e0a3 /drivers/gpu/drm/amd/display/dc/dcn32/Makefile
parentb94b02d72e2b979a32addc8f5099fcf1f6ce9e7b (diff)
drm/amdgpu/display: fix DCN3.2 Makefiles for non-x86
Add proper handling for PPC64. Reviewed-by: Harry Wentland <harry.wentland@amd.com> Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dcn32/Makefile')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn32/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/Makefile b/drivers/gpu/drm/amd/display/dc/dcn32/Makefile
index 6e0328060255..3d09db3070f4 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn32/Makefile
+++ b/drivers/gpu/drm/amd/display/dc/dcn32/Makefile
@@ -15,12 +15,19 @@ DCN32 = dcn32_resource.o dcn32_hubbub.o dcn32_hwseq.o dcn32_init.o \
dcn32_dio_stream_encoder.o dcn32_dio_link_encoder.o dcn32_hpo_dp_link_encoder.o \
dcn32_mpc.o
-CFLAGS_$(AMDDALPATH)/dc/dcn32/dcn32_resource.o := -mhard-float -msse
+ifdef CONFIG_X86
+CFLAGS_$(AMDDALPATH)/dc/dcn32/dcn32_resource.o := -msse
+endif
+
+ifdef CONFIG_PPC64
+CFLAGS_$(AMDDALPATH)/dc/dcn32/dcn32_resource.o := -mhard-float -maltivec
+endif
ifdef CONFIG_CC_IS_GCC
ifeq ($(call cc-ifversion, -lt, 0701, y), y)
IS_OLD_GCC = 1
endif
+CFLAGS_$(AMDDALPATH)/dc/dcn32/dcn32_resource.o += -mhard-float
endif
ifdef IS_OLD_GCC