]> git.baikalelectronics.ru Git - uboot.git/commit
binman: Tidy up setting of entry contents
authorSimon Glass <sjg@chromium.org>
Fri, 6 Jul 2018 16:27:19 +0000 (10:27 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 9 Jul 2018 15:11:00 +0000 (09:11 -0600)
commit2f5a7e712313a5f82e46a02e08ba1fdd3f51830b
treee538c0257a7f4d8c8377ecb00044281536085dec
parent55fdeace2e731f80e5aaa17f4fbc4dceefb22d7c
binman: Tidy up setting of entry contents

At present the contents of an entry are set in subclasses simply by
assigning to the data and content_size properties. Add some methods to do
this, so that we have more control. In particular, add a method to set the
contents without changing its size, so we can validate that case.

Add a test case for trying to change the size when this is not allowed.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/entry.py
tools/binman/etype/_testing.py
tools/binman/etype/blob.py
tools/binman/etype/u_boot_spl_bss_pad.py
tools/binman/etype/u_boot_with_ucode_ptr.py
tools/binman/ftest.py
tools/binman/test/59_change_size.dts [new file with mode: 0644]