
On 6 July 2018 at 10:27, Simon Glass sjg@chromium.org wrote:
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
Changes in v2: None
tools/binman/entry.py | 28 +++++++++++++++++++++ tools/binman/etype/_testing.py | 8 ++++++ tools/binman/etype/blob.py | 3 +-- tools/binman/etype/u_boot_spl_bss_pad.py | 3 +-- tools/binman/etype/u_boot_with_ucode_ptr.py | 4 +-- tools/binman/ftest.py | 8 ++++++ tools/binman/test/59_change_size.dts | 14 +++++++++++ 7 files changed, 62 insertions(+), 6 deletions(-) create mode 100644 tools/binman/test/59_change_size.dts
Applied to u-boot-dm