Makefile (1044B)
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 21CFLAGS_$(AMDDALPATH)/dc/dcn201/dcn201_resource.o += -mhard-float 22endif 23 24ifdef CONFIG_X86 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/dcn201/dcn201_resource.o += -mpreferred-stack-boundary=4 30else 31CFLAGS_$(AMDDALPATH)/dc/dcn201/dcn201_resource.o += -msse2 32endif 33endif 34AMD_DAL_DCN201 = $(addprefix $(AMDDALPATH)/dc/dcn201/,$(DCN201)) 35 36AMD_DISPLAY_FILES += $(AMD_DAL_DCN201)