summaryrefslogtreecommitdiff
path: root/tcwg_bmk-build.sh
diff options
context:
space:
mode:
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>2021-04-22 15:21:47 +0530
committerPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>2021-05-04 00:53:54 +0000
commit76d01637b035b9ec71b438b4f6bb6be9a7d22649 (patch)
treed903b2519aeacded49595c5842c2295ddc081253 /tcwg_bmk-build.sh
parent9cb2af1d422373d9f7f8921b1f0b22c990d1dd03 (diff)
Set metric from cflags.
Change-Id: Ie9ed975be89cbb39e195969ed3ef2913e28cbcd9
Diffstat (limited to 'tcwg_bmk-build.sh')
-rwxr-xr-xtcwg_bmk-build.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tcwg_bmk-build.sh b/tcwg_bmk-build.sh
index 4f55bfad..84919c8f 100755
--- a/tcwg_bmk-build.sh
+++ b/tcwg_bmk-build.sh
@@ -65,6 +65,10 @@ fi
gcc_mode=""
for i in $(seq 0 $(("${#cflags[@]}" - 1))); do
cflags_mode=""
+ if [[ x"${cflags[$i]}" == x*"VECT"* ]]; then
+ rr[metric]="vect"
+ fi
+
case "${rr[target]}:${cflags[$i]}" in
"arm:"*"mthumb"*) cflags_mode=thumb ;;
"arm:"*"marm"*) cflags_mode=arm ;;
@@ -205,6 +209,7 @@ benchmark ()
local bmk_flags bmk_ldflags reboot run_profile
bmk_flags="$(echo $bmk_cflags | sed -e "s/_/ -/g" -e "s/LTO/flto/g")"
+ bmk_flags="$(echo $bmk_cflags | sed -e "s/_/ -/g" -e "s/VECT/fmetric-vect/g")"
case "$bmk_cflags" in
"-Os"*|"-Oz"*)
reboot=false