mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-30 05:04:14 +01:00
all.sh: new option --no-armcc
With this option, don't run anything that requires armcc, so the script can run offline.
This commit is contained in:
parent
ded50da458
commit
273ac90383
@ -34,6 +34,7 @@ MEMORY=0
|
|||||||
FORCE=0
|
FORCE=0
|
||||||
KEEP_GOING=0
|
KEEP_GOING=0
|
||||||
RELEASE=0
|
RELEASE=0
|
||||||
|
RUN_ARMCC=1
|
||||||
|
|
||||||
# Default commands, can be overriden by the environment
|
# Default commands, can be overriden by the environment
|
||||||
: ${OPENSSL:="openssl"}
|
: ${OPENSSL:="openssl"}
|
||||||
@ -54,6 +55,8 @@ General options:
|
|||||||
-f|--force Force the tests to overwrite any modified files.
|
-f|--force Force the tests to overwrite any modified files.
|
||||||
-k|--keep-going Run all tests and report errors at the end.
|
-k|--keep-going Run all tests and report errors at the end.
|
||||||
-m|--memory Additional optional memory tests.
|
-m|--memory Additional optional memory tests.
|
||||||
|
--armcc Run ARM Compiler builds (on by default).
|
||||||
|
--no-armcc Skip ARM Compiler builds.
|
||||||
--out-of-source-dir=<path> Directory used for CMake out-of-source build tests.
|
--out-of-source-dir=<path> Directory used for CMake out-of-source build tests.
|
||||||
-r|--release-test Run this script in release mode. This fixes the seed value to 1.
|
-r|--release-test Run this script in release mode. This fixes the seed value to 1.
|
||||||
-s|--seed Integer seed value to use for this test run.
|
-s|--seed Integer seed value to use for this test run.
|
||||||
@ -126,6 +129,9 @@ check_tools()
|
|||||||
|
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
--armcc)
|
||||||
|
RUN_ARMCC=1
|
||||||
|
;;
|
||||||
--force|-f)
|
--force|-f)
|
||||||
FORCE=1
|
FORCE=1
|
||||||
;;
|
;;
|
||||||
@ -155,6 +161,9 @@ while [ $# -gt 0 ]; do
|
|||||||
--memory|-m)
|
--memory|-m)
|
||||||
MEMORY=1
|
MEMORY=1
|
||||||
;;
|
;;
|
||||||
|
--no-armcc)
|
||||||
|
RUN_ARMCC=0
|
||||||
|
;;
|
||||||
--openssl)
|
--openssl)
|
||||||
shift
|
shift
|
||||||
OPENSSL="$1"
|
OPENSSL="$1"
|
||||||
@ -296,7 +305,10 @@ 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"
|
||||||
|
if [ $RUN_ARMCC -ne 0 ]; then
|
||||||
|
check_tools "armcc"
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Test Suites to be executed
|
# Test Suites to be executed
|
||||||
@ -472,25 +484,27 @@ scripts/config.pl unset POLARSSL_MEMORY_BACKTRACE # execinfo.h
|
|||||||
scripts/config.pl unset POLARSSL_MEMORY_BUFFER_ALLOC_C # calls exit
|
scripts/config.pl unset POLARSSL_MEMORY_BUFFER_ALLOC_C # calls exit
|
||||||
make CC=arm-none-eabi-gcc AR=arm-none-eabi-ar LD=arm-none-eabi-ld CFLAGS=-Werror lib
|
make CC=arm-none-eabi-gcc AR=arm-none-eabi-ar LD=arm-none-eabi-ld CFLAGS=-Werror lib
|
||||||
|
|
||||||
msg "build: armcc, make"
|
if [ $RUN_ARMCC -ne 0 ]; then
|
||||||
cleanup
|
msg "build: armcc, make"
|
||||||
cp "$CONFIG_H" "$CONFIG_BAK"
|
cleanup
|
||||||
scripts/config.pl full
|
cp "$CONFIG_H" "$CONFIG_BAK"
|
||||||
scripts/config.pl unset POLARSSL_NET_C
|
scripts/config.pl full
|
||||||
scripts/config.pl unset POLARSSL_TIMING_C
|
scripts/config.pl unset POLARSSL_NET_C
|
||||||
scripts/config.pl unset POLARSSL_FS_IO
|
scripts/config.pl unset POLARSSL_TIMING_C
|
||||||
scripts/config.pl unset POLARSSL_HAVE_TIME
|
scripts/config.pl unset POLARSSL_FS_IO
|
||||||
scripts/config.pl unset POLARSSL_ERROR_STRERROR_BC # deprecated
|
scripts/config.pl unset POLARSSL_HAVE_TIME
|
||||||
scripts/config.pl unset POLARSSL_PBKDF2_C # deprecated
|
scripts/config.pl unset POLARSSL_ERROR_STRERROR_BC # deprecated
|
||||||
scripts/config.pl set POLARSSL_NO_PLATFORM_ENTROPY
|
scripts/config.pl unset POLARSSL_PBKDF2_C # deprecated
|
||||||
# following things are not in the default config
|
scripts/config.pl set POLARSSL_NO_PLATFORM_ENTROPY
|
||||||
scripts/config.pl unset POLARSSL_DEPRECATED_WARNING
|
# following things are not in the default config
|
||||||
scripts/config.pl unset POLARSSL_HAVEGE_C # depends on timing.c
|
scripts/config.pl unset POLARSSL_DEPRECATED_WARNING
|
||||||
scripts/config.pl unset POLARSSL_THREADING_PTHREAD
|
scripts/config.pl unset POLARSSL_HAVEGE_C # depends on timing.c
|
||||||
scripts/config.pl unset POLARSSL_THREADING_C
|
scripts/config.pl unset POLARSSL_THREADING_PTHREAD
|
||||||
scripts/config.pl unset POLARSSL_MEMORY_BACKTRACE # execinfo.h
|
scripts/config.pl unset POLARSSL_THREADING_C
|
||||||
scripts/config.pl unset POLARSSL_MEMORY_BUFFER_ALLOC_C # calls exit
|
scripts/config.pl unset POLARSSL_MEMORY_BACKTRACE # execinfo.h
|
||||||
make CC=armcc AR=armar WARNING_CFLAGS= lib
|
scripts/config.pl unset POLARSSL_MEMORY_BUFFER_ALLOC_C # calls exit
|
||||||
|
make CC=armcc AR=armar WARNING_CFLAGS= lib
|
||||||
|
fi
|
||||||
|
|
||||||
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