[U-Boot] [PATCH v2 11/18] binman: Add a default path to libfdt.py
Simon Glass
sjg at chromium.org
Sat Sep 29 19:23:46 UTC 2018
This module is often available in the sandbox_spl build created by
'make check'. Use this as a default path so that just typing 'binman -t'
(without setting PYTHONPATH) will generally run the tests.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v2: None
tools/binman/binman.py | 2 ++
tools/dtoc/dtoc.py | 5 +++++
2 files changed, 7 insertions(+)
diff --git a/tools/binman/binman.py b/tools/binman/binman.py
index 1536e956517..f5af5359f3c 100755
--- a/tools/binman/binman.py
+++ b/tools/binman/binman.py
@@ -22,6 +22,8 @@ for dirname in ['../patman', '../dtoc', '..']:
# Bring in the libfdt module
sys.path.insert(0, 'scripts/dtc/pylibfdt')
+sys.path.insert(0, os.path.join(our_path,
+ '../../build-sandbox_spl/scripts/dtc/pylibfdt'))
import cmdline
import command
diff --git a/tools/dtoc/dtoc.py b/tools/dtoc/dtoc.py
index 827094e72ab..33b2589c561 100755
--- a/tools/dtoc/dtoc.py
+++ b/tools/dtoc/dtoc.py
@@ -34,6 +34,11 @@ import unittest
our_path = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.join(our_path, '../patman'))
+# Bring in the libfdt module
+sys.path.insert(0, 'scripts/dtc/pylibfdt')
+sys.path.insert(0, os.path.join(our_path,
+ '../../build-sandbox_spl/scripts/dtc/pylibfdt'))
+
import dtb_platdata
import test_util
--
2.19.0.605.g01d371f741-goog
More information about the U-Boot
mailing list