9
0
Fork 0

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 <akurz@blala.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Alexander Kurz 2016-06-30 11:10:19 +02:00 committed by Sascha Hauer
parent 22247f0976
commit c8608f0772
1 changed files with 1 additions and 1 deletions

View File

@ -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;