From df07003c496ede914c80b93380cf63af5291ee8e Mon Sep 17 00:00:00 2001 From: Pengyu Lv Date: Fri, 24 Feb 2023 16:03:31 +0800 Subject: [PATCH] all.sh: add support function for build_armcc With this change, "--list-components" will not list "build_armcc" on the system which is not installed with Arm Compilers. Signed-off-by: Pengyu Lv --- tests/scripts/all.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 58fa4bf60..273fed019 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -3505,6 +3505,11 @@ component_build_armcc () { # ARM Compiler 6 - Target ARMv8.2-A - AArch64 armc6_build_test "-O1 --target=aarch64-arm-none-eabi -march=armv8.2-a+crypto" } +support_build_armcc () { + arm5_cc="$ARMC5_BIN_DIR/armcc" + arm6_cc="$ARMC6_BIN_DIR/armclang" + `check_tools "$arm5_cc" "$arm6_cc" > /dev/null 2>&1` +} component_test_tls13_only () { msg "build: default config with MBEDTLS_SSL_PROTO_TLS1_3, without MBEDTLS_SSL_PROTO_TLS1_2"