mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
binman: Move GetFdtSet() into blob_dtb
At present we check the filename to see if an entry holds a device-tree file. It is easier to use the base class designed for this purpose. Move this method implementation into Entry_blob_dtb and update the default one to return an empty set. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
b88e81c622
commit
935461262e
2 changed files with 9 additions and 5 deletions
|
@ -192,11 +192,6 @@ class Entry(object):
|
|||
Set containing the filename from this entry, if it is a .dtb, else
|
||||
an empty set
|
||||
"""
|
||||
fname = self.GetDefaultFilename()
|
||||
# It would be better to use isinstance(self, Entry_blob_dtb) here but
|
||||
# we cannot access Entry_blob_dtb
|
||||
if fname and fname.endswith('.dtb'):
|
||||
return set([fname])
|
||||
return set()
|
||||
|
||||
def ExpandEntries(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue