binman: Use less hard coded magic when inserting new PATH
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 6 Dec 2021 11:44:13 +0000 (14:44 +0300)
committerSimon Glass <sjg@chromium.org>
Fri, 17 Dec 2021 16:44:59 +0000 (09:44 -0700)
commit33f27f4fadfaca3735f1ae35a20757aa21472b7c
tree4f37ddf8c4939f8b10d7d07805ea3e943c5e4896
parent022f6b0643ee7cf6f9474b768ba2aa802762980b
binman: Use less hard coded magic when inserting new PATH

Instead of joining hard coded '..' to the run-time path of the executable,
take just a dirname out of it. Besides that, use $(srctree) where it makes
sense.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
tools/binman/main.py