mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
binman: Convert GetFdtSet() to use a dict
At present this function returns a set of device-tree filenames. It has no way of returning the actual device-tree object. Change it to a dictionary so that we can add this feature in a future patch. Also drop fdt_set since it is no-longer used. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
a8573c4c8f
commit
a8adb6dfeb
4 changed files with 23 additions and 22 deletions
|
@ -185,14 +185,16 @@ class Entry(object):
|
|||
def GetDefaultFilename(self):
|
||||
return None
|
||||
|
||||
def GetFdtSet(self):
|
||||
"""Get the set of device trees used by this entry
|
||||
def GetFdts(self):
|
||||
"""Get the device trees used by this entry
|
||||
|
||||
Returns:
|
||||
Set containing the filename from this entry, if it is a .dtb, else
|
||||
an empty set
|
||||
Empty dict, if this entry is not a .dtb, otherwise:
|
||||
Dict:
|
||||
key: Filename from this entry (without the path)
|
||||
value: Fdt object for this dtb, or None if not available
|
||||
"""
|
||||
return set()
|
||||
return {}
|
||||
|
||||
def ExpandEntries(self):
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue