From ada71ff2a078b5de3c42f5b5a7c00e89fd2f708d Mon Sep 17 00:00:00 2001 From: "Kirill K. Smirnov" Date: Sun, 9 Jul 2023 23:06:17 +0300 Subject: Properly build multilib bare-metal RISC-V To build multilib RISC-V toolchain one should use --with-multilib-generator option instead of --with-multilib-list. Add corresponding example configuration file. Signed-off-by: Kirill K. Smirnov --- config/cc/gcc.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'config') diff --git a/config/cc/gcc.in b/config/cc/gcc.in index 6d2e0e38..1f50460a 100644 --- a/config/cc/gcc.in +++ b/config/cc/gcc.in @@ -81,6 +81,7 @@ config CC_GCC_EXTRA_CONFIG_ARRAY config CC_GCC_MULTILIB_LIST string "List of multilib variants" depends on MULTILIB + depends on ! (ARCH_RISCV && BARE_METAL) default "m2,m2e,m4,m4-single,m4-single-only,m2a,m2a-single" if GCC_11_or_later && ARCH_SH default "aprofile,rmprofile" if ARCH_ARM && ARCH_32 help @@ -89,6 +90,18 @@ config CC_GCC_MULTILIB_LIST for the format of this option for a particular architecture. Leave empty to use the default list for this architecture. +config CC_GCC_MULTILIB_GENERATOR + string "Generator of RISC-V multilib variants" + depends on MULTILIB + depends on (ARCH_RISCV && BARE_METAL) + default "" + help + Multilib generator for RISC-V architecture. + + For more information please refer to gcc manual + + If unsure, leave empty. + config STATIC_TOOLCHAIN bool select CC_GCC_STATIC_LIBSTDCXX -- cgit v1.2.3