mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-30 00:20:44 +09:00
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>
This commit is contained in:
parent
3bc11e818c
commit
ed59e005e6
@ -22,6 +22,8 @@ for dirname in ['../patman', '../dtoc', '..']:
|
|||||||
|
|
||||||
# Bring in the libfdt module
|
# Bring in the libfdt module
|
||||||
sys.path.insert(0, 'scripts/dtc/pylibfdt')
|
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 cmdline
|
||||||
import command
|
import command
|
||||||
|
@ -34,6 +34,11 @@ import unittest
|
|||||||
our_path = os.path.dirname(os.path.realpath(__file__))
|
our_path = os.path.dirname(os.path.realpath(__file__))
|
||||||
sys.path.append(os.path.join(our_path, '../patman'))
|
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 dtb_platdata
|
||||||
import test_util
|
import test_util
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user