aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKévin Petit <kevin.petit@arm.com>2014-12-08 13:23:09 +0000
committerSandrine Bailleux <sandrine.bailleux@arm.com>2014-12-10 13:06:14 +0000
commit38410f801f75bcbaf1dde0887d916b5e2c4eefd9 (patch)
tree175b390ad726649d8d5fa542a20fa168343932fb /tools
parent29e32cba4ad243071c643c839dfd4f46a0b19655 (diff)
downloadtrusted-firmware-a-38410f801f75bcbaf1dde0887d916b5e2c4eefd9.tar.gz
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
Diffstat (limited to 'tools')
-rw-r--r--tools/fip_create/fip_create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/fip_create/fip_create.c b/tools/fip_create/fip_create.c
index d1802b7fd3..c940c5b0dd 100644
--- a/tools/fip_create/fip_create.c
+++ b/tools/fip_create/fip_create.c
@@ -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;