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 --- scripts/build/cc/gcc.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts') diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index 35ac96e1..f14f31da 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -541,6 +541,9 @@ do_gcc_core_backend() { if [ -n "${CT_CC_GCC_MULTILIB_LIST}" ]; then extra_config+=("--with-multilib-list=${CT_CC_GCC_MULTILIB_LIST}") fi + if [ -n "${CT_CC_GCC_MULTILIB_GENERATOR}" ]; then + extra_config+=("--with-multilib-generator=${CT_CC_GCC_MULTILIB_GENERATOR}") + fi fi CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'" @@ -1202,6 +1205,9 @@ do_gcc_backend() { if [ -n "${CT_CC_GCC_MULTILIB_LIST}" ]; then extra_config+=("--with-multilib-list=${CT_CC_GCC_MULTILIB_LIST}") fi + if [ -n "${CT_CC_GCC_MULTILIB_GENERATOR}" ]; then + extra_config+=("--with-multilib-generator=${CT_CC_GCC_MULTILIB_GENERATOR}") + fi fi CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'" -- cgit v1.2.3