aboutsummaryrefslogtreecommitdiff
path: root/tools/mkimage.c
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2023-01-21 20:09:26 +0100
committerStefan Roese <sr@denx.de>2023-03-01 06:39:17 +0100
commitb07965b8a9a9887a37f41254d6155f8fc38ad006 (patch)
tree8a7eea23f2792b720f0b5a1f2ee9c7aac7f4f284 /tools/mkimage.c
parent2f6855a6aa8d55d8341f454f87cabc784a890193 (diff)
downloadu-boot-b07965b8a9a9887a37f41254d6155f8fc38ad006.zip
u-boot-b07965b8a9a9887a37f41254d6155f8fc38ad006.tar.gz
u-boot-b07965b8a9a9887a37f41254d6155f8fc38ad006.tar.bz2
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>
Diffstat (limited to 'tools/mkimage.c')
-rw-r--r--tools/mkimage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c
index 5e0bb91..a92d9d5 100644
--- a/tools/mkimage.c
+++ b/tools/mkimage.c
@@ -599,7 +599,7 @@ int main(int argc, char **argv)
exit (retval);
}
- if ((params.type != IH_TYPE_MULTI) && (params.type != IH_TYPE_SCRIPT)) {
+ if (!params.skipcpy && params.type != IH_TYPE_MULTI && params.type != IH_TYPE_SCRIPT) {
if (!params.datafile) {
fprintf(stderr, "%s: Option -d with image data file was not specified\n",
params.cmdname);