[PATCH 04/15] binman: Correct the search patch for pylibfdt

Simon Glass sjg at chromium.org
Mon Jun 8 21:20:13 CEST 2020


Now that binman uses tools/ as its base directory for importing modules,
the path to the pylibfdt build by U-Boot is incorrect. Fix it.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 tools/binman/main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/binman/main.py b/tools/binman/main.py
index efa7fa8386..4194761f9e 100755
--- a/tools/binman/main.py
+++ b/tools/binman/main.py
@@ -25,7 +25,7 @@ sys.path.insert(2, os.path.join(our_path, '..'))
 from patman import test_util
 
 # Bring in the libfdt module
-sys.path.insert(2, 'scripts/dtc/pylibfdt')
+sys.path.insert(2, os.path.join(our_path, '../../scripts/dtc/pylibfdt'))
 sys.path.insert(2, os.path.join(our_path,
                 '../../build-sandbox_spl/scripts/dtc/pylibfdt'))
 
-- 
2.27.0.278.ge193c7cf3a9-goog



More information about the U-Boot mailing list