diff options
author | Yi Liu <liuyi@rock-chips.com> | 2022-03-30 18:05:59 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-06 09:21:49 -0400 |
commit | 3548903fc8eafa469f57e3dd11cf0046f2034699 (patch) | |
tree | 7d32b22224a63366dc678bfb7f6d58584b1ab223 /tools | |
parent | 21d3e3d107f3b60abe3b10f50930e22330d7e2d3 (diff) | |
download | u-boot-3548903fc8eafa469f57e3dd11cf0046f2034699.zip u-boot-3548903fc8eafa469f57e3dd11cf0046f2034699.tar.gz u-boot-3548903fc8eafa469f57e3dd11cf0046f2034699.tar.bz2 |
tools: mkimage: No need to verify_header for header_v2
rockchip header_v2 do not have a spl_hdr, so remove the verify.
Signed-off-by: Yi Liu <liuyi@rock-chips.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/rkcommon.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/rkcommon.c b/tools/rkcommon.c index 29f2676..ff62c75 100644 --- a/tools/rkcommon.c +++ b/tools/rkcommon.c @@ -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 */ |