aboutsummaryrefslogtreecommitdiff
path: root/tools/binman/etype/blob_dtb.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-04-17 18:09:03 -0600
committerSimon Glass <sjg@chromium.org>2020-04-26 14:25:21 -0600
commit16287933a852bab2ac4985a770e08c9aa69d21b1 (patch)
treee907492e72c279b64ac971c916de8078a48e8157 /tools/binman/etype/blob_dtb.py
parent0ede00fdaf1d2162350631294f57645675737d89 (diff)
downloadu-boot-16287933a852bab2ac4985a770e08c9aa69d21b1.zip
u-boot-16287933a852bab2ac4985a770e08c9aa69d21b1.tar.gz
u-boot-16287933a852bab2ac4985a770e08c9aa69d21b1.tar.bz2
binman: Move to absolute imports
At present binman sets the python path on startup so that it can access the libraries it needs. If we convert to use absolute imports this is not necessary. Move binman to use absolute imports. This enables removable of the path adjusting in Entry also. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/etype/blob_dtb.py')
-rw-r--r--tools/binman/etype/blob_dtb.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/binman/etype/blob_dtb.py b/tools/binman/etype/blob_dtb.py
index b2afa06..6c06943 100644
--- a/tools/binman/etype/blob_dtb.py
+++ b/tools/binman/etype/blob_dtb.py
@@ -5,8 +5,8 @@
# Entry-type module for U-Boot device tree files
#
-from entry import Entry
-from blob import Entry_blob
+from binman.entry import Entry
+from binman.etype.blob import Entry_blob
class Entry_blob_dtb(Entry_blob):
"""A blob that holds a device tree
@@ -18,7 +18,7 @@ class Entry_blob_dtb(Entry_blob):
def __init__(self, section, etype, node):
# Put this here to allow entry-docs and help to work without libfdt
global state
- import state
+ from binman import state
Entry_blob.__init__(self, section, etype, node)