]> git.baikalelectronics.ru Git - uboot.git/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)
commit994b129834bf1b4e8da2ed30797cd17be921002e
tree6283b5953765e1f65ca923329d0e889fb74912dc
parent45098cfc24ad5da74c3a2e63a879faf3e4cc5d11
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