mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-27 17:12:03 +00:00
libfdt: Fix the Python pack() function
This currently fails to reduce the device-tree bytearray size. Fix this. This stands in for a pending upstream change. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
3def0cf238
commit
a1e0085519
1 changed files with 5 additions and 1 deletions
|
@ -442,7 +442,11 @@ class Fdt:
|
||||||
Raises:
|
Raises:
|
||||||
FdtException if any error occurs
|
FdtException if any error occurs
|
||||||
"""
|
"""
|
||||||
return check_err(fdt_pack(self._fdt), quiet)
|
err = check_err(fdt_pack(self._fdt), quiet)
|
||||||
|
if err:
|
||||||
|
return err
|
||||||
|
del self._fdt[self.totalsize():]
|
||||||
|
return err
|
||||||
|
|
||||||
def getprop(self, nodeoffset, prop_name, quiet=()):
|
def getprop(self, nodeoffset, prop_name, quiet=()):
|
||||||
"""Get a property from a node
|
"""Get a property from a node
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue