summaryrefslogtreecommitdiff
path: root/tcwg_bmk-build.sh
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2020-10-27 16:00:10 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2020-10-27 16:01:37 +0000
commitce67992bd50928e8e8d922b87da40f8aa6b2b274 (patch)
tree02d417b1b036e4b44e7d38f52c393e82cda40b3f /tcwg_bmk-build.sh
parent3ba33c85c085ec1bedbdf42e4a95af7269fe06c8 (diff)
tcwg_bmk-build.sh: Add support for gnu_eabi toolchain type
gnu_eabi toolchains need to build newlib instead of glibc and linux. In addition to adding support for "gnu_eabi" toolchain type, we also take care of building the right set of components. Change-Id: I1fdba8829d8b8609495e1a9e612701cc7d36c36b
Diffstat (limited to 'tcwg_bmk-build.sh')
-rwxr-xr-xtcwg_bmk-build.sh18
1 files changed, 14 insertions, 4 deletions
diff --git a/tcwg_bmk-build.sh b/tcwg_bmk-build.sh
index 73fde092..516e26e2 100755
--- a/tcwg_bmk-build.sh
+++ b/tcwg_bmk-build.sh
@@ -101,6 +101,8 @@ case "${rr[toolchain]}" in
rr[components]="binutils gcc glibc llvm" ;;
gnu)
rr[components]="binutils gcc glibc" ;;
+ gnu_eabi)
+ rr[components]="binutils gcc newlib" ;;
*) assert_with_msg "Unknown toolchain \"${rr[toolchain]}\"" false ;;
esac
@@ -135,6 +137,7 @@ case "${rr[mode]}" in
gcc) default_start_at="build_abe-stage1" ;;
glibc) default_start_at="build_abe-glibc" ;;
llvm) default_start_at="build_llvm-true" ;;
+ newlib) default_start_at="build_abe-newlib" ;;
*) assert_with_msg \
"Invalid single updated component \"$single_updated_component\"" false
;;
@@ -200,7 +203,7 @@ benchmark ()
bin="$(pwd)/llvm-install/bin"
cc="$bin/"
;;
- gnu)
+ gnu|gnu_eabi)
bmk_ldflags="$bmk_flags"
bin="$(pwd)/abe/builds/destdir/x86_64-unknown-linux-gnu/bin"
cc="$bin/$gnu_target-"
@@ -526,7 +529,7 @@ tcwg_bmk_breakup_updated_components ()
local cc
case "${rr[toolchain]}" in
llvm) cc="llvm" ;;
- gnu) cc="gcc" ;;
+ gnu|gnu_eabi) cc="gcc" ;;
*) assert false ;;
esac
@@ -546,8 +549,15 @@ run_step stop_on_fail -10 reset_artifacts
run_step stop_on_fail x prepare_abe
run_step skip_on_fail -9 build_abe binutils
run_step skip_on_fail -8 build_abe stage1 -- "${gcc_override_configure[@]}"
-run_step skip_on_fail -7 build_abe linux
-run_step skip_on_fail -6 build_abe glibc
+case "${rr[components]}" in
+ *glibc*)
+ run_step skip_on_fail -7 build_abe linux
+ run_step skip_on_fail -6 build_abe glibc
+ ;;
+ *newlib*)
+ run_step skip_on_fail -6 build_abe newlib
+ ;;
+esac
run_step skip_on_fail -5 build_abe stage2 -- "${gcc_override_configure[@]}"
case "${rr[toolchain]}" in
llvm) run_step skip_on_fail -3 build_llvm true ;;