1# 2# (c) Copyright 2020 Advanced Micro Devices, Inc. All the rights reserved 3# 4# Authors: AMD 5# 6# Makefile for dcn302. 7 8DCN3_02 = dcn302_init.o dcn302_hwseq.o dcn302_resource.o 9 10ifdef CONFIG_X86 11CFLAGS_$(AMDDALPATH)/dc/dcn302/dcn302_resource.o := -mhard-float -msse 12endif 13 14ifdef CONFIG_PPC64 15CFLAGS_$(AMDDALPATH)/dc/dcn302/dcn302_resource.o := -mhard-float -maltivec 16endif 17 18ifdef CONFIG_X86 19ifdef CONFIG_CC_IS_GCC 20ifeq ($(call cc-ifversion, -lt, 0701, y), y) 21IS_OLD_GCC = 1 22endif 23endif 24 25ifdef IS_OLD_GCC 26# Stack alignment mismatch, proceed with caution. 27# GCC < 7.1 cannot compile code using `double` and -mpreferred-stack-boundary=3 28# (8B stack alignment). 29CFLAGS_$(AMDDALPATH)/dc/dcn302/dcn302_resource.o += -mpreferred-stack-boundary=4 30else 31CFLAGS_$(AMDDALPATH)/dc/dcn302/dcn302_resource.o += -msse2 32endif 33endif 34 35AMD_DAL_DCN3_02 = $(addprefix $(AMDDALPATH)/dc/dcn302/,$(DCN3_02)) 36 37AMD_DISPLAY_FILES += $(AMD_DAL_DCN3_02) 38