mirror of
https://github.com/CTCaer/switch-l4t-atf.git
synced 2024-12-04 08:53:37 +00:00
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:
parent
29e32cba4a
commit
38410f801f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user