platform: Fix compile error caused by standard includes

Avoid using standard includes namely stdint.h, string.h, stdlib.h, etc.

All standard include except stddef.h give compilation error due
to differences in RISC-V toolchain configuration. Typically, the
compilation error is related to "gnu-stubs-lp64.h".

This patch fixes compile error caused by standard includes by
providing substitutes of definetions provided by standard includes
wherever required.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
Anup Patel
2019-01-18 10:28:58 +05:30
committed by Anup Patel
parent e0686ca844
commit ebfe231256
5 changed files with 60 additions and 15 deletions

View File

@@ -7,8 +7,8 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <plat/string.h>
#include <plat/tinyfdt.h>
#include <string.h>
#define FDT_MAGIC 0xd00dfeed
#define FDT_VERSION 17