]> git.sur5r.net Git - u-boot/commit
mkimage: fix display of image types list
authorBaruch Siach <baruch@tkos.co.il>
Thu, 29 Jun 2017 17:37:08 +0000 (20:37 +0300)
committerTom Rini <trini@konsulko.com>
Thu, 6 Jul 2017 20:17:16 +0000 (16:17 -0400)
commit79aa33cdb3d2a158c5ccb35173cbd2ab084d8e9c
tree6283b5953765e1f65ca923329d0e889fb74912dc
parent3690cbd65e335463eddf40fb595302731c314297
mkimage: fix display of image types list

Since commit 5b9d44df2307f (mkimage: Display a better list of available image
types) mkimage usage text suggest to "use -T to see a list of available image
types". Unfortunately, commit 02221f29deb8 (mkimage: Convert to use getopt())
broke that feature, because getopt() fails when -T has no option argument.

Add a pseudo image type name 'list' that lists all image types. Update the
usage text accordingly.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
tools/mkimage.c