Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman 2023-10-04 13:38:41 +01:00
parent 7a8a2490e5
commit a7127eb67c

View file

@ -3979,7 +3979,7 @@ build_test_config_combos() {
clang_args="" clang_args=""
for ((j = 0; j < ${len}; j++)); do for ((j = 0; j < ${len}; j++)); do
if (((i >> j) & 1)); then if (((i >> j) & 1)); then
opt=-D${options[j]} opt=-D${options[$j]}
clang_args="${clang_args} ${opt}" clang_args="${clang_args} ${opt}"
target="${target}${opt}" target="${target}${opt}"
fi fi
@ -4007,11 +4007,11 @@ build_test_config_combos() {
validate_aes_config_variations() { validate_aes_config_variations() {
if [[ "$1" == *"MBEDTLS_AES_USE_HARDWARE_ONLY"* ]]; then if [[ "$1" == *"MBEDTLS_AES_USE_HARDWARE_ONLY"* ]]; then
if [[ "$1" == *"MBEDTLS_PADLOCK_C"* ]]; then if [[ "$1" == *"MBEDTLS_PADLOCK_C"* ]]; then
echo 1 echo INVALID
fi fi
if [[ !(("$HOSTTYPE" == "aarch64" && "$1" != *"MBEDTLS_AESCE_C"*) || \ if [[ !(("$HOSTTYPE" == "aarch64" && "$1" != *"MBEDTLS_AESCE_C"*) || \
("$HOSTTYPE" == "x86_64" && "$1" != *"MBEDTLS_AESNI_C"*)) ]]; then ("$HOSTTYPE" == "x86_64" && "$1" != *"MBEDTLS_AESNI_C"*)) ]]; then
echo 1 echo INVALID
fi fi
fi fi
} }