Add an image handler for signed Rockchip images.

Signed image can be handled like unsigned images. Eventually barebox may
perform additional checks on the signed image, e.g. that the image is
actually signed and the signature is valid. For now, simply accept and
boot signed images.

Signed-off-by: Michael Tretter <m.tret...@pengutronix.de>
---
 arch/arm/mach-rockchip/bootm.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/mach-rockchip/bootm.c b/arch/arm/mach-rockchip/bootm.c
index 
097b0af7d8ba29a37e50dcb0f7d823c0456d1020..ff3d9a2db3a0462365f3ccd4e09f178b74903244
 100644
--- a/arch/arm/mach-rockchip/bootm.c
+++ b/arch/arm/mach-rockchip/bootm.c
@@ -113,12 +113,19 @@ static struct image_handler 
image_handler_rkns_barebox_image = {
        .filetype = filetype_rockchip_rkns_image,
 };
 
+static struct image_handler image_handler_rkss_barebox_image = {
+       .name = "Rockchip RKSS barebox image",
+       .bootm = do_bootm_rkns_barebox_image,
+       .filetype = filetype_rockchip_rkss_image,
+};
+
 static int rockchip_register_barebox_image_handler(void)
 {
        if (rockchip_soc() < 0)
                return 0;
 
        register_image_handler(&image_handler_rkns_barebox_image);
+       register_image_handler(&image_handler_rkss_barebox_image);
 
        return 0;
 }

-- 
2.39.5


Reply via email to