summaryrefslogtreecommitdiff
path: root/tools/binman/etype/fdtmap.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-04-18 03:09:03 +0300
committerSimon Glass <sjg@chromium.org>2020-04-26 23:25:21 +0300
commit16287933a852bab2ac4985a770e08c9aa69d21b1 (patch)
treee907492e72c279b64ac971c916de8078a48e8157 /tools/binman/etype/fdtmap.py
parent0ede00fdaf1d2162350631294f57645675737d89 (diff)
downloadu-boot-16287933a852bab2ac4985a770e08c9aa69d21b1.tar.xz
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/fdtmap.py')
-rw-r--r--tools/binman/etype/fdtmap.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/binman/etype/fdtmap.py b/tools/binman/etype/fdtmap.py
index 5dc08b8289..820f34515a 100644
--- a/tools/binman/etype/fdtmap.py
+++ b/tools/binman/etype/fdtmap.py
@@ -8,7 +8,7 @@ This handles putting an FDT into the image with just the information about the
image.
"""
-from entry import Entry
+from binman.entry import Entry
import tools
import tout
@@ -82,8 +82,8 @@ class Entry_fdtmap(Entry):
global Fdt
import libfdt
- import state
- from fdt import Fdt
+ from binman import state
+ from dtoc.fdt import Fdt
Entry.__init__(self, section, etype, node)