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)
commita3c6496bb2e19e7ae8618ae70ee13aecebfaaf88
tree5deec030c14b17c8a7c015886c688dd13c70c247
parent91fb095c0dc8390bee2442e7b635e2a93bb31c4a
tools: kwboot: Fix usage of -D without -t

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