binman: Set a default toolpath
authorSimon Glass <sjg@chromium.org>
Fri, 10 Jul 2020 00:39:30 +0000 (18:39 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 25 Jul 2020 01:25:15 +0000 (19:25 -0600)
commitb5287c41266fcbd5d31271e1faef3159debf02e1
treeb807566d04902f704fdb5f9aa8294f3cec0a69ab
parent32eb66d2d4f3f761d98946414bcf7ca08600d422
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>
tools/binman/main.py