Skip to content

Commit

Permalink
riscv: move GCC version check for ARCH_SUPPORTS_INT128 to Kconfig
Browse files Browse the repository at this point in the history
This becomes much neater in Kconfig.

Signed-off-by: Masahiro Yamada <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
  • Loading branch information
masahir0y authored and palmer-dabbelt committed Oct 23, 2018
1 parent f31b8de commit ee59288
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions arch/riscv/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions arch/riscv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,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
Expand Down

0 comments on commit ee59288

Please sign in to comment.