tools: mkimage: No need to verify_header for header_v2
PATCH 1/1 tools: mkimage: No need to verify_header for header_v2
From: Yi Liu <[email protected]>
rockchip header_v2 do not have a spl_hdr, so remove the verify.
Signed-off-by Yi Liu <[email protected]>
Signed-off-by Kever Yang <[email protected]>
---
tools/rkcommon.c | 4 ++++ 1 file changed, 4 insertions(+)
tools/rkcommon.c +4 -0
@@ -450,6 +450,10 @@ int rkcommon_verify_header(unsigned char *buf, int size,struct spl_info *img_spl_info, *spl_info;int ret; +/* spl_hdr is abandon on header_v2 */ +if ((*(uint32_t *)buf) ==RK_MAGIC_V2 ) +return 0 ; + ret =rkcommon_parse_header (buf, &header0, &img_spl_info);/* If this is the (unimplemented) RC4 case, then rewrite the result */
Signature · 1 line
2.25.1
Quoted 6 lines · Kever Yang
From: Yi Liu <[email protected]>
rockchip
header_v2do not have aspl_hdr, so remove the verify.Signed-off-by Yi Liu <[email protected]>Signed-off-by Kever Yang <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom