summaryrefslogtreecommitdiff
path: root/tools/binman/test/184_compress_section_size.dts
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-10-27 02:40:24 +0300
committerSimon Glass <sjg@chromium.org>2020-10-29 23:42:59 +0300
commit0ff83da634c4e4a8e510c5b2434cab88cb33c164 (patch)
tree6c57bb759292d9b3825b17907e4afe6846741e98 /tools/binman/test/184_compress_section_size.dts
parentb004bf3906e6f80b80558424e4a3ed8767103e37 (diff)
downloadu-boot-0ff83da634c4e4a8e510c5b2434cab88cb33c164.tar.xz
binman: Use the actual contents in CheckSize()
At present this function adds up the total size of entries to work out the size of a section's contents. With compression this is no-longer enough. We may as well bite the bullet and build the section contents instead. Call _BuildSectionData() to get the (possibly compressed) contents and GetPaddedData() to get the same but with padding added. Note that this is inefficient since the section contents is calculated twice. Future work will improve this. This affects testPackOverlapMap() since the error is reported with a different section size now (enough to hold the contents). Update that at the same time. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/test/184_compress_section_size.dts')
0 files changed, 0 insertions, 0 deletions