mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-11 09:47:00 +02:00
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>
This commit is contained in:
parent
c69d19c8f8
commit
edd4b6ea41
@ -34,6 +34,9 @@ class Entry_files(Entry_section):
|
|||||||
from binman import state
|
from binman import state
|
||||||
|
|
||||||
super().__init__(section, etype, node)
|
super().__init__(section, etype, node)
|
||||||
|
|
||||||
|
def ReadNode(self):
|
||||||
|
super().ReadNode()
|
||||||
self._pattern = fdt_util.GetString(self._node, 'pattern')
|
self._pattern = fdt_util.GetString(self._node, 'pattern')
|
||||||
if not self._pattern:
|
if not self._pattern:
|
||||||
self.Raise("Missing 'pattern' property")
|
self.Raise("Missing 'pattern' property")
|
||||||
|
Loading…
Reference in New Issue
Block a user