WIP FPC-III support
[linux/fpc-iii.git] / drivers / gpu / drm / amd / display / dc / dcn301 / Makefile
blob3ca7d911d25c440c5b8862660b25a0749355c718
2 # (c) Copyright 2020 Advanced Micro Devices, Inc. All the rights reserved
4 # All rights reserved. This notice is intended as a precaution against
5 # inadvertent publication and does not imply publication or any waiver
6 # of confidentiality. The year included in the foregoing notice is the
7 # year of creation of the work.
9 # Authors: AMD
11 # Makefile for dcn30.
13 DCN301 = dcn301_init.o dcn301_resource.o dcn301_dccg.o \
14 dcn301_dio_link_encoder.o dcn301_hwseq.o dcn301_panel_cntl.o dcn301_hubbub.o
16 ifdef CONFIG_X86
17 CFLAGS_$(AMDDALPATH)/dc/dcn301/dcn301_resource.o := -mhard-float -msse
18 endif
20 ifdef CONFIG_PPC64
21 CFLAGS_$(AMDDALPATH)/dc/dcn301/dcn301_resource.o := -mhard-float -maltivec
22 endif
24 ifdef CONFIG_CC_IS_GCC
25 ifeq ($(call cc-ifversion, -lt, 0701, y), y)
26 IS_OLD_GCC = 1
27 endif
28 endif
30 ifdef CONFIG_X86
31 ifdef IS_OLD_GCC
32 # Stack alignment mismatch, proceed with caution.
33 # GCC < 7.1 cannot compile code using `double` and -mpreferred-stack-boundary=3
34 # (8B stack alignment).
35 CFLAGS_$(AMDDALPATH)/dc/dcn301/dcn301_resource.o += -mpreferred-stack-boundary=4
36 else
37 CFLAGS_$(AMDDALPATH)/dc/dcn301/dcn301_resource.o += -msse2
38 endif
39 endif
41 AMD_DAL_DCN301 = $(addprefix $(AMDDALPATH)/dc/dcn301/,$(DCN301))
43 AMD_DISPLAY_FILES += $(AMD_DAL_DCN301)