1# 2# Makefile for the 'dsc' sub-component of DAL. 3 4ifneq ($(call cc-option, -mpreferred-stack-boundary=4),) 5 cc_stack_align := -mpreferred-stack-boundary=4 6else ifneq ($(call cc-option, -mstack-alignment=16),) 7 cc_stack_align := -mstack-alignment=16 8endif 9 10dsc_ccflags := -mhard-float -msse $(cc_stack_align) 11 12ifdef CONFIG_CC_IS_CLANG 13dsc_ccflags += -msse2 14endif 15 16CFLAGS_$(AMDDALPATH)/dc/dsc/rc_calc.o := $(dsc_ccflags) 17CFLAGS_$(AMDDALPATH)/dc/dsc/rc_calc_dpi.o := $(dsc_ccflags) 18CFLAGS_$(AMDDALPATH)/dc/dsc/dc_dsc.o := $(dsc_ccflags) 19 20DSC = dc_dsc.o rc_calc.o rc_calc_dpi.o 21 22AMD_DAL_DSC = $(addprefix $(AMDDALPATH)/dc/dsc/,$(DSC)) 23 24AMD_DISPLAY_FILES += $(AMD_DAL_DSC) 25