]> git.sur5r.net Git - u-boot/commit
mkimage: Use generic code for showing an 'image type' error
authorSimon Glass <sjg@chromium.org>
Thu, 30 Jun 2016 16:52:18 +0000 (10:52 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 14 Jul 2016 22:22:30 +0000 (18:22 -0400)
commitf24e10500ffc7ff4b9c75de0e9b1f3efdd43ef41
tree29354d4532e289e635ecd71980345944260b71dd
parent306642251234f68f14fa9e86b9f5df6a88632817
mkimage: Use generic code for showing an 'image type' error

The existing error code only displays image types which are claimed by a
particular U_BOOT_IMAGE_TYPE() driver. But this does not seem correct. The
mkimage tool should support all image types, so it makes sense to allow
creation of images of any type with the tool.

When an incorrect image type is provided, use generic code to display the
error.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
tools/mkimage.c