binman: Do not pollute source tree when build with `make O=...`
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 6 Dec 2021 11:44:12 +0000 (14:44 +0300)
committerSimon Glass <sjg@chromium.org>
Fri, 17 Dec 2021 16:44:59 +0000 (09:44 -0700)
commit022f6b0643ee7cf6f9474b768ba2aa802762980b
treea7111ff9c51c9d2d17db5bf06d677fc15711ff8a
parent6405ab7ad5898966136cf9044fef1bc0c4fe0ea9
binman: Do not pollute source tree when build with `make O=...`

Importing libraries in Python caches the bytecode by default.
Since we run scripts in source tree it ignores the current directory
settings, which is $(srctree), and creates cache just in the middle
of the source tree. Move cache to the current directory.

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