fiptool: fix existence check of FIP input file for update command
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 25 Dec 2016 03:41:41 +0000 (12:41 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 27 Jan 2017 04:21:21 +0000 (13:21 +0900)
commit40866aaf1c60b31d46b1b969598e3403a4d8a6c1
treed20c513821966dca9aa23dd9b64b5935c14afa91
parentc38b36d8a069f29b98f11a6dcdc3631317d2a992
fiptool: fix existence check of FIP input file for update command

This line should check the existence of the input file, but it is
actually checking the output file.  When -o option is given to the
"update" command, the outfile is unlikely to exist, then parse_fip()
is skipped and an empty FIP file is output.  This is wrong behavior.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
tools/fiptool/fiptool.c