mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 18:34:17 +01:00
Add ARM Compiler 6 build tests to all.sh
This commit is contained in:
parent
710dd4fdd6
commit
87bb577cfb
@ -22,12 +22,31 @@ echo "* Operating system and architecture:"
|
|||||||
uname -a
|
uname -a
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
if [ -n "${ARMC5_CC+set}" ]; then
|
||||||
|
if `hash "$ARMC5_CC" > /dev/null 2>&1`; then
|
||||||
|
echo "* $ARMC5_CC at environment variable 'ARMC5_CC':"
|
||||||
|
$ARMC5_CC --vsn | head -n 2
|
||||||
|
else
|
||||||
|
echo "* $ARMC5_CC at environment variable 'ARMC5_CC' not found!"
|
||||||
|
fi
|
||||||
|
else
|
||||||
if `hash armcc > /dev/null 2>&1`; then
|
if `hash armcc > /dev/null 2>&1`; then
|
||||||
echo "* armcc:"
|
echo "* armcc:"
|
||||||
armcc --vsn | head -n 2
|
armcc --vsn | head -n 2
|
||||||
else
|
else
|
||||||
echo "* armcc not found!"
|
echo "* armcc not found!"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "${ARMC6_CC+set}" ]; then
|
||||||
|
echo
|
||||||
|
if `hash "$ARMC6_CC" > /dev/null 2>&1`; then
|
||||||
|
echo "* $ARMC6_CC at environment variable 'ARMC6_CC':"
|
||||||
|
$ARMC6_CC --vsn | head -n 2
|
||||||
|
else
|
||||||
|
echo "* $ARMC6_CC at environment variable 'ARMC6_CC' not found!"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
if `hash arm-none-eabi-gcc > /dev/null 2>&1`; then
|
if `hash arm-none-eabi-gcc > /dev/null 2>&1`; then
|
||||||
|
@ -45,6 +45,8 @@ RELEASE=0
|
|||||||
: ${GNUTLS_LEGACY_CLI:="$GNUTLS_CLI"}
|
: ${GNUTLS_LEGACY_CLI:="$GNUTLS_CLI"}
|
||||||
: ${GNUTLS_LEGACY_SERV:="$GNUTLS_SERV"}
|
: ${GNUTLS_LEGACY_SERV:="$GNUTLS_SERV"}
|
||||||
: ${OUT_OF_SOURCE_DIR:=./mbedtls_out_of_source_build}
|
: ${OUT_OF_SOURCE_DIR:=./mbedtls_out_of_source_build}
|
||||||
|
: ${ARMC5_BIN_DIR:=/usr/bin}
|
||||||
|
: ${ARMC6_BIN_DIR:=/usr/bin}
|
||||||
|
|
||||||
# if MAKEFLAGS is not set add the -j option to speed up invocations of make
|
# if MAKEFLAGS is not set add the -j option to speed up invocations of make
|
||||||
if [ -n "${MAKEFLAGS+set}" ]; then
|
if [ -n "${MAKEFLAGS+set}" ]; then
|
||||||
@ -66,6 +68,8 @@ usage()
|
|||||||
printf " --gnutls-serv=<GnuTLS_serv_path>\t\tPath to GnuTLS server executable to use for most tests.\n"
|
printf " --gnutls-serv=<GnuTLS_serv_path>\t\tPath to GnuTLS server executable to use for most tests.\n"
|
||||||
printf " --gnutls-legacy-cli=<GnuTLS_cli_path>\t\tPath to GnuTLS client executable to use for legacy tests.\n"
|
printf " --gnutls-legacy-cli=<GnuTLS_cli_path>\t\tPath to GnuTLS client executable to use for legacy tests.\n"
|
||||||
printf " --gnutls-legacy-serv=<GnuTLS_serv_path>\t\tPath to GnuTLS server executable to use for legacy tests.\n"
|
printf " --gnutls-legacy-serv=<GnuTLS_serv_path>\t\tPath to GnuTLS server executable to use for legacy tests.\n"
|
||||||
|
printf " --armc5-bin-dir=<ARMC5_bin_dir_path>\t\tPath to the ARM Compiler 5 bin directory.\n"
|
||||||
|
printf " --armc6-bin-dir=<ARMC6_bin_dir_path>\t\tPath to the ARM Compiler 6 bin directory.\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
# remove built files as well as the cmake cache/config
|
# remove built files as well as the cmake cache/config
|
||||||
@ -152,6 +156,14 @@ while [ $# -gt 0 ]; do
|
|||||||
shift
|
shift
|
||||||
GNUTLS_LEGACY_SERV="$1"
|
GNUTLS_LEGACY_SERV="$1"
|
||||||
;;
|
;;
|
||||||
|
--armc5-bin-dir)
|
||||||
|
shift
|
||||||
|
ARMC5_BIN_DIR="$1"
|
||||||
|
;;
|
||||||
|
--armc6-bin-dir)
|
||||||
|
shift
|
||||||
|
ARMC6_BIN_DIR="$1"
|
||||||
|
;;
|
||||||
--help|-h|*)
|
--help|-h|*)
|
||||||
usage
|
usage
|
||||||
exit 1
|
exit 1
|
||||||
@ -204,6 +216,13 @@ echo "GNUTLS_CLI: $GNUTLS_CLI"
|
|||||||
echo "GNUTLS_SERV: $GNUTLS_SERV"
|
echo "GNUTLS_SERV: $GNUTLS_SERV"
|
||||||
echo "GNUTLS_LEGACY_CLI: $GNUTLS_LEGACY_CLI"
|
echo "GNUTLS_LEGACY_CLI: $GNUTLS_LEGACY_CLI"
|
||||||
echo "GNUTLS_LEGACY_SERV: $GNUTLS_LEGACY_SERV"
|
echo "GNUTLS_LEGACY_SERV: $GNUTLS_LEGACY_SERV"
|
||||||
|
echo "ARMC5_BIN_DIR: $ARMC5_BIN_DIR"
|
||||||
|
echo "ARMC6_BIN_DIR: $ARMC6_BIN_DIR"
|
||||||
|
|
||||||
|
ARMC5_CC="$ARMC5_BIN_DIR/armcc"
|
||||||
|
ARMC5_AR="$ARMC5_BIN_DIR/armar"
|
||||||
|
ARMC6_CC="$ARMC6_BIN_DIR/armclang"
|
||||||
|
ARMC6_AR="$ARMC6_BIN_DIR/armar"
|
||||||
|
|
||||||
# To avoid setting OpenSSL and GnuTLS for each call to compat.sh and ssl-opt.sh
|
# To avoid setting OpenSSL and GnuTLS for each call to compat.sh and ssl-opt.sh
|
||||||
# we just export the variables they require
|
# we just export the variables they require
|
||||||
@ -217,7 +236,7 @@ export GNUTLS_SERV="$GNUTLS_SERV"
|
|||||||
# Make sure the tools we need are available.
|
# Make sure the tools we need are available.
|
||||||
check_tools "$OPENSSL" "$OPENSSL_LEGACY" "$GNUTLS_CLI" "$GNUTLS_SERV" \
|
check_tools "$OPENSSL" "$OPENSSL_LEGACY" "$GNUTLS_CLI" "$GNUTLS_SERV" \
|
||||||
"$GNUTLS_LEGACY_CLI" "$GNUTLS_LEGACY_SERV" "doxygen" "dot" \
|
"$GNUTLS_LEGACY_CLI" "$GNUTLS_LEGACY_SERV" "doxygen" "dot" \
|
||||||
"arm-none-eabi-gcc" "armcc"
|
"arm-none-eabi-gcc" "$ARMC5_CC" "$ARMC5_AR" "$ARMC6_CC" "$ARMC6_AR"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Test Suites to be executed
|
# Test Suites to be executed
|
||||||
@ -233,7 +252,8 @@ check_tools "$OPENSSL" "$OPENSSL_LEGACY" "$GNUTLS_CLI" "$GNUTLS_SERV" \
|
|||||||
msg "info: output_env.sh"
|
msg "info: output_env.sh"
|
||||||
OPENSSL="$OPENSSL" OPENSSL_LEGACY="$OPENSSL_LEGACY" GNUTLS_CLI="$GNUTLS_CLI" \
|
OPENSSL="$OPENSSL" OPENSSL_LEGACY="$OPENSSL_LEGACY" GNUTLS_CLI="$GNUTLS_CLI" \
|
||||||
GNUTLS_SERV="$GNUTLS_SERV" GNUTLS_LEGACY_CLI="$GNUTLS_LEGACY_CLI" \
|
GNUTLS_SERV="$GNUTLS_SERV" GNUTLS_LEGACY_CLI="$GNUTLS_LEGACY_CLI" \
|
||||||
GNUTLS_LEGACY_SERV="$GNUTLS_LEGACY_SERV" scripts/output_env.sh
|
GNUTLS_LEGACY_SERV="$GNUTLS_LEGACY_SERV" ARMC5_CC="$ARMC5_CC" \
|
||||||
|
ARMC6_CC="$ARMC6_CC" scripts/output_env.sh
|
||||||
|
|
||||||
msg "test: recursion.pl" # < 1s
|
msg "test: recursion.pl" # < 1s
|
||||||
tests/scripts/recursion.pl library/*.c
|
tests/scripts/recursion.pl library/*.c
|
||||||
@ -417,7 +437,7 @@ scripts/config.pl unset MBEDTLS_MEMORY_BACKTRACE # execinfo.h
|
|||||||
scripts/config.pl unset MBEDTLS_MEMORY_BUFFER_ALLOC_C # calls exit
|
scripts/config.pl unset MBEDTLS_MEMORY_BUFFER_ALLOC_C # calls exit
|
||||||
CC=arm-none-eabi-gcc AR=arm-none-eabi-ar LD=arm-none-eabi-ld CFLAGS=-Werror make lib
|
CC=arm-none-eabi-gcc AR=arm-none-eabi-ar LD=arm-none-eabi-ld CFLAGS=-Werror make lib
|
||||||
|
|
||||||
msg "build: armcc, make"
|
msg "build: ARM Compiler 5, make"
|
||||||
cleanup
|
cleanup
|
||||||
cp "$CONFIG_H" "$CONFIG_BAK"
|
cp "$CONFIG_H" "$CONFIG_BAK"
|
||||||
scripts/config.pl full
|
scripts/config.pl full
|
||||||
@ -436,7 +456,19 @@ scripts/config.pl unset MBEDTLS_THREADING_C
|
|||||||
scripts/config.pl unset MBEDTLS_MEMORY_BACKTRACE # execinfo.h
|
scripts/config.pl unset MBEDTLS_MEMORY_BACKTRACE # execinfo.h
|
||||||
scripts/config.pl unset MBEDTLS_MEMORY_BUFFER_ALLOC_C # calls exit
|
scripts/config.pl unset MBEDTLS_MEMORY_BUFFER_ALLOC_C # calls exit
|
||||||
scripts/config.pl unset MBEDTLS_PLATFORM_TIME_ALT # depends on MBEDTLS_HAVE_TIME
|
scripts/config.pl unset MBEDTLS_PLATFORM_TIME_ALT # depends on MBEDTLS_HAVE_TIME
|
||||||
CC=armcc AR=armar WARNING_CFLAGS= make lib
|
|
||||||
|
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
|
||||||
|
|
||||||
if which i686-w64-mingw32-gcc >/dev/null; then
|
if which i686-w64-mingw32-gcc >/dev/null; then
|
||||||
msg "build: cross-mingw64, make" # ~ 30s
|
msg "build: cross-mingw64, make" # ~ 30s
|
||||||
|
Loading…
Reference in New Issue
Block a user