]> git.dujemihanovic.xyz Git - u-boot.git/commit
binman: Keep a separate list of entries for fit
authorSimon Glass <sjg@chromium.org>
Sun, 6 Mar 2022 03:19:11 +0000 (20:19 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 19 Mar 2022 01:24:25 +0000 (19:24 -0600)
commit2337eca283e8be9423aa0391a2b835c254efcc2c
treee5c77fbfc67f265d29bbce4d2966531e0c730930
parent01f467e2d36dc1d9975fa41ff3161a2bd664d519
binman: Keep a separate list of entries for fit

The current implementation sets up the FIT entries but then deletes the
'generator' ones so they don't appear in the final image.

This is a bit clumsy. We cannot build the image more than once, since the
generator entries are lost during the first build. Binman requires that
calling BuildSectionData() multiple times returns a valid result each
time.

Keep a separate, private list which includes the generator nodes and use
that where needed, to correct this problem. Ensure that the missing list
includes removed generator entries too.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
tools/binman/etype/fit.py