tinycrypt: make asm optimizations optional for baremetal

Disable asm optimizations for strict armcc baremetal builds.
Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
This commit is contained in:
Andrzej Kurek 2020-10-14 19:42:23 +02:00
parent db0e50ea70
commit b04208151b
No known key found for this signature in database
GPG Key ID: 89A90840DC388527
2 changed files with 3 additions and 6 deletions

View File

@ -117,8 +117,9 @@
#define MBEDTLS_USE_TINYCRYPT #define MBEDTLS_USE_TINYCRYPT
#define MBEDTLS_HAVE_ASM #define MBEDTLS_HAVE_ASM
#define MBEDTLS_OPTIMIZE_TINYCRYPT_ASM #if !( defined(__STRICT_ANSI__) && defined(__CC_ARM) )
#define MBEDTLS_OPTIMIZE_TINYCRYPT_ASM
#endif
/* X.509 CRT parsing */ /* X.509 CRT parsing */
#define MBEDTLS_X509_USE_C #define MBEDTLS_X509_USE_C
#define MBEDTLS_X509_CRT_PARSE_C #define MBEDTLS_X509_CRT_PARSE_C

View File

@ -71,10 +71,6 @@
#include "mbedtls/platform_util.h" #include "mbedtls/platform_util.h"
#if defined MBEDTLS_OPTIMIZE_TINYCRYPT_ASM #if defined MBEDTLS_OPTIMIZE_TINYCRYPT_ASM
#ifdef __CC_ARM
#pragma diag_suppress 667 // strict diagnostic: "asm" function is nonstandard
#endif
#ifndef asm #ifndef asm
#define asm __asm #define asm __asm
#endif #endif