All of lore.kernel.org
 help / color / mirror / Atom feed
* ignore more files in Git?
@ 2021-11-30 13:06 Andy Shevchenko
  2021-11-30 13:22 ` Tom Rini
  0 siblings, 1 reply; 7+ messages in thread
From: Andy Shevchenko @ 2021-11-30 13:06 UTC (permalink / raw)
  To: U-Boot Mailing List; +Cc: Tom Rini

Am I doing something wrong?

$ git status --ignored
On branch edison-acpi
Your branch is up to date with 'gh-andy-shev/edison-acpi'.

Ignored files:
 (use "git add -f <file>..." to include in what will be committed)
       tools/binman/__pycache__/
       tools/binman/etype/__pycache__/
       tools/concurrencytest/__pycache__/
       tools/dtoc/__pycache__/
       tools/patman/__pycache__/

nothing to commit, working tree clean

-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ignore more files in Git?
  2021-11-30 13:06 ignore more files in Git? Andy Shevchenko
@ 2021-11-30 13:22 ` Tom Rini
  2021-11-30 15:28   ` Andy Shevchenko
  0 siblings, 1 reply; 7+ messages in thread
From: Tom Rini @ 2021-11-30 13:22 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: U-Boot Mailing List

[-- Attachment #1: Type: text/plain, Size: 673 bytes --]

On Tue, Nov 30, 2021 at 03:06:23PM +0200, Andy Shevchenko wrote:

> Am I doing something wrong?
> 
> $ git status --ignored
> On branch edison-acpi
> Your branch is up to date with 'gh-andy-shev/edison-acpi'.
> 
> Ignored files:
>  (use "git add -f <file>..." to include in what will be committed)
>        tools/binman/__pycache__/
>        tools/binman/etype/__pycache__/
>        tools/concurrencytest/__pycache__/
>        tools/dtoc/__pycache__/
>        tools/patman/__pycache__/
> 
> nothing to commit, working tree clean

I don't know?  `git status --ignored` shows ignored files and
__pycache__ is in the top-level .gitignore file.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ignore more files in Git?
  2021-11-30 13:22 ` Tom Rini
@ 2021-11-30 15:28   ` Andy Shevchenko
  2021-11-30 15:39     ` Andy Shevchenko
  0 siblings, 1 reply; 7+ messages in thread
From: Andy Shevchenko @ 2021-11-30 15:28 UTC (permalink / raw)
  To: Tom Rini; +Cc: U-Boot Mailing List

On Tue, Nov 30, 2021 at 3:23 PM Tom Rini <trini@konsulko.com> wrote:
>
> On Tue, Nov 30, 2021 at 03:06:23PM +0200, Andy Shevchenko wrote:
>
> > Am I doing something wrong?
> >
> > $ git status --ignored
> > On branch edison-acpi
> > Your branch is up to date with 'gh-andy-shev/edison-acpi'.
> >
> > Ignored files:
> >  (use "git add -f <file>..." to include in what will be committed)
> >        tools/binman/__pycache__/
> >        tools/binman/etype/__pycache__/
> >        tools/concurrencytest/__pycache__/
> >        tools/dtoc/__pycache__/
> >        tools/patman/__pycache__/
> >
> > nothing to commit, working tree clean
>
> I don't know?  `git status --ignored` shows ignored files and
> __pycache__ is in the top-level .gitignore file.

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.

-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ignore more files in Git?
  2021-11-30 15:28   ` Andy Shevchenko
@ 2021-11-30 15:39     ` Andy Shevchenko
  2021-11-30 16:02       ` Tom Rini
  0 siblings, 1 reply; 7+ messages in thread
From: Andy Shevchenko @ 2021-11-30 15:39 UTC (permalink / raw)
  To: Tom Rini; +Cc: U-Boot Mailing List

On Tue, Nov 30, 2021 at 5:28 PM Andy Shevchenko
<andy.shevchenko@gmail.com> wrote:
> On Tue, Nov 30, 2021 at 3:23 PM Tom Rini <trini@konsulko.com> wrote:
> > On Tue, Nov 30, 2021 at 03:06:23PM +0200, Andy Shevchenko wrote:
> >
> > > Am I doing something wrong?
> > >
> > > $ git status --ignored
> > > On branch edison-acpi
> > > Your branch is up to date with 'gh-andy-shev/edison-acpi'.
> > >
> > > Ignored files:
> > >  (use "git add -f <file>..." to include in what will be committed)
> > >        tools/binman/__pycache__/
> > >        tools/binman/etype/__pycache__/
> > >        tools/concurrencytest/__pycache__/
> > >        tools/dtoc/__pycache__/
> > >        tools/patman/__pycache__/
> > >
> > > nothing to commit, working tree clean
> >
> > I don't know?  `git status --ignored` shows ignored files and
> > __pycache__ is in the top-level .gitignore file.
>
> 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.


-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ignore more files in Git?
  2021-11-30 15:39     ` Andy Shevchenko
@ 2021-11-30 16:02       ` Tom Rini
  2021-11-30 20:21         ` Rasmus Villemoes
  0 siblings, 1 reply; 7+ messages in thread
From: Tom Rini @ 2021-11-30 16:02 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: U-Boot Mailing List

[-- Attachment #1: Type: text/plain, Size: 1602 bytes --]

On Tue, Nov 30, 2021 at 05:39:36PM +0200, Andy Shevchenko wrote:
> On Tue, Nov 30, 2021 at 5:28 PM Andy Shevchenko
> <andy.shevchenko@gmail.com> wrote:
> > On Tue, Nov 30, 2021 at 3:23 PM Tom Rini <trini@konsulko.com> wrote:
> > > On Tue, Nov 30, 2021 at 03:06:23PM +0200, Andy Shevchenko wrote:
> > >
> > > > Am I doing something wrong?
> > > >
> > > > $ git status --ignored
> > > > On branch edison-acpi
> > > > Your branch is up to date with 'gh-andy-shev/edison-acpi'.
> > > >
> > > > Ignored files:
> > > >  (use "git add -f <file>..." to include in what will be committed)
> > > >        tools/binman/__pycache__/
> > > >        tools/binman/etype/__pycache__/
> > > >        tools/concurrencytest/__pycache__/
> > > >        tools/dtoc/__pycache__/
> > > >        tools/patman/__pycache__/
> > > >
> > > > nothing to commit, working tree clean
> > >
> > > I don't know?  `git status --ignored` shows ignored files and
> > > __pycache__ is in the top-level .gitignore file.
> >
> > 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?

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ignore more files in Git?
  2021-11-30 16:02       ` Tom Rini
@ 2021-11-30 20:21         ` Rasmus Villemoes
  2021-11-30 20:31           ` Tom Rini
  0 siblings, 1 reply; 7+ messages in thread
From: Rasmus Villemoes @ 2021-11-30 20:21 UTC (permalink / raw)
  To: Tom Rini, Andy Shevchenko; +Cc: U-Boot Mailing List

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

Rasmus

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ignore more files in Git?
  2021-11-30 20:21         ` Rasmus Villemoes
@ 2021-11-30 20:31           ` Tom Rini
  0 siblings, 0 replies; 7+ messages in thread
From: Tom Rini @ 2021-11-30 20:31 UTC (permalink / raw)
  To: Rasmus Villemoes; +Cc: Andy Shevchenko, U-Boot Mailing List

[-- Attachment #1: Type: text/plain, Size: 1341 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-11-30 20:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-30 13:06 ignore more files in Git? Andy Shevchenko
2021-11-30 13:22 ` Tom Rini
2021-11-30 15:28   ` Andy Shevchenko
2021-11-30 15:39     ` Andy Shevchenko
2021-11-30 16:02       ` Tom Rini
2021-11-30 20:21         ` Rasmus Villemoes
2021-11-30 20:31           ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.