diff options
author | Simon Glass <sjg@chromium.org> | 2019-07-20 12:23:28 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-07-29 09:38:05 -0600 |
commit | a8adb6dfebad9a08c2df9d9ee8f79b9518e57496 (patch) | |
tree | f066493ebd23d3b83574393e29726b8ac8ad5292 /tools/binman/entry.py | |
parent | a8573c4c8fb07fbd7cc8db9828aae90fcfd5145d (diff) | |
download | u-boot-a8adb6dfebad9a08c2df9d9ee8f79b9518e57496.tar.gz |
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>
Diffstat (limited to 'tools/binman/entry.py')
-rw-r--r-- | tools/binman/entry.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/binman/entry.py b/tools/binman/entry.py index 276035ed32..2ed9dc0d6f 100644 --- a/tools/binman/entry.py +++ b/tools/binman/entry.py @@ -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 |