aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-11-23 11:03:46 -0700
committerSimon Glass <sjg@chromium.org>2021-12-02 09:16:30 -0700
commitb6caf0ebcabd20499f3171e12bcbee01a0b3d724 (patch)
treef09c317e5acc3161d104bafe3f9a311e135bd7ff
parent1e99bc2923afa9c7a0e17895eec2d152c9187a80 (diff)
downloadu-boot-b6caf0ebcabd20499f3171e12bcbee01a0b3d724.zip
u-boot-b6caf0ebcabd20499f3171e12bcbee01a0b3d724.tar.gz
u-boot-b6caf0ebcabd20499f3171e12bcbee01a0b3d724.tar.bz2
binman: Drop the filename property in entry_Section
This is not used and does nothing. Drop it. Add a tweak to avoid reducing the pylint score. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--tools/binman/etype/section.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/binman/etype/section.py b/tools/binman/etype/section.py
index 281a228..952c01d 100644
--- a/tools/binman/etype/section.py
+++ b/tools/binman/etype/section.py
@@ -81,9 +81,6 @@ class Entry_section(Entry):
self._skip_at_start = 0
self._name_prefix = fdt_util.GetString(self._node, 'name-prefix')
self.align_default = fdt_util.GetInt(self._node, 'align-default', 0)
- filename = fdt_util.GetString(self._node, 'filename')
- if filename:
- self._filename = filename
self.ReadEntries()
@@ -661,7 +658,7 @@ class Entry_section(Entry):
return data
def ReadChildData(self, child, decomp=True):
- tout.Debug("ReadChildData for child '%s'" % child.GetPath())
+ tout.Debug(f"ReadChildData for child '{child.GetPath()}'")
parent_data = self.ReadData(True)
offset = child.offset - self._skip_at_start
tout.Debug("Extract for child '%s': offset %#x, skip_at_start %#x, result %#x" %