X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tools%2Fbinman%2Fimage.py;h=94028f19a513926962640eae08f2eeb9f9fc331b;hb=078ab1a2f5a9901f5f9983163d4f98b8d94bfda0;hp=9732493709cd7b87165c8e06410c02e144849c16;hpb=ecab89737a4eb58c043388b1ca1c0f1dfdaa3346;p=u-boot diff --git a/tools/binman/image.py b/tools/binman/image.py index 9732493709..94028f19a5 100644 --- a/tools/binman/image.py +++ b/tools/binman/image.py @@ -54,6 +54,17 @@ class Image: self._filename = filename self._section = bsection.Section('main-section', self._node) + def AddMissingProperties(self): + """Add properties that are not present in the device tree + + When binman has completed packing the entries the position and size of + each entry are known. But before this the device tree may not specify + these. Add any missing properties, with a dummy value, so that the + size of the entry is correct. That way we can insert the correct values + later. + """ + self._section.AddMissingProperties() + def ProcessFdt(self, fdt): return self._section.ProcessFdt(fdt) @@ -82,6 +93,9 @@ class Image: """Check that entries do not overlap or extend outside the image""" self._section.CheckEntries() + def SetCalculatedProperties(self): + self._section.SetCalculatedProperties() + def ProcessEntryContents(self): """Call the ProcessContents() method for each entry