2 # (c) Copyright 2022 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.
11 # Makefile for dcn314.
13 DCN314 = dcn314_resource.o dcn314_hwseq.o dcn314_init.o \
14 dcn314_dio_stream_encoder.o dcn314_dccg.o dcn314_optc.o
17 CFLAGS_$(AMDDALPATH)/dc/dcn314/dcn314_resource.o := -mhard-float -msse
21 CFLAGS_$(AMDDALPATH)/dc/dcn314/dcn314_resource.o := -mhard-float -maltivec
24 ifdef CONFIG_CC_IS_GCC
25 ifeq ($(call cc-ifversion, -lt, 0701, y), y)
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/dcn314/dcn314_resource.o += -mpreferred-stack-boundary=4
37 CFLAGS_$(AMDDALPATH)/dc/dcn314/dcn314_resource.o += -msse2
41 AMD_DAL_DCN314 = $(addprefix $(AMDDALPATH)/dc/dcn314/,$(DCN314))
43 AMD_DISPLAY_FILES += $(AMD_DAL_DCN314)