From: Philippe Reynes Date: Thu, 27 Jan 2022 14:03:13 +0000 (+0100) Subject: tools: binman: main.py: add build-sandbox in sys.path X-Git-Tag: v2025.01-rc5-pxa1908~1478^2~11^2~28 X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20%24style.RelPermalink%20%7D%7D?a=commitdiff_plain;h=7aa288ef5ca45c38336f65d8ba2f62de9f984201;p=u-boot.git tools: binman: main.py: add build-sandbox in sys.path Adds build-sandbox in sys.path to look for libfdt, otherwise py_test can't use binman. Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass --- diff --git a/tools/binman/main.py b/tools/binman/main.py index ab25b48b5f..9392b59adb 100755 --- a/tools/binman/main.py +++ b/tools/binman/main.py @@ -41,6 +41,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(srctree, 'scripts/dtc/pylibfdt')) +sys.path.insert(2, os.path.join(srctree, 'build-sandbox/scripts/dtc/pylibfdt')) sys.path.insert(2, os.path.join(srctree, 'build-sandbox_spl/scripts/dtc/pylibfdt')) # When running under python-coverage on Ubuntu 16.04, the dist-packages