From: Masahiro Yamada <yamada.masahiro@socionext.com>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: Barebox List <barebox@lists.infradead.org>
Subject: Re: distclean removing LICENSES .gitignores
Date: Thu, 16 May 2019 12:53:40 +0900 [thread overview]
Message-ID: <CAK7LNASBq7xdx0vNpdDu+O-iDy2f6scxryE6EESauLViP-QynA@mail.gmail.com> (raw)
In-Reply-To: <bafb7600-4351-2c80-d78f-35d59ae559ba@pengutronix.de>
On Tue, May 14, 2019 at 12:05 AM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>
> Hello Geordan,
>
> On 13/5/19 00:17, Geordan Neukum wrote:
> > When on the master branch, I noticed that running a "make distclean"
> > will remove:
> >
> > - LICENSES/exceptions/.gitignore
> >
> > - LICENSES/other/.gitignore
> >
> >
> > It looks like this is due to matching the pattern '-o size 0' in the
> > top-level barebox makefile under the distclean target.
> >
> > Is this the desired behavior?
>
> Nope, this behavior isn't desired. I added the files, to have git
> index the directories. IIRC, otherwise kernel checkpatch.pl laments their
> absence. Maybe we should add a comment describing the purpose and then
> these files aren't totally empty?
>
> > If not, I can go ahead and submit a
> > patch that cleans up that target.
>
> Please go ahead.
The '-o size 0' came from Linux, and it is gone already from Linux.
See this Linux commit:
commit f4b129f519f1bbd191dca2bf17d1137edf941fd1
Author: Michal Marek <mmarek@suse.cz>
Date: Wed Aug 10 13:10:20 2011 +0200
kbuild: Do not delete empty files in make distclean
Commit 3d64b44 introduced an empty file under
arch/arm/mach-zynq/board_dt.c. While this was not intended and the file
was removed from the tree by a later commit, we really should only match
junk files by known name patterns and not their size.
Reported-by: David Howells <dhowells@redhat.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
If you touch this hunk, please sync this part with Linux.
In other words, please import the following two commits as well.
commit a03fcb50e816a69acffb13b5e56db75063aeba8a
Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
Date: Fri Mar 28 16:36:12 2014 +0900
kbuild: remove redundant '.*.cmd' pattern from make distclean
'.*.cmd' files are cleaned-up by "make clean".
The same pattern in "make distclean" is unnecessary.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
commit f78271dfb77353c4d045f9735deebe21839fb2ed
Author: Masahiro Yamada <yamada.masahiro@socionext.com>
Date: Sun Jan 22 23:02:32 2017 +0900
kbuild: drop unneeded patterns '.*.orig' and '.*.rej' from distclean
The patterns '.*.orig' and '.*.rej' are cleaned away by '*.orig' and
'*.rej' seen two lines above.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> Cheers
> Ahmad
>
> >
> > Thanks,
> > Geordan
> >
> > _______________________________________________
> > barebox mailing list
> > barebox@lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/barebox
> >
>
> --
> Pengutronix e.K. | |
> Industrial Linux Solutions | http://www.pengutronix.de/ |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
> Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
--
Best Regards
Masahiro Yamada
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2019-05-16 3:54 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-12 22:17 Geordan Neukum
2019-05-13 15:05 ` Ahmad Fatoum
2019-05-14 2:19 ` [PATCH] LICENSES: modify .gitignore files to be nonempty Geordan Neukum
2019-05-14 7:28 ` Ian Abbott
2019-05-14 8:28 ` Ahmad Fatoum
2019-05-14 12:51 ` Ian Abbott
2019-05-15 0:45 ` [PATCH v2] " Geordan Neukum
2019-05-15 8:54 ` Ahmad Fatoum
2019-05-15 0:56 ` [PATCH] " Geordan Neukum
2019-05-14 8:35 ` Uwe Kleine-König
2019-05-14 10:37 ` [PATCH v2] " Geordan Neukum
2019-05-14 11:00 ` Ahmad Fatoum
2019-05-15 7:44 ` distclean removing LICENSES .gitignores Sascha Hauer
2019-05-16 3:53 ` Masahiro Yamada [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAK7LNASBq7xdx0vNpdDu+O-iDy2f6scxryE6EESauLViP-QynA@mail.gmail.com \
--to=yamada.masahiro@socionext.com \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox