From: Chanho Park Date: Tue, 31 May 2016 05:48:20 +0000 (+0900) Subject: fdt: support to skip checking fdt X-Git-Tag: submit/tizen/20161205.083345~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=255ad5ab6e4a684c8a09f81a1c5a93c2eaeb1138;p=profile%2Fcommon%2Fplatform%2Fkernel%2Fu-boot-artik.git 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 --- 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; }