mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-21 07:01:57 +00:00
binman: Set a default toolpath
When binman is run from 'make check' it is given a toolpath so that the latest tools (e.g. mkimage) are used. When run manually with no toolpath, it relies on the system mkimage. But this may be missing or old. Make some effort to find the built-from-soruce version by looking in the current directory and in the builds created by 'make check'. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
32eb66d2d4
commit
b5287c4126
1 changed files with 5 additions and 0 deletions
|
@ -113,6 +113,11 @@ def RunBinman(args):
|
|||
if not args.debug:
|
||||
sys.tracebacklimit = 0
|
||||
|
||||
# Provide a default toolpath in the hope of finding a mkimage built from
|
||||
# current source
|
||||
if not args.toolpath:
|
||||
args.toolpath = ['./tools', 'build-sandbox/tools']
|
||||
|
||||
if args.cmd == 'test':
|
||||
if args.test_coverage:
|
||||
RunTestCoverage(args.toolpath)
|
||||
|
|
Loading…
Reference in a new issue