1# 2# Makefile for the 'dsc' sub-component of DAL. 3 4dsc_ccflags := -mhard-float -msse 5 6ifdef CONFIG_CC_IS_GCC 7ifeq ($(call cc-ifversion, -lt, 0701, y), y) 8IS_OLD_GCC = 1 9endif 10endif 11 12ifdef IS_OLD_GCC 13# Stack alignment mismatch, proceed with caution. 14# GCC < 7.1 cannot compile code using `double` and -mpreferred-stack-boundary=3 15# (8B stack alignment). 16dsc_ccflags += -mpreferred-stack-boundary=4 17endif 18 19ifdef CONFIG_CC_IS_CLANG 20dsc_ccflags += -msse2 21endif 22 23CFLAGS_$(AMDDALPATH)/dc/dsc/rc_calc.o := $(dsc_ccflags) 24CFLAGS_$(AMDDALPATH)/dc/dsc/rc_calc_dpi.o := $(dsc_ccflags) 25CFLAGS_$(AMDDALPATH)/dc/dsc/dc_dsc.o := $(dsc_ccflags) 26 27DSC = dc_dsc.o rc_calc.o rc_calc_dpi.o 28 29AMD_DAL_DSC = $(addprefix $(AMDDALPATH)/dc/dsc/,$(DSC)) 30 31AMD_DISPLAY_FILES += $(AMD_DAL_DSC) 32