commit | 2e1169fd6f70ac9d2c620a2e3ad78c897367eac7 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Fri Jul 06 10:27:19 2018 -0600 |
committer | Simon Glass <sjg@chromium.org> | Mon Jul 09 09:11:00 2018 -0600 |
tree | e538c0257a7f4d8c8377ecb00044281536085dec | |
parent | 02e0fc68d588f3b74ff7e2f1bfca73de513e1112 [diff] |
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>