fip_create: don't succeed if one of the passed files doesn't exist

If one of the files passed to fip_create on the command line doesn't
exist, it will print an error message but produce an incomplete
fip.bin file and report success. This behaviour could potentially
hide errors made in the command line arguments.

This patch addresses the issue by having the tool bail out if one of
the supplied files can't be processed.

Signed-off-by: Kévin Petit <kevin.petit@arm.com>

Fixes ARM-software/tf-issues#279

Change-Id: I1c7d87d09eb4c063005b7969bdaad1d043c29dec
This commit is contained in:
Kévin Petit 2014-12-08 13:23:09 +00:00 committed by Sandrine Bailleux
parent 29e32cba4a
commit 38410f801f
1 changed files with 1 additions and 1 deletions

View File

@ -543,7 +543,7 @@ static int parse_cmdline(int argc, char **argv, struct option *options,
if (status != 0) {
printf("Failed to process %s\n",
options[option_index].name);
break;
return status;
} else {
/* Update package */
*do_pack = 1;