summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-07-06 19:36:38 +0300
committerSimon Glass <sjg@chromium.org>2021-07-21 19:27:35 +0300
commitedd4b6ea41075b34619e774dba3d232b12c1ea53 (patch)
tree6bfc3cea1febfcc9d7c922a83c51f7be0d5a6185 /tools
parentc69d19c8f829d3320db5224f9f28d13cfb16049e (diff)
downloadu-boot-edd4b6ea41075b34619e774dba3d232b12c1ea53.tar.xz
binman: Split node-reading out from constructor in files
The constructor should not read the node information. Move it to the ReadNode() method instead. This allows this etype to be subclassed. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/binman/etype/files.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/binman/etype/files.py b/tools/binman/etype/files.py
index 5db36abef0..9b04a496a8 100644
--- a/tools/binman/etype/files.py
+++ b/tools/binman/etype/files.py
@@ -34,6 +34,9 @@ class Entry_files(Entry_section):
from binman import state
super().__init__(section, etype, node)
+
+ def ReadNode(self):
+ super().ReadNode()
self._pattern = fdt_util.GetString(self._node, 'pattern')
if not self._pattern:
self.Raise("Missing 'pattern' property")