add hardware only check for padlock

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2023-08-17 11:25:17 +08:00
parent 9e628621b4
commit 1b4c7eda80

View file

@ -52,7 +52,8 @@
#error "MBEDTLS_AES_USE_HARDWARE_ONLY defined, but not all prerequisites"
#endif
#if defined(MBEDTLS_PADLOCK_C) && !defined(MBEDTLS_HAVE_ASM)
#if defined(MBEDTLS_PADLOCK_C) && \
(!defined(MBEDTLS_HAVE_ASM) || defined(MBEDTLS_AES_USE_HARDWARE_ONLY))
#error "MBEDTLS_PADLOCK_C defined, but not all prerequisites"
#endif
#endif