mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
dtoc: Bring in the libfdt module automatically
Use the same technique as with binman to load this module from the U-Boot tree if available. This allows running tests without having to specify the PYTHONPATH variable. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
34bee10e00
commit
ff139b6c70
1 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,12 @@ import unittest
|
||||||
our_path = os.path.dirname(os.path.realpath(__file__))
|
our_path = os.path.dirname(os.path.realpath(__file__))
|
||||||
sys.path.insert(1, os.path.join(our_path, '..'))
|
sys.path.insert(1, os.path.join(our_path, '..'))
|
||||||
|
|
||||||
|
# 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'))
|
||||||
|
|
||||||
from dtoc import fdt
|
from dtoc import fdt
|
||||||
from dtoc import fdt_util
|
from dtoc import fdt_util
|
||||||
from dtoc.fdt_util import fdt32_to_cpu
|
from dtoc.fdt_util import fdt32_to_cpu
|
||||||
|
|
Loading…
Reference in a new issue