From 01184bd0361c4128c6382aa9c640b02e7f1422f6 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Thu, 19 Aug 2021 13:21:39 -0300 Subject: [PATCH] boot/nuttx: Enable crypto backend according to configuration from NuttX Signed-off-by: Gustavo Henrique Nihei --- boot/nuttx/include/mcuboot_config/mcuboot_config.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/boot/nuttx/include/mcuboot_config/mcuboot_config.h b/boot/nuttx/include/mcuboot_config/mcuboot_config.h index e405ffa4..ae945f69 100644 --- a/boot/nuttx/include/mcuboot_config/mcuboot_config.h +++ b/boot/nuttx/include/mcuboot_config/mcuboot_config.h @@ -24,6 +24,8 @@ * Included Files ****************************************************************************/ +#include + #ifdef CONFIG_MCUBOOT_WATCHDOG #include "watchdog/watchdog.h" #endif @@ -85,13 +87,13 @@ * available. */ -/* Uncomment to use ARM's mbedTLS cryptographic primitives */ - +#ifdef CONFIG_MCUBOOT_USE_MBED_TLS #define MCUBOOT_USE_MBED_TLS +#endif -/* Uncomment to use Tinycrypt's. */ - -/* #define MCUBOOT_USE_TINYCRYPT */ +#ifdef CONFIG_MCUBOOT_USE_TINYCRYPT +#define MCUBOOT_USE_TINYCRYPT +#endif /* Always check the signature of the image in the primary slot before * booting, even if no upgrade was performed. This is recommended if the boot