Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit ee592884 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Palmer Dabbelt
Browse files

riscv: move GCC version check for ARCH_SUPPORTS_INT128 to Kconfig



This becomes much neater in Kconfig.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
parent f31b8de9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -113,6 +113,7 @@ config ARCH_RV32I
config ARCH_RV64I
	bool "RV64I"
	select 64BIT
	select ARCH_SUPPORTS_INT128 if GCC_VERSION >= 50000
	select HAVE_FUNCTION_TRACER
	select HAVE_FUNCTION_GRAPH_TRACER
	select HAVE_FTRACE_MCOUNT_RECORD
+0 −2
Original line number Diff line number Diff line
@@ -26,8 +26,6 @@ ifeq ($(CONFIG_ARCH_RV64I),y)
	KBUILD_CFLAGS += -mabi=lp64
	KBUILD_AFLAGS += -mabi=lp64

	KBUILD_CFLAGS	+= $(call cc-ifversion, -ge, 0500, -DCONFIG_ARCH_SUPPORTS_INT128)

	KBUILD_MARCH = rv64im
	KBUILD_LDFLAGS += -melf64lriscv
else