diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2017-10-18 21:48:55 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2017-10-18 21:48:55 +0000 |
commit | 16d3231e23f061422c1dcc6108df00e642eb6312 (patch) | |
tree | 13aa1d8162d46d0e90ae8912d9d41fca0643b96c /abe-bisect-helper.sh | |
parent | 8a3aad049648cb06af91b56ed2c374518039004a (diff) |
abe-bisect.sh, abe-bisect-helper.sh: Add support for CPU,FPU,MODE.
Add support for the CPU,FPU and MODE overrides via the new
ABE option: --set gcc_override_configure=XXX
Change-Id: I14e55ac6c236478583cb10363d68286a9a4d6805
Diffstat (limited to 'abe-bisect-helper.sh')
-rwxr-xr-x | abe-bisect-helper.sh | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/abe-bisect-helper.sh b/abe-bisect-helper.sh index 983c7232..eefe14a2 100755 --- a/abe-bisect-helper.sh +++ b/abe-bisect-helper.sh @@ -34,7 +34,25 @@ git --no-pager show $REV set -x cd ${RUNDIR} -${ABE}/abe.sh --target ${TARGET} gcc=gcc.git@${REV} --set runtestflags="${EXP}=${TESTNAME}" --build all --check gcc --excludecheck gdb >& gcc-${REV}.log +# Build list of gcc configure options depending on cpu/fpu/mode +GCC_OVERRIDE_CONFIGURE= +if [ x"${CPU}" != x ]; then + GCC_OVERRIDE_CONFIGURE="${GCC_OVERRIDE_CONFIGURE} --set gcc_override_configure=--with-cpu=${CPU}" +fi +if [ x"${FPU}" != x ]; then + GCC_OVERRIDE_CONFIGURE="${GCC_OVERRIDE_CONFIGURE} --set gcc_override_configure=--with-fpu=${FPU}" +fi +if [ x"${MODE}" != x ]; then + GCC_OVERRIDE_CONFIGURE="${GCC_OVERRIDE_CONFIGURE} --set gcc_override_configure=--with-mode=${MODE}" +fi + +${ABE}/abe.sh --target ${TARGET} \ + gcc=gcc.git@${REV} \ + --set runtestflags="${EXP}=${TESTNAME}" \ + ${GCC_OVERRIDE_CONFIGURE} \ + --build all \ + --check gcc\ + --excludecheck gdb >& gcc-${REV}.log [ $? -ne 0 ] && exit 125 sums=`find builds/*/${TARGET}/gcc.git~master_rev_${REV}-stage2/ -name "*.sum"` |