
Hello Wolfgang,
Wolfgang Denk wrote:
Dear Heiko Schocher,
In message 4F13C325.3010200@denx.de you wrote:
- ubootimage U-Boot image
- splimage SPL image
- dfenvimage Default Environment image
- ublheader TI davinci UBL header image
for ... ?
Oh, right, forgotten to add this in the commit message.
They are needed for cam_enc_4xx update:
http://patchwork.ozlabs.org/patch/136165/
There, the UBL-header, SPL-image, U-Boot image and an default image are wrapped in one FIT image.
But this is conceptually broken. The IH_TYPE_* definitions are actually only relevant for legacy images.
FIX images use an XML based, extendable data format. The whole idea of this is that we do NOT have to change to code when anybody needs a new (probably private) entry or type or whatever.
In your case, it should be possible to use an existing image type (say, IH_TYPE_FIRMWARE) for your code, and use other distinguishing marks to determine which parts you work on. Probably it makes sense to define your own entry for each of the parts. Then only your own code needs to understand this.
Yep, you are right, rework this.
bye, Heiko