1# SPDX-License-Identifier: MIT 2# 3# Makefile for DCN21. 4 5DCN21 = dcn21_init.o dcn21_hubp.o dcn21_hubbub.o dcn21_resource.o \ 6 dcn21_hwseq.o dcn21_link_encoder.o 7 8ifdef CONFIG_X86 9CFLAGS_$(AMDDALPATH)/dc/dcn21/dcn21_resource.o := -mhard-float -msse 10endif 11 12ifdef CONFIG_PPC64 13CFLAGS_$(AMDDALPATH)/dc/dcn21/dcn21_resource.o := -mhard-float -maltivec 14endif 15 16ifdef CONFIG_ARM64 17CFLAGS_REMOVE_$(AMDDALPATH)/dc/dcn21/dcn21_resource.o := -mgeneral-regs-only 18endif 19 20ifdef CONFIG_CC_IS_GCC 21ifeq ($(call cc-ifversion, -lt, 0701, y), y) 22IS_OLD_GCC = 1 23endif 24endif 25 26ifdef CONFIG_X86 27ifdef IS_OLD_GCC 28# Stack alignment mismatch, proceed with caution. 29# GCC < 7.1 cannot compile code using `double` and -mpreferred-stack-boundary=3 30# (8B stack alignment). 31CFLAGS_$(AMDDALPATH)/dc/dcn21/dcn21_resource.o += -mpreferred-stack-boundary=4 32else 33CFLAGS_$(AMDDALPATH)/dc/dcn21/dcn21_resource.o += -msse2 34endif 35endif 36 37AMD_DAL_DCN21 = $(addprefix $(AMDDALPATH)/dc/dcn21/,$(DCN21)) 38 39AMD_DISPLAY_FILES += $(AMD_DAL_DCN21) 40