common: image-fdt: skip image_check_type() for fdt

default image mkimage conflicts with fit mkimage on param: -T "flat_dt"
and failed to build fdt uImage.

error message:
"./tools/mkimage: Can't set header for FIT Image support: Success"

It's fine to drop that since the fdt_check_header() follows it.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I50554765bac7cc75df7ab5920e94cafe78d14bdc
This commit is contained in:
Joseph Chen 2020-01-14 17:24:25 +08:00
parent 5b8e7bf473
commit 0f0484481c
1 changed files with 8 additions and 0 deletions

View File

@ -54,10 +54,18 @@ static const image_header_t *image_get_fdt(ulong fdt_addr)
}
puts("OK\n");
/*
* default image mkimage conflicts with fit mkimage on param: -T "flat_dt".
*
* error message:
* "./tools/mkimage: Can't set header for FIT Image support: Success"
*/
#if 0
if (!image_check_type(fdt_hdr, IH_TYPE_FLATDT)) {
fdt_error("uImage is not a fdt");
return NULL;
}
#endif
if (image_get_comp(fdt_hdr) != IH_COMP_NONE) {
fdt_error("uImage is compressed");
return NULL;