Skip to content

Commit b0f5ef9

Browse files
YukariChibaopsiff
authored andcommitted
drm/amd/display: dont subst v without RISCV_ISA_V
Prevent v in rv64 to be removed by subst. Signed-off-by: Yukari Chiba <[email protected]>
1 parent cdc96b8 commit b0f5ef9

File tree

1 file changed

+4
-0
lines changed
  • drivers/gpu/drm/amd/display/dc/dml

1 file changed

+4
-0
lines changed

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

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

4646
ifdef CONFIG_RISCV
4747
include $(srctree)/arch/riscv/Makefile.isa
48+
ifdef CONFIG_RISCV_ISA_V
4849
# Remove V from the ISA string, like in arch/riscv/Makefile, but keep F and D.
4950
dml_ccflags := -march=$(subst v,,$(riscv-march-y))
51+
else
52+
dml_ccflags := -march=$(riscv-march-y)
53+
endif
5054
endif
5155

5256
ifdef CONFIG_CC_IS_GCC

0 commit comments

Comments
 (0)