[PATCH 2/4] rkimage: unconditionally fill newidb

Sascha Hauer
2026-04-29T10:20:39Z

The rkimage tool checks if the incoming image already is a Rockchip
image and only if it's not creates a idb header. This seems to be a
remnant of some never completed support for adding a new signarure to an
existing image. Drop this to cleanly implement resigning in the next
step.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
scripts/rkimage.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/scripts/rkimage.c b/scripts/rkimage.c
index 04d98daa6d..2dd5fceab3 100644
--- a/scripts/rkimage.c
+++ b/scripts/rkimage.c
@@ -473,8 +473,7 @@ int main(int argc, char *argv[])
close(fd);
}

- if (!(n_code == 1 && has_magic(code[0].buf)))
- create_newidb(&idb);
+ create_newidb(&idb);

if (key) {
int ret;

--
2.47.3