]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
binman: Correct the search patch for pylibfdt
authorSimon Glass <sjg@chromium.org>
Fri, 10 Jul 2020 00:39:28 +0000 (18:39 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 20 Jul 2020 17:37:47 +0000 (11:37 -0600)
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 with a new
path.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
tools/binman/main.py

index 0ab2bb62065aad96a699f0f101ef07a4bc77c2d5..6f5a9d1ca2223fe3b34a984d7ffd36cdaa3fa037 100755 (executable)
@@ -26,6 +26,7 @@ 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'))