From 700632eca267de203b3a259dff8101aa4ff93653 Mon Sep 17 00:00:00 2001 From: Antonio de Angelis Date: Thu, 21 Mar 2024 23:30:11 +0000 Subject: [PATCH] Fix #ifdef guard in driver wrapper template The #ifdef guard in the get_builtin_key() should be PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT to allow for multiple drivers to be plugged into the wrapper. Signed-off-by: Antonio de Angelis --- .../psa_crypto_driver_wrappers_no_static.c.jinja | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/data_files/driver_templates/psa_crypto_driver_wrappers_no_static.c.jinja b/scripts/data_files/driver_templates/psa_crypto_driver_wrappers_no_static.c.jinja index 261cd2ab63..f612cf0b21 100644 --- a/scripts/data_files/driver_templates/psa_crypto_driver_wrappers_no_static.c.jinja +++ b/scripts/data_files/driver_templates/psa_crypto_driver_wrappers_no_static.c.jinja @@ -206,11 +206,11 @@ key_buffer_length psa_key_location_t location = PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) ); switch( location ) { -#if defined(PSA_CRYPTO_DRIVER_TEST) +#if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT) {% with nest_indent=8 %} {% include "OS-template-opaque.jinja" -%} {% endwith -%} -#endif /* PSA_CRYPTO_DRIVER_TEST */ +#endif /* PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT */ default: (void) slot_number; (void) key_buffer;