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.
11 # Makefile for dcn321.
13 DCN321 = dcn321_resource.o dcn321_dio_link_encoder.o
16 CFLAGS_$(AMDDALPATH)/dc/dcn321/dcn321_resource.o := -msse
20 CFLAGS_$(AMDDALPATH)/dc/dcn321/dcn321_resource.o := -mhard-float -maltivec
23 ifdef CONFIG_CC_IS_GCC
24 ifeq ($(call cc-ifversion, -lt, 0701, y), y)
27 CFLAGS_$(AMDDALPATH)/dc/dcn321/dcn321_resource.o += -mhard-float
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/dcn321/dcn321_resource.o += -mpreferred-stack-boundary=4
36 CFLAGS_$(AMDDALPATH)/dc/dcn321/dcn321_resource.o += -msse2
39 AMD_DAL_DCN321 = $(addprefix $(AMDDALPATH)/dc/dcn321/,$(DCN321))
41 AMD_DISPLAY_FILES += $(AMD_DAL_DCN321)