binman: Allow vblock to include devicetree blobs
authorSimon Glass <sjg@chromium.org>
Thu, 7 Jan 2021 04:35:17 +0000 (21:35 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 30 Jan 2021 21:25:41 +0000 (14:25 -0700)
commit5af9ebc4bcbcca91b21257c18cb94c78e7356980
tree517a599dd61cef56a2249c3eae4074239c59b9f0
parent939d1062d05fb4990ca7898613bcc753574f7c56
binman: Allow vblock to include devicetree blobs

At present if a devicetree blob is included in a vblock it does not deal
with updates. This is because the vblock is created once at the start and
does not have a method to update itself later, after all the entry
contents are finalised.

Fix this by adjusting how the vblock is created.

Also simplify Image.ProcessEntryContents() since it effectively duplicates
the code in Section.ProcessContents().

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/etype/blob.py
tools/binman/etype/vblock.py
tools/binman/ftest.py
tools/binman/image.py
tools/binman/test/189_vblock_content.dts [new file with mode: 0644]