1#
2# (c) Copyright 2020 Advanced Micro Devices, Inc. All the rights reserved
3#
4#  All rights reserved.  This notice is intended as a precaution against
5#  inadvertent publication and does not imply publication or any waiver
6#  of confidentiality.  The year included in the foregoing notice is the
7#  year of creation of the work.
8#
9#  Authors: AMD
10#
11# Makefile for dcn321.
12
13DCN321 = dcn321_resource.o dcn321_dio_link_encoder.o
14
15CFLAGS_$(AMDDALPATH)/dc/dcn321/dcn321_resource.o := -mhard-float -msse
16
17ifdef CONFIG_CC_IS_GCC
18ifeq ($(call cc-ifversion, -lt, 0701, y), y)
19IS_OLD_GCC = 1
20endif
21endif
22
23ifdef IS_OLD_GCC
24# Stack alignment mismatch, proceed with caution.
25# GCC < 7.1 cannot compile code using `double` and -mpreferred-stack-boundary=3
26# (8B stack alignment).
27CFLAGS_$(AMDDALPATH)/dc/dcn321/dcn321_resource.o += -mpreferred-stack-boundary=4
28else
29CFLAGS_$(AMDDALPATH)/dc/dcn321/dcn321_resource.o += -msse2
30endif
31
32AMD_DAL_DCN321 = $(addprefix $(AMDDALPATH)/dc/dcn321/,$(DCN321))
33
34AMD_DISPLAY_FILES += $(AMD_DAL_DCN321)
35