
Hi Prafulla,
Then I feel what Jean has suggested is the only way to go ahead with kirkwood use case I will go ahead with this.
Ref:
we can simply add a new target u-boot.kwd which will do somthing like this
$(obj)u-boot.kwd: $(obj)u-boot.bin $(do_image) $(obj)u-boot.kwd $(obj)u-boot.bin $(obj)board/$(BOARDDIR)/sdramregs.txt
I think this looks good.
Second issue: I will have to add a tool i.e. do_image (to be renamed) which will create u-boot.kwd. this tool is specific to Kirkwood only, I am going to add this in ./tools/ folder (as per Jean's feedback earlier), is this okay?
The plan as such is ok, although you will probably need to rewrite the latest version of do_image posted to this ML[1] completely. Starting out to read the code, I was tempted to post some specific remarks about the code, but quickly realized that this is not a good attempt to move further here.
The code really needs to be rewritten in a clean fashion using common programming metaphors, style and library functions (i.e. use getopt(3), etc.).
Cheers Detlev
[1] http://article.gmane.org/gmane.comp.boot-loaders.u-boot/57251