From 255ad5ab6e4a684c8a09f81a1c5a93c2eaeb1138 Mon Sep 17 00:00:00 2001 From: Chanho Park Date: Tue, 31 May 2016 14:48:20 +0900 Subject: [PATCH] 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 --- lib/fdtdec.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.34.1