WIP FPC-III support
[linux/fpc-iii.git] / drivers / gpu / drm / amd / display / dc / dcn302 / Makefile
blob8d4924b7dc2216312f5b82be65b4133e705df30a
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 dcn302.
13 DCN3_02 = dcn302_init.o dcn302_hwseq.o dcn302_resource.o
15 ifdef CONFIG_X86
16 CFLAGS_$(AMDDALPATH)/dc/dcn302/dcn302_resource.o := -mhard-float -msse
17 endif
19 ifdef CONFIG_PPC64
20 CFLAGS_$(AMDDALPATH)/dc/dcn302/dcn302_resource.o := -mhard-float -maltivec
21 endif
23 ifdef CONFIG_CC_IS_GCC
24 ifeq ($(call cc-ifversion, -lt, 0701, y), y)
25 IS_OLD_GCC = 1
26 endif
27 endif
29 ifdef CONFIG_X86
30 ifdef IS_OLD_GCC
31 # Stack alignment mismatch, proceed with caution.
32 # GCC < 7.1 cannot compile code using `double` and -mpreferred-stack-boundary=3
33 # (8B stack alignment).
34 CFLAGS_$(AMDDALPATH)/dc/dcn302/dcn302_resource.o += -mpreferred-stack-boundary=4
35 else
36 CFLAGS_$(AMDDALPATH)/dc/dcn302/dcn302_resource.o += -msse2
37 endif
38 endif
40 AMD_DAL_DCN3_02 = $(addprefix $(AMDDALPATH)/dc/dcn302/,$(DCN3_02))
42 AMD_DISPLAY_FILES += $(AMD_DAL_DCN3_02)