blob: 7ff32cedcc1d7f7174efe9dc72fd4feb1c6d0b33 [file] [log] [blame]
Manuel Pégourié-Gonnard63e7eba2015-07-28 14:17:48 +02001/*
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é-Gonnardcdee2d92015-08-07 09:40:51 +02007 *
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é-Gonnard63e7eba2015-07-28 14:17:48 +020021 */
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