Manuel Pégourié-Gonnard | 63e7eba | 2015-07-28 14:17:48 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Temporary target-specific config.h for entropy collection |
| 3 | * |
| 4 | * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved |
| 5 | * |
| 6 | * This file is part of mbed TLS (https://tls.mbed.org) |
Manuel Pégourié-Gonnard | cdee2d9 | 2015-08-07 09:40:51 +0200 | [diff] [blame] | 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License as published by |
| 10 | * the Free Software Foundation; either version 2 of the License, or |
| 11 | * (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License along |
| 19 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 20 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
Manuel Pégourié-Gonnard | 63e7eba | 2015-07-28 14:17:48 +0200 | [diff] [blame] | 21 | */ |
| 22 | |
| 23 | #if defined(TARGET_LIKE_MBED) |
| 24 | #define MBEDTLS_NO_PLATFORM_ENTROPY |
| 25 | #undef MBEDTLS_HAVE_TIME_DATE |
| 26 | #undef MBEDTLS_FS_IO |
| 27 | #endif |
| 28 | |
| 29 | /* |
| 30 | * WARNING: this is a temporary hack! |
| 31 | * 2. This should be in a separete yotta module which would be a target |
| 32 | * dependency of mbedtls (see IOTSSL-313) |
| 33 | */ |
| 34 | #if defined(TARGET_LIKE_CORTEX_M4) |
| 35 | #define MBEDTLS_ENTROPY_HARDWARE_ALT |
| 36 | #endif |