mkimage: Display a better list of available image types
authorSimon Glass <sjg@chromium.org>
Tue, 23 Jun 2015 21:38:25 +0000 (15:38 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 21 Jul 2015 23:39:20 +0000 (17:39 -0600)
commit5b9d44df2307fc882b2ae666fd28fb2c7c2d5b11
treef4ca52645425ea7121c524895d9f4a7c484970f9
parenta3c3cff06c392aa2226ae67b160c80a43c28656a
mkimage: Display a better list of available image types

Offer to display the available image types in help. Also, rather than
hacking the genimg_get_type_id() function to display a list of types,
do this in the tool. Also, sort the list.

The list of image types is quite long, and hard to discover. Print it out
when we show help information.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/image.c
include/image.h
tools/mkimage.c