summaryrefslogtreecommitdiffstats
path: root/tools/dtoc
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-10-01 21:12:40 -0600
committerSimon Glass <sjg@chromium.org>2018-10-08 07:34:34 -0600
commited59e005e6ed388609749d52e98804b76db095d1 (patch)
treea2b263b656ae8997aa3a2ee6b7823cf536e71921 /tools/dtoc
parent3bc11e818c3ad049a24ba2c2deb27ddd651a6e3b (diff)
downloadu-boot-ed59e005e6ed388609749d52e98804b76db095d1.tar.gz
u-boot-ed59e005e6ed388609749d52e98804b76db095d1.tar.xz
u-boot-ed59e005e6ed388609749d52e98804b76db095d1.zip
binman: Add a default path to libfdt.py
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@chromium.org>
Diffstat (limited to 'tools/dtoc')
-rwxr-xr-xtools/dtoc/dtoc.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/dtoc/dtoc.py b/tools/dtoc/dtoc.py
index 827094e72a..33b2589c56 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