ignore more files in Git?

Tom Rini trini at konsulko.com
Tue Nov 30 21:31:22 CET 2021


On Tue, Nov 30, 2021 at 09:21:08PM +0100, Rasmus Villemoes wrote:
> On 30/11/2021 17.02, Tom Rini wrote:
> > On Tue, Nov 30, 2021 at 05:39:36PM +0200, Andy Shevchenko wrote:
> 
> >>> These files are products of `make O=...`. There are no issues when I
> >>> build inside the tree (dunno why). But I definitely won't build in the
> >>> source tree folder.
> >>
> >> I realized that I might be unclear about the point.
> >> The problem here is that the source tree becomes dirty after clear
> >> instruction to get all temporary stuff out of the tree folder.
> > 
> > *shakes fist at python* I don't know if that's changeable behavior or
> > not, it would be good to know and document / address if possible.  Maybe
> > the kernel folks have had to figure out this problem already?
> 
> We could probably set and export PYTHONDONTWRITEBYTECODE in the main
> Makefile when doing an out-of-tree build. Or maybe one could play around
> with setting PYTHONPYCACHEPREFIX based on O=, though that seems to be
> for 3.8+, so probably not everybody has that. Of course neither of those
> should be touched by the build system if already set in the incoming
> environment.
> 
> https://docs.python.org/3/using/cmdline.html#envvar-PYTHONDONTWRITEBYTECODE

Setting PYTHONPYCACHEPREFIX to objdir might be a good idea.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20211130/5e69c08a/attachment.sig>


More information about the U-Boot mailing list