Skip to content

Commit badab6a

Browse files
committed
drm/amd/display: Fix dc dml march cause riscv build failed
We must carefully when remove the march substr. otherwise it will cause build failed when CONFIG_RISCV_V Log: CC [M] drivers/gpu/drm/amd/amdgpu/../display/dc/dml/display_mode_lib.o riscv64-linux-gnu-gcc: error: ‘-march=r64imafdc_zicsr_zifencei_zihintpause’: ISA string must begin with rv32 or rv64 Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent b0f5ef9 commit badab6a

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

  • drivers/gpu/drm/amd/display/dc/dml

drivers/gpu/drm/amd/display/dc/dml/Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,8 @@ endif
4545

4646
ifdef CONFIG_RISCV
4747
include $(srctree)/arch/riscv/Makefile.isa
48-
ifdef CONFIG_RISCV_ISA_V
49-
# Remove V from the ISA string, like in arch/riscv/Makefile, but keep F and D.
50-
dml_ccflags := -march=$(subst v,,$(riscv-march-y))
51-
else
5248
dml_ccflags := -march=$(riscv-march-y)
5349
endif
54-
endif
5550

5651
ifdef CONFIG_CC_IS_GCC
5752
ifneq ($(call gcc-min-version, 70100),y)

0 commit comments

Comments
 (0)