]> git.dujemihanovic.xyz Git - u-boot.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)
commitd32aa3cae44e618048ff7f378577d44f9b6d6dcc
treefc4cfbe78b9629281ee4a8c1ccead9204afa9224
parent280fafff165428bc69db221faaccaf4edfc32d9d
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