Add define for MEMCPY & friends when compiling app in WOLFTPM mode

pull/226/head
Daniele Lacamera 2022-07-22 09:31:11 +02:00
parent 3be6d79adb
commit c27dd729ab
1 changed files with 8 additions and 0 deletions

View File

@ -57,6 +57,14 @@
#define ENCRYPT_TMP_SECRET_OFFSET (WOLFBOOT_PARTITION_SIZE - (TRAILER_SKIP))
#endif
#if defined(WOLFBOOT_TPM) && !defined(__WOLFBOOT)
#define XMEMSET memset
#define XMEMCPY memcpy
#define XMEMCMP memcmp
#endif
#ifndef NULL
# define NULL (void *)0
#endif