From c174191eb90e19b300d598b48f133f452a5f9e2a Mon Sep 17 00:00:00 2001 From: adustm Date: Mon, 3 Apr 2017 17:19:20 +0200 Subject: [PATCH] Move MBEDTLS_MD5_C define from mbedtls_device.h to targets.json --- .../TARGET_STM32F7/TARGET_NUCLEO_F756ZG/mbedtls_device.h | 5 +---- targets/targets.json | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/features/mbedtls/targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F756ZG/mbedtls_device.h b/features/mbedtls/targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F756ZG/mbedtls_device.h index d9f663b2dd..8382789dfb 100644 --- a/features/mbedtls/targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F756ZG/mbedtls_device.h +++ b/features/mbedtls/targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F756ZG/mbedtls_device.h @@ -1,5 +1,5 @@ /* - * mbedtls_device.h + * mbedtls_device.h ******************************************************************************* * Copyright (c) 2017, STMicroelectronics * SPDX-License-Identifier: Apache-2.0 @@ -27,7 +27,4 @@ #define MBEDTLS_SHA256_ALT #define MBEDTLS_MD5_ALT -#define MBEDTLS_MD5_C - - #endif /* MBEDTLS_DEVICE_H */ diff --git a/targets/targets.json b/targets/targets.json index b67a504751..6c3ba615b9 100644 --- a/targets/targets.json +++ b/targets/targets.json @@ -1192,6 +1192,7 @@ "inherits": ["FAMILY_STM32"], "core": "Cortex-M7F", "extra_labels_add": ["STM32F7", "STM32F756", "STM32F756xG", "STM32F756ZG"], + "macros_add": ["MBEDTLS_CONFIG_HW_SUPPORT", "MBEDTLS_MD5_C"], "config": { "d11_configuration": { "help": "Value: PA_7 for the default board configuration, PB_5 in case of solder bridge update (SB121 off/ SB122 on)",