tools: mkimage: code abstraction generic and image specific
commit90ab03e962e5d8ad26bffe795e05d207f61b3dd1
authorPrafulla Wadaskar <prafulla@marvell.com>
Mon, 27 Jul 2009 11:24:05 +0000 (27 16:54 +0530)
committerPrafulla Wadaskar <prafulla@server.marvell.com>
Fri, 31 Jul 2009 10:50:16 +0000 (31 03:50 -0700)
treedcd4bc77789199361724c1f03e0186f9efba25f2
parenta6f83bd07de93292aa91bcf39ef3b07bb40c79cb
tools: mkimage: code abstraction generic and image specific

This is first step towards cleaning mkimage code for kwbimage
support in clean way. Current mkimage code is very specific to
uimge generation whereas the same framework can be used to
generate other image types like kwbimage.
For this, the architecture of mkimage code need to modified.

Here is the brief plan for the same:-
a) Abstract image specific code to saperate file (this patch)
b) Move image header code from mkimage.c to respective
image specific code
c) Implement callback function for image specific functions
d) Add kwbimage type support to this framework

In this patch-
1. Image specific code abstracted from mkimage.c to
default_image.c/h to make mkimage code more generic
2. struct mkimage_params introduced to pass basic mkimage
specific flags and variables to image specific functions

Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
tools/Makefile
tools/default_image.c [new file with mode: 0644]
tools/default_image.h [new file with mode: 0644]
tools/mkimage.c
tools/mkimage.h