1*cd6d421eSAurabindo Pillai# 2*cd6d421eSAurabindo Pillai# (c) Copyright 2021 Advanced Micro Devices, Inc. All the rights reserved 3*cd6d421eSAurabindo Pillai# 4*cd6d421eSAurabindo Pillai# All rights reserved. This notice is intended as a precaution against 5*cd6d421eSAurabindo Pillai# inadvertent publication and does not imply publication or any waiver 6*cd6d421eSAurabindo Pillai# of confidentiality. The year included in the foregoing notice is the 7*cd6d421eSAurabindo Pillai# year of creation of the work. 8*cd6d421eSAurabindo Pillai# 9*cd6d421eSAurabindo Pillai# Authors: AMD 10*cd6d421eSAurabindo Pillai# 11*cd6d421eSAurabindo Pillai# Makefile for dcn303. 12*cd6d421eSAurabindo Pillai 13*cd6d421eSAurabindo PillaiDCN3_03 = dcn303_init.o dcn303_hwseq.o dcn303_resource.o 14*cd6d421eSAurabindo Pillai 15*cd6d421eSAurabindo Pillaiifdef CONFIG_X86 16*cd6d421eSAurabindo PillaiCFLAGS_$(AMDDALPATH)/dc/dcn303/dcn303_resource.o := -msse 17*cd6d421eSAurabindo Pillaiendif 18*cd6d421eSAurabindo Pillai 19*cd6d421eSAurabindo Pillaiifdef CONFIG_PPC64 20*cd6d421eSAurabindo PillaiCFLAGS_$(AMDDALPATH)/dc/dcn303/dcn303_resource.o := -mhard-float -maltivec 21*cd6d421eSAurabindo Pillaiendif 22*cd6d421eSAurabindo Pillai 23*cd6d421eSAurabindo Pillaiifdef CONFIG_CC_IS_GCC 24*cd6d421eSAurabindo Pillaiifeq ($(call cc-ifversion, -lt, 0701, y), y) 25*cd6d421eSAurabindo PillaiIS_OLD_GCC = 1 26*cd6d421eSAurabindo Pillaiendif 27*cd6d421eSAurabindo PillaiCFLAGS_$(AMDDALPATH)/dc/dcn303/dcn303_resource.o += -mhard-float 28*cd6d421eSAurabindo Pillaiendif 29*cd6d421eSAurabindo Pillai 30*cd6d421eSAurabindo Pillaiifdef CONFIG_X86 31*cd6d421eSAurabindo Pillaiifdef IS_OLD_GCC 32*cd6d421eSAurabindo Pillai# Stack alignment mismatch, proceed with caution. 33*cd6d421eSAurabindo Pillai# GCC < 7.1 cannot compile code using `double` and -mpreferred-stack-boundary=3 34*cd6d421eSAurabindo Pillai# (8B stack alignment). 35*cd6d421eSAurabindo PillaiCFLAGS_$(AMDDALPATH)/dc/dcn303/dcn303_resource.o += -mpreferred-stack-boundary=4 36*cd6d421eSAurabindo Pillaielse 37*cd6d421eSAurabindo PillaiCFLAGS_$(AMDDALPATH)/dc/dcn303/dcn303_resource.o += -msse2 38*cd6d421eSAurabindo Pillaiendif 39*cd6d421eSAurabindo Pillaiendif 40*cd6d421eSAurabindo Pillai 41*cd6d421eSAurabindo PillaiAMD_DAL_DCN3_03 = $(addprefix $(AMDDALPATH)/dc/dcn303/,$(DCN3_03)) 42*cd6d421eSAurabindo Pillai 43*cd6d421eSAurabindo PillaiAMD_DISPLAY_FILES += $(AMD_DAL_DCN3_03) 44