aboutsummaryrefslogtreecommitdiff
path: root/tools/fdtgrep.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-10-26 17:40:24 -0600
committerSimon Glass <sjg@chromium.org>2020-10-29 14:42:59 -0600
commit0ff83da634c4e4a8e510c5b2434cab88cb33c164 (patch)
tree6c57bb759292d9b3825b17907e4afe6846741e98 /tools/fdtgrep.c
parentb004bf3906e6f80b80558424e4a3ed8767103e37 (diff)
downloadu-boot-0ff83da634c4e4a8e510c5b2434cab88cb33c164.zip
u-boot-0ff83da634c4e4a8e510c5b2434cab88cb33c164.tar.gz
u-boot-0ff83da634c4e4a8e510c5b2434cab88cb33c164.tar.bz2
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/fdtgrep.c')
0 files changed, 0 insertions, 0 deletions