From a5cd9730471abdb4a81d8f0384f3e0c04f4be35e Mon Sep 17 00:00:00 2001 From: Andres AG Date: Mon, 17 Oct 2016 15:23:10 +0100 Subject: [PATCH] Add -march argument to armc6 build tests --- tests/scripts/all.sh | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index d8e7a21cc..5fe9fd877 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -98,6 +98,16 @@ msg() echo "******************************************************************" } +armc6_build_test() +{ + FLAGS="$1" + + msg "build: ARM Compiler 6 ($FLAGS), make" + ARM_TOOL_VARIANT="ult" CC="$ARMC6_CC" AR="$ARMC6_AR" CFLAGS="$FLAGS" \ + WARNING_CFLAGS= make lib + make clean +} + err_msg() { echo "$1" >&2 @@ -460,15 +470,11 @@ scripts/config.pl unset MBEDTLS_PLATFORM_TIME_ALT # depends on MBEDTLS_HAVE_TIME CC="$ARMC5_CC" AR="$ARMC5_AR" WARNING_CFLAGS= make lib make clean -msg "build: ARM Compiler 6 (arm-arm-none-eabi), make" -ARM_TOOL_VARIANT="ult" CC="$ARMC6_CC" AR="$ARMC6_AR" \ - CFLAGS="--target=arm-arm-none-eabi" WARNING_CFLAGS= make lib -make clean - -msg "build: ARM Compiler 6 (aarch64-arm-none-eabi), make" -ARM_TOOL_VARIANT="ult" CC="$ARMC6_CC" AR="$ARMC6_AR" \ - CFLAGS="--target=aarch64-arm-none-eabi" WARNING_CFLAGS= make lib -make clean +armc6_build_test "--target=arm-arm-none-eabi -march=armv7-a" +armc6_build_test "--target=arm-arm-none-eabi -march=armv7-m" +armc6_build_test "--target=arm-arm-none-eabi -march=armv8.2-a" +armc6_build_test "--target=arm-arm-none-eabi -march=armv8-m.main" +armc6_build_test "--target=aarch64-arm-none-eabi" if which i686-w64-mingw32-gcc >/dev/null; then msg "build: cross-mingw64, make" # ~ 30s