From c8608f07720a0bd2cc0da57dcfc1c6e21816b587 Mon Sep 17 00:00:00 2001 From: Alexander Kurz Date: Thu, 30 Jun 2016 11:10:19 +0200 Subject: scripts: imx-image: super_root_key command depends on header_version 1 The Super Root Key pointer exclusively exists in flash header version 1 which is used for i.MX25, i.MX35 and i.MX51 SOC as described in freescales AN4547 document. Simplify the code a little bit. Signed-off-by: Alexander Kurz Signed-off-by: Sascha Hauer --- scripts/imx/imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/imx/imx.c b/scripts/imx/imx.c index 70936babfd..f1accc4708 100644 --- a/scripts/imx/imx.c +++ b/scripts/imx/imx.c @@ -327,7 +327,7 @@ static int do_super_root_key(struct config_data *data, int argc, char *argv[]) return -EINVAL; } - if (data->cpu_type != 35 && data->cpu_type != 25) { + if (data->header_version != 1) { fprintf(stderr, "Warning: The super_root_key command is meaningless " "on non HABv3 based SoCs\n"); return 0; -- cgit v1.2.3