[PATCH v3 1/2] binman: Do not pollute source tree when build with `make O=...`

Simon Glass sjg at chromium.org
Thu Dec 23 06:07:37 CET 2021

Hi Andy,

On Tue, 14 Dec 2021 at 17:33, Simon Glass <sjg at chromium.org> wrote:
> 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 at linux.intel.com>
> ---
> v3: avoided crash (Simon), preserved tree hierarchy
>  tools/binman/main.py | 13 ++++++++++++-
>  1 file changed, 12 insertions(+), 1 deletion(-)
> Applied to u-boot-dm/next, thanks!

I didn't notice this before, but this seems to create files like this:


We don't really want to 'recache' the common Python files. Do you
think we should revert this patch, or find another fix?


More information about the U-Boot mailing list