aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKirill K. Smirnov <kirill.k.smirnov@gmail.com>2023-07-09 23:06:17 +0300
committerChris Packham <judge.packham@gmail.com>2023-07-14 14:01:08 +1200
commitada71ff2a078b5de3c42f5b5a7c00e89fd2f708d (patch)
tree28cd707f243d94f084a8b9d71b0a7bfba23bff97 /scripts
parent11d286dbc9e045cd5c7c6d809a679d77db123cae (diff)
downloadcrosstool-ng-ada71ff2a078b5de3c42f5b5a7c00e89fd2f708d.tar.gz
crosstool-ng-ada71ff2a078b5de3c42f5b5a7c00e89fd2f708d.tar.bz2
crosstool-ng-ada71ff2a078b5de3c42f5b5a7c00e89fd2f708d.zip
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 <kirill.k.smirnov@gmail.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/cc/gcc.sh6
1 files changed, 6 insertions, 0 deletions
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[*]}'"