tools: mkimage: Do not try to open datafile when it is skipped
authorPali Rohár <pali@kernel.org>
Sat, 21 Jan 2023 19:09:26 +0000 (20:09 +0100)
committerStefan Roese <sr@denx.de>
Wed, 1 Mar 2023 05:39:17 +0000 (06:39 +0100)
commitb07965b8a9a9887a37f41254d6155f8fc38ad006
tree8a7eea23f2792b720f0b5a1f2ee9c7aac7f4f284
parent2f6855a6aa8d55d8341f454f87cabc784a890193
tools: mkimage: Do not try to open datafile when it is skipped

When mkimage was instructed to skip datafile via option -s then do not try
to validate or open datafile as it does not have to exist or to be
specified via -d option.

This change allows to use -s option for skipping datafile when -d option
for datafile was not specified.

Signed-off-by: Pali Rohár <pali@kernel.org>
tools/mkimage.c