diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2020-08-17 13:14:24 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2020-09-03 09:12:21 +0000 |
commit | 5c8768c199441a84b942d9993d94a06262abd85b (patch) | |
tree | 88028fed0911d15edda1c9c820b514514574784f | |
parent | 70b59f1a28af39fe02ea61cbeef2b449ccec389e (diff) |
tcwg_bmk-build.sh, jenkins-helpers.sh: Add support for arm-eabi target
This is useful to run benchmarks on stm32 boards (Cortex-M,
bare-metal).
Change-Id: I115b982effea9d0ddebe990d74f8bb6c72806778
-rw-r--r-- | jenkins-helpers.sh | 1 | ||||
-rwxr-xr-x | tcwg_bmk-build.sh | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/jenkins-helpers.sh b/jenkins-helpers.sh index 71d60a22..473d16e2 100644 --- a/jenkins-helpers.sh +++ b/jenkins-helpers.sh @@ -1017,6 +1017,7 @@ print_gnu_target () fi case "$target" in "aarch64") target="aarch64-linux-gnu" ;; + "arm-eabi") target="arm-eabi" ;; "arm"*) target="arm-linux-gnueabihf" ;; "x86_64") target="x86_64-linux-gnu" ;; *) echo "ERROR: Unknown target $target" >&2; exit 1 ;; diff --git a/tcwg_bmk-build.sh b/tcwg_bmk-build.sh index b2bbda42..51e33616 100755 --- a/tcwg_bmk-build.sh +++ b/tcwg_bmk-build.sh @@ -72,6 +72,10 @@ for i in $(seq 0 $(("${#cflags[@]}" - 1))); do cflags_mode=arm cflags[$i]="${cflags[$i]}_marm" ;; + "arm-eabi:"*) + cflags_mode=thumb + cflags[$i]="${cflags[$i]}_thumb" + ;; esac if [ x"$gcc_mode" = x"" ]; then gcc_mode="$cflags_mode" @@ -213,6 +217,7 @@ benchmark () local hw results_top image_arch results_id case "${rr[target]}" in armv8*) hw=tx1; results_top=tx1_32; image_arch=armhf ;; + arm-eabi) hw=stm32; results_top=STM32L476RGTx; image_arch=armhf ;; arm*) hw=tk1; results_top=tk1_32; image_arch=armhf ;; aarch64*) hw=tx1; results_top=tx1_64; image_arch=arm64 ;; *) echo "ERROR: Unknown target ${rr[target]}"; exit 1 ;; |