]> git.baikalelectronics.ru Git - uboot.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)
commited4b87c4f10fd32b79c625ab77db1418948cdfbf
treee5c77fbfc67f265d29bbce4d2966531e0c730930
parentc42726f0366637b03b7e446abf27b14a637ee647
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