]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools: kwboot: Fix usage of -D without -t
authorPali Rohár <pali@kernel.org>
Tue, 25 Jan 2022 17:13:12 +0000 (18:13 +0100)
committerStefan Roese <sr@denx.de>
Mon, 31 Jan 2022 09:23:38 +0000 (10:23 +0100)
When -D is specified then both bootmsg and debugmsg are not set, but
imgpath is set. Fix this check for valid and required parameters.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwboot.c

index fca1c73c5569b6c162cf19d610a0d073d841d7b3..859559fb723fabbb920e7a4e219ce1b282842fd8 100644 (file)
@@ -1819,7 +1819,7 @@ main(int argc, char **argv)
                }
        } while (1);
 
-       if (!bootmsg && !term && !debugmsg)
+       if (!bootmsg && !term && !debugmsg && !imgpath)
                goto usage;
 
        ttypath = argv[optind++];