aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/etype/section.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-09-01 05:13:57 -0600
committerSimon Glass <sjg@chromium.org>2020-09-22 12:50:43 -0600
commit8795898a53dae112857f06b49e58cfe94a731dfa (patch)
tree579b751122fd0b3e4648b1580acdb61f0a9f1fb7 /tools/binman/etype/section.py
parent211cfa503f6cf850ccbd79b1082f9234b603e635 (diff)
downloadu-boot-8795898a53dae112857f06b49e58cfe94a731dfa.zip
u-boot-8795898a53dae112857f06b49e58cfe94a731dfa.tar.gz
u-boot-8795898a53dae112857f06b49e58cfe94a731dfa.tar.bz2
binman: Move 'external' support into base class
At present we have an Entry_blob_ext which implement a blob which holds an external binary. We need to support other entry types that hold external binaries, e.g. Entry_blob_named_by_arg. Move the support into the base Entry class to allow this. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/etype/section.py')
-rw-r--r--tools/binman/etype/section.py14
1 files changed, 2 insertions, 12 deletions
diff --git a/tools/binman/etype/section.py b/tools/binman/etype/section.py
index 72600b1..515c97f 100644
--- a/tools/binman/etype/section.py
+++ b/tools/binman/etype/section.py
@@ -35,7 +35,7 @@ class Entry_section(Entry):
when writing out the map
Properties:
- _allow_missing: True if this section permits external blobs to be
+ allow_missing: True if this section permits external blobs to be
missing their contents. The second will produce an image but of
course it will not work.
@@ -54,8 +54,6 @@ class Entry_section(Entry):
self._sort = False
self._skip_at_start = None
self._end_4gb = False
- self._allow_missing = False
- self.missing = False
def ReadNode(self):
"""Read properties from the image node"""
@@ -549,18 +547,10 @@ class Entry_section(Entry):
Args:
allow_missing: True if allowed, False if not allowed
"""
- self._allow_missing = allow_missing
+ self.allow_missing = allow_missing
for entry in self._entries.values():
entry.SetAllowMissing(allow_missing)
- def GetAllowMissing(self):
- """Get whether a section allows missing external blobs
-
- Returns:
- True if allowed, False if not allowed
- """
- return self._allow_missing
-
def CheckMissing(self, missing_list):
"""Check if any entries in this section have missing external blobs