diff options
author | Simon Glass <sjg@chromium.org> | 2018-09-14 04:57:19 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-09-28 11:09:01 -0600 |
commit | c55a50f558f13c6c018c0e5cc0f0d765711a3828 (patch) | |
tree | 5ba2ee5d52f3426569f33c199aab8d01e8d69a58 /tools/binman/entry.py | |
parent | 6c234bfbf7a9c5b33c3bea92e037c45d37e94f35 (diff) | |
download | u-boot-c55a50f558f13c6c018c0e5cc0f0d765711a3828.tar.gz |
binman: Move state information into a new module
At present the control module has state information in it, since it is the
primary user of this. But it is a bit odd to have entries and other
modules importing control to obtain this information.
It seems better to have a dedicated state module, which control can use as
well. Create a new module using code from control and update other modules
to use it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/entry.py')
-rw-r--r-- | tools/binman/entry.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/binman/entry.py b/tools/binman/entry.py index ec3b22e9b3..1d6299aefa 100644 --- a/tools/binman/entry.py +++ b/tools/binman/entry.py @@ -17,10 +17,11 @@ try: except: have_importlib = False -import fdt_util -import control import os import sys + +import fdt_util +import state import tools modules = {} @@ -393,7 +394,7 @@ class Entry(object): Raises: ValueError if the argument cannot be converted to in """ - value = control.GetEntryArg(name) + value = state.GetEntryArg(name) if value is not None: if datatype == int: try: |