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