1# SPDX-License-Identifier: MIT 2# 3# Makefile for DCN. 4DCN201 = dcn201_init.o dcn201_resource.o dcn201_hwseq.o \ 5 dcn201_hubbub.o\ 6 dcn201_mpc.o dcn201_hubp.o dcn201_opp.o dcn201_optc.o dcn201_dpp.o \ 7 dcn201_dccg.o dcn201_link_encoder.o 8 9ifdef CONFIG_X86 10CFLAGS_$(AMDDALPATH)/dc/dcn201/dcn201_resource.o := -mhard-float -msse 11endif 12 13ifdef CONFIG_PPC64 14CFLAGS_$(AMDDALPATH)/dc/dcn201/dcn201_resource.o := -mhard-float -maltivec 15endif 16 17ifdef CONFIG_CC_IS_GCC 18ifeq ($(call cc-ifversion, -lt, 0701, y), y) 19IS_OLD_GCC = 1 20endif 21endif 22 23ifdef CONFIG_X86 24ifdef IS_OLD_GCC 25# Stack alignment mismatch, proceed with caution. 26# GCC < 7.1 cannot compile code using `double` and -mpreferred-stack-boundary=3 27# (8B stack alignment). 28CFLAGS_$(AMDDALPATH)/dc/dcn201/dcn201_resource.o += -mpreferred-stack-boundary=4 29else 30CFLAGS_$(AMDDALPATH)/dc/dcn201/dcn201_resource.o += -msse2 31endif 32endif 33AMD_DAL_DCN201 = $(addprefix $(AMDDALPATH)/dc/dcn201/,$(DCN201)) 34 35AMD_DISPLAY_FILES += $(AMD_DAL_DCN201) 36