From d216c0411d80552d599530596e3d8dc7481c250b Mon Sep 17 00:00:00 2001 From: Pengyu Lv Date: Fri, 3 Mar 2023 18:23:35 +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 22018ebe4..87defc0ce 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -3181,6 +3181,11 @@ component_build_armcc () { # ARM Compiler 6 - Target ARMv8-A - AArch64 armc6_build_test "--target=aarch64-arm-none-eabi -march=armv8.2-a" } +support_build_armcc () { + armc5_cc="$ARMC5_BIN_DIR/armcc" + armc6_cc="$ARMC6_BIN_DIR/armclang" + (check_tools "$armc5_cc" "$armc6_cc" > /dev/null 2>&1) +} component_build_ssl_hw_record_accel() { msg "build: default config with MBEDTLS_SSL_HW_RECORD_ACCEL enabled"