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 17else 18dsc_ccflags += -msse2 19endif 20 21CFLAGS_$(AMDDALPATH)/dc/dsc/rc_calc.o := $(dsc_ccflags) 22CFLAGS_$(AMDDALPATH)/dc/dsc/rc_calc_dpi.o := $(dsc_ccflags) 23CFLAGS_$(AMDDALPATH)/dc/dsc/dc_dsc.o := $(dsc_ccflags) 24 25DSC = dc_dsc.o rc_calc.o rc_calc_dpi.o 26 27AMD_DAL_DSC = $(addprefix $(AMDDALPATH)/dc/dsc/,$(DSC)) 28 29AMD_DISPLAY_FILES += $(AMD_DAL_DSC) 30