"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

image-fit-sig: skip in tools build if key is missing

Skip signature verification in case no public key was given in order to
allow using fit_check_sign also to validate uImage.FIT images without
signatures. Guarded by USE_HOSTCC macro the behavior on target is
unchanged.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

authored by

Daniel Golle and committed by
Tom Rini
40dcd508 2a6d7ad2

+10
+10
boot/image-fit-sig.c
··· 191 191 int noffset; 192 192 int key_node; 193 193 194 + #ifdef USE_HOSTCC 195 + if (!key_blob) 196 + return 0; 197 + #endif 198 + 194 199 /* Work out what we need to verify */ 195 200 *no_sigsp = 1; 196 201 key_node = fdt_subnode_offset(key_blob, 0, FIT_SIG_NODENAME); ··· 476 481 int reqd_sigs = 0; 477 482 bool reqd_policy_all = true; 478 483 const char *reqd_mode; 484 + 485 + #ifdef USE_HOSTCC 486 + if (!key_blob) 487 + return 0; 488 + #endif 479 489 480 490 /* 481 491 * We don't support this since libfdt considers names with the