[U-Boot] [PATCH 00/14] mkimage: Tidy up error handling

Simon Glass sjg at chromium.org
Thu Jun 30 18:52:06 CEST 2016


There are a few problems when mkimage is provided with invalid arguments.
In one case it crashes. When an invalid image type it is provided it lists
the valid types, but this is not implemented for compression, architecture
or OS.

This series tidies this up a little, to make mkimage more friendly.


Simon Glass (14):
  mkimage: Honour the default image type with auto-fit
  mkimage: Explain the auto-fit imagefile special case
  mkimage: Require a data file when auto-fit is used
  mkimage: Drop premature setting of params.fit_image_type
  mkimage: Drop blank line before main()
  image: Correct auto-fit architecture property name
  image: Convert the IH_... values to enums
  image: Create a table of information for each category
  image: Add a name for invalid types
  image: Add functions to obtain category information
  mkimage: Allow display of a list of any image header category
  mkimage: Use generic code for showing an 'image type' error
  mkimage: Show item lists for all categories
  tools: Allow building with debug enabled

 Kconfig           |   9 +++
 Makefile          |   3 +-
 common/image.c    |  87 ++++++++++++++++++++-
 include/image.h   | 230 ++++++++++++++++++++++++++++++++++--------------------
 tools/fit_image.c |   3 +-
 tools/mkimage.c   |  69 +++++++++-------
 6 files changed, 280 insertions(+), 121 deletions(-)

-- 
2.8.0.rc3.226.g39d4020



More information about the U-Boot mailing list