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