]> git.baikalelectronics.ru Git - uboot.git/commit
fdt: Fix FIT header verification in mkimage and conduct same checks as bootm
authorJordan Hand <jordanhand22@gmail.com>
Tue, 5 Mar 2019 22:47:56 +0000 (14:47 -0800)
committerTom Rini <trini@konsulko.com>
Fri, 8 Mar 2019 16:31:44 +0000 (11:31 -0500)
commita4d1671fb9211ccf573c557dc19467a4eb65ec86
treefc4cfbe78b9629281ee4a8c1ccead9204afa9224
parent1e97938f47a713c0a1b33d6ae34721f5234e7403
fdt: Fix FIT header verification in mkimage and conduct same checks as bootm

FIT header verification in mkimage was treating a return code as a boolean,
which meant that failures in validating the fit were seen as successes.

Additionally, mkimage was checking all formats to find a header which
passes validation, rather than using the image type specified to
mkimage.

checkpatch.pl checks for lines ending with '(' and alignment matching
open parentheses are ignored to keep with existing coding style.

Signed-off-by: Jordan Hand <jorhand@microsoft.com>
tools/fit_common.c
tools/fit_common.h
tools/imagetool.c
tools/imagetool.h
tools/mkimage.c