diff options
author | Chanho Park <chanho61.park@samsung.com> | 2016-05-31 14:48:20 +0900 |
---|---|---|
committer | jino.cho <jino.cho@samsung.com> | 2016-12-05 17:00:42 +0900 |
commit | 255ad5ab6e4a684c8a09f81a1c5a93c2eaeb1138 (patch) | |
tree | b5fe25f4a148c227283b02aaa64829e5fa95ec5f | |
parent | 115adf97661f14b3bcf9db3fe6fc959b15ebc496 (diff) | |
download | u-boot-artik-255ad5ab6e4a684c8a09f81a1c5a93c2eaeb1138.tar.gz u-boot-artik-255ad5ab6e4a684c8a09f81a1c5a93c2eaeb1138.tar.bz2 u-boot-artik-255ad5ab6e4a684c8a09f81a1c5a93c2eaeb1138.zip |
fdt: support to skip checking fdt
This patch is required to skip fdt checking because this
u-boot version does not support OF_EMBED.
Change-Id: Ibb6299fd09ff2df7b7edf5f5cf7f65d1cdb67ee9
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
-rw-r--r-- | lib/fdtdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c index cc09e06c7..070278d09 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -316,10 +316,12 @@ int fdtdec_check_fdt(void) int fdtdec_prepare_fdt(void) { if (((uintptr_t)gd->fdt_blob & 3) || fdt_check_header(gd->fdt_blob)) { +#ifndef CONFIG_OF_SKIP_CHECK printf("No valid FDT found - please append one to U-Boot " "binary, use u-boot-dtb.bin or define " "CONFIG_OF_EMBED\n"); return -1; +#endif } return 0; } |