summaryrefslogtreecommitdiff
path: root/tcwg_bmk-build.sh
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2021-03-04 20:59:51 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2021-03-07 15:59:04 +0000
commit712c7e9a312c4b4200d6dc261b1a1eb27e1ad787 (patch)
tree965fa750d949c41ee76500e06949b92d7214d339 /tcwg_bmk-build.sh
parent548cf38e5fc4c06d8d3a09b6efaadc144c8ccc63 (diff)
tcwg_bmk-build.sh: Speed up toolchain builds for arm-eabi
Hardcode the cpu/float-abit/mode to speed up toolchain builds: the alternative of building rmprofile multilibs takes a very long time. Setting the values here has the drawback that we have to build one toolchain per board type. The only stm32 board we have currently has a cortex-m4 with FPU. Change-Id: Ia2626405f9a6ed42915e7b575465d82b6c44871c
Diffstat (limited to 'tcwg_bmk-build.sh')
-rwxr-xr-xtcwg_bmk-build.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/tcwg_bmk-build.sh b/tcwg_bmk-build.sh
index f30bf662..3cfb7f2b 100755
--- a/tcwg_bmk-build.sh
+++ b/tcwg_bmk-build.sh
@@ -94,9 +94,17 @@ esac
# We need to test revisions during that time period for performance regressions.
gcc_override_configure+=("--set" "gcc_override_configure=--disable-libsanitizer")
-# Enable the right multilibs depending on the target.
+# Build the right libs depending on the target. Hardcode the
+# cpu/float-abit/mode to speed up toolchain builds: the alternative of
+# building rmprofile multilibs takes a very long time. Setting the
+# values here has the drawback that we have to build one toolchain per
+# board type.
case "${rr[target]}" in
- "arm_eabi") gcc_override_configure+=("--set" "multilib=rmprofile") ;;
+ "arm_eabi") gcc_override_configure+=("--set" "gcc_override_configure=--disable-multilib"
+ "--set" "gcc_override_configure=--with-cpu=cortex-m4"
+ "--set" "gcc_override_configure=--with-mode=thumb"
+ "--set" "gcc_override_configure=--with-float=hard"
+ ) ;;
esac
case "${rr[toolchain]}" in