Makefile (815B)
1# 2# (c) Copyright 2020 Advanced Micro Devices, Inc. All the rights reserved 3# 4# Authors: AMD 5# 6# Makefile for dcn302. 7 8DCN3_02 = dcn302_init.o dcn302_hwseq.o dcn302_resource.o 9 10ifdef CONFIG_X86 11CFLAGS_$(AMDDALPATH)/dc/dcn302/dcn302_resource.o := -msse 12endif 13 14ifdef CONFIG_PPC64 15CFLAGS_$(AMDDALPATH)/dc/dcn302/dcn302_resource.o := -mhard-float -maltivec 16endif 17 18ifdef CONFIG_X86 19ifdef IS_OLD_GCC 20# Stack alignment mismatch, proceed with caution. 21# GCC < 7.1 cannot compile code using `double` and -mpreferred-stack-boundary=3 22# (8B stack alignment). 23CFLAGS_$(AMDDALPATH)/dc/dcn302/dcn302_resource.o += -mpreferred-stack-boundary=4 24else 25CFLAGS_$(AMDDALPATH)/dc/dcn302/dcn302_resource.o += -msse2 26endif 27endif 28 29AMD_DAL_DCN3_02 = $(addprefix $(AMDDALPATH)/dc/dcn302/,$(DCN3_02)) 30 31AMD_DISPLAY_FILES += $(AMD_DAL_DCN3_02)