Commit 84ed794d authored by Fabio Utzig's avatar Fabio Utzig Committed by David Brown
Browse files

Fix configuration when RSA signature is used

This defines the correct "mbedtls" config files in both ECDSA256 and RSA
modes.

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent b519ed03
Loading
Loading
Loading
Loading
+3 −2
Changes for boot/zephyr/os.c: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -22,9 +22,9 @@

#include "os/os_heap.h"

#if !defined(CONFIG_MBEDTLS) && defined(MCUBOOT_USE_MBED_TLS)
#ifdef MCUBOOT_USE_MBED_TLS
#define MBEDTLS_CONFIG_FILE CONFIG_MBEDTLS_CFG_FILE

#define MBEDTLS_CONFIG_FILE MCUBOOT_MBEDTLS_CFG_FILE
#include <mbedtls/platform.h>
#include <mbedtls/memory_buffer_alloc.h>

@@ -45,6 +45,7 @@ void os_heap_init(void)
    mbedtls_memory_buffer_alloc_init(mempool, sizeof(mempool));
}
#else
#define MBEDTLS_CONFIG_FILE MCUBOOT_MBEDTLS_CFG_FILE
void os_heap_init(void)
{
}