1 # SPDX-License-Identifier: MIT
3 # Makefile for the 'dsc' sub-component of DAL.
6 dsc_ccflags
:= -mhard-float
-msse
10 dsc_ccflags
:= -mhard-float
-maltivec
13 ifdef CONFIG_CC_IS_GCC
14 ifeq ($(call cc-ifversion
, -lt
, 0701, y
), y
)
21 # Stack alignment mismatch, proceed with caution.
22 # GCC < 7.1 cannot compile code using `double` and -mpreferred-stack-boundary=3
23 # (8B stack alignment).
24 dsc_ccflags
+= -mpreferred-stack-boundary
=4
30 CFLAGS_
$(AMDDALPATH
)/dc
/dsc
/rc_calc.o
:= $(dsc_ccflags
)
31 CFLAGS_REMOVE_
$(AMDDALPATH
)/dc
/dsc
/rc_calc.o
:= $(dsc_rcflags
)
33 DSC
= dc_dsc.o rc_calc.o rc_calc_dpi.o
35 AMD_DAL_DSC
= $(addprefix $(AMDDALPATH
)/dc
/dsc
/,$(DSC
))
37 AMD_DISPLAY_FILES
+= $(AMD_DAL_DSC
)