On 2026-09-12T12:44:46, Aristo Chen <[email protected]> wrote: > tools: mkimage: share the external-data region between image-data images > > When building with external data (-E or -p), an image sharing another > image's data through image-data still receives its own copy of the > payload in the external area. Skip such images while the data is moved > out of the FIT and point them at the referenced image's region > afterwards, through identical data-offset or data-position and > data-size values, so the payload is stored only once. This is the > resolved form the specification describes for external data: both > nodes reference the same region. > > An image whose reference did not resolve cannot reach this point, > since fit_resolve_image_data() has already rejected the FIT. > > Signed-off-by: Aristo Chen <[email protected]> > > tools/fit_image.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 46 insertions(+)
Reviewed-by: Simon Glass <[email protected]>
