[U-Boot] [PATCH v2] mkimage: fix display of image types list

Simon Glass sjg at chromium.org
Fri Jul 7 03:58:06 UTC 2017


On 29 June 2017 at 11:37, Baruch Siach <baruch at tkos.co.il> wrote:
> 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 at chromium.org>
> Signed-off-by: Baruch Siach <baruch at tkos.co.il>
> ---
> v2: Use 'list' pseudo type instead of getopt() optional argument
> ---
>  tools/mkimage.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list