treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / gpu / drm / amd / display / dc / dcn21 / Makefile
blob07684d3e375abdceafeb2c43c82259f35a61fb32
1 # SPDX-License-Identifier: MIT
3 # Makefile for DCN21.
5 DCN21 = dcn21_init.o dcn21_hubp.o dcn21_hubbub.o dcn21_resource.o \
6 dcn21_hwseq.o dcn21_link_encoder.o
8 ifdef CONFIG_X86
9 CFLAGS_$(AMDDALPATH)/dc/dcn21/dcn21_resource.o := -mhard-float -msse
10 endif
12 ifdef CONFIG_PPC64
13 CFLAGS_$(AMDDALPATH)/dc/dcn21/dcn21_resource.o := -mhard-float -maltivec
14 endif
16 ifdef CONFIG_CC_IS_GCC
17 ifeq ($(call cc-ifversion, -lt, 0701, y), y)
18 IS_OLD_GCC = 1
19 endif
20 endif
22 ifdef CONFIG_X86
23 ifdef 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).
27 CFLAGS_$(AMDDALPATH)/dc/dcn21/dcn21_resource.o += -mpreferred-stack-boundary=4
28 else
29 CFLAGS_$(AMDDALPATH)/dc/dcn21/dcn21_resource.o += -msse2
30 endif
31 endif
33 AMD_DAL_DCN21 = $(addprefix $(AMDDALPATH)/dc/dcn21/,$(DCN21))
35 AMD_DISPLAY_FILES += $(AMD_DAL_DCN21)