1# 2# (c) Copyright 2020 Advanced Micro Devices, Inc. All the rights reserved 3# 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. 8# 9# Authors: AMD 10# 11# Makefile for dcn30. 12 13DCN301 = dcn301_init.o dcn301_resource.o dcn301_dccg.o \ 14 dcn301_dio_link_encoder.o dcn301_hwseq.o dcn301_panel_cntl.o dcn301_hubbub.o 15 16ifdef CONFIG_X86 17CFLAGS_$(AMDDALPATH)/dc/dcn301/dcn301_resource.o := -mhard-float -msse 18endif 19 20ifdef CONFIG_PPC64 21CFLAGS_$(AMDDALPATH)/dc/dcn301/dcn301_resource.o := -mhard-float -maltivec 22endif 23 24ifdef CONFIG_ARM64 25CFLAGS_REMOVE_$(AMDDALPATH)/dc/dcn301/dcn301_resource.o := -mgeneral-regs-only 26endif 27 28ifdef CONFIG_CC_IS_GCC 29ifeq ($(call cc-ifversion, -lt, 0701, y), y) 30IS_OLD_GCC = 1 31endif 32endif 33 34ifdef CONFIG_X86 35ifdef IS_OLD_GCC 36# Stack alignment mismatch, proceed with caution. 37# GCC < 7.1 cannot compile code using `double` and -mpreferred-stack-boundary=3 38# (8B stack alignment). 39CFLAGS_$(AMDDALPATH)/dc/dcn301/dcn301_resource.o += -mpreferred-stack-boundary=4 40else 41CFLAGS_$(AMDDALPATH)/dc/dcn301/dcn301_resource.o += -msse2 42endif 43endif 44 45AMD_DAL_DCN301 = $(addprefix $(AMDDALPATH)/dc/dcn301/,$(DCN301)) 46 47AMD_DISPLAY_FILES += $(AMD_DAL_DCN301) 48