All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Foley <pefoley2@verizon.net>
To: Arnaud Lacombe <lacombar@gmail.com>
Cc: Peter Foley <pefoley2@verizon.net>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux Kbuild Mailing List <linux-kbuild@vger.kernel.org>,
	mmarek@suse.cz
Subject: Re: kbuild: prevent make from deleting _shipped files
Date: Sun, 31 Jul 2011 13:37:58 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LNX.2.00.1107311333320.53256@linux> (raw)
In-Reply-To: <CACqU3MX=MVd8v2wKaFsNuXB2WsWq2jLsGfAdDEW9atoWbWE7Mg@mail.gmail.com>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 2268 bytes --]

On Sun, 31 Jul 2011, Arnaud Lacombe wrote:

> Hi,
> 
> On Sun, Jul 31, 2011 at 1:08 PM, Peter Foley <pefoley2@verizon.net> wrote:
> > On Sun, 31 Jul 2011, Arnaud Lacombe wrote:
> >
> >> Hi,
> >>
> >> On Sun, Jul 31, 2011 at 12:21 PM, Arnaud Lacombe <lacombar@gmail.com> wrote:
> >> > Hi,
> >> >
> >> > On Sun, Jul 31, 2011 at 11:37 AM, Peter Foley <pefoley2@verizon.net> wrote:
> >> >> commit 7373f4f (kbuild: add implicit rules for parser generation)
> >> >> created a implicit rule chain (%.c: %.c_shipped: %.y). This causes make to delete the _shipped files
> >> >> because it considers them intermediate files. Mark the _shipped files PRECIOUS
> >> >> to prevent make from deleting them.
> >> >>
> >> >> Signed-off-by: Peter Foley <pefoley2@verizon.net>
> >> > What make are you using, and what command triggers the issue ?
> >> >
> >> > Those rules should only be visible on parser regeneration (ie.
> >> > REGENERATE_PARSERS defined). make 3.82 does not seem to trigger the
> >> > issue:
> >> >
> >> > % make -v
> >> > GNU Make 3.82
> >> >
> >> > % make REGENERATE_PARSERS=y defconfig
> >> >  HOSTCC  scripts/basic/fixdep
> >> >  HOSTCC  scripts/kconfig/conf.o
> >> >  SHIPPED scripts/kconfig/zconf.tab.c
> >> >  SHIPPED scripts/kconfig/zconf.lex.c
> >> >  SHIPPED scripts/kconfig/zconf.hash.c
> >> >  HOSTCC  scripts/kconfig/zconf.tab.o
> >> >  HOSTLD  scripts/kconfig/conf
> >> > *** Default configuration is based on 'x86_64_defconfig'
> >> > [...]
> >> >
> >> > The shipped file are still there:
> >> >
> >> > % ls scripts/kconfig/*_shipped
> >> > scripts/kconfig/zconf.hash.c_shipped
> >> > scripts/kconfig/zconf.lex.c_shipped
> >> > scripts/kconfig/zconf.tab.c_shipped
> >> >
> >> a bare make-3.81 from ftp.gnu.org built on a Fedora 14 behave the same.
> >>
> >> I definitively needs enlightenment on this one :)
> >>
> >> Thanks,
> >>  - Arnaud
> >
> > The problem only appears when the parsers are actually rebuilt.
> > rm scripts/kconfig/*_shipped
> ^^^^^
> 
> This is why. You do not (or at least no longer) need to remove the
> *_shipped files before regenerating them.
> 
>  - Arnaud

Ok, I deleted the _shipped files as a easy way to force regeneration but 
touching the source files works just as well.
Please disregard this patch.


Thanks,

Peter

  reply	other threads:[~2011-07-31 17:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-31 15:37 kbuild: prevent make from deleting _shipped files Peter Foley
2011-07-31 16:21 ` Arnaud Lacombe
2011-07-31 16:58   ` Arnaud Lacombe
2011-07-31 17:08     ` Peter Foley
2011-07-31 17:22       ` Arnaud Lacombe
2011-07-31 17:25       ` Arnaud Lacombe
2011-07-31 17:37         ` Peter Foley [this message]
2011-07-31 18:37           ` Arnaud Lacombe
2011-07-31 18:45             ` [PATCH v2] " Peter Foley
2011-07-31 19:03               ` Arnaud Lacombe
2011-08-30  0:27                 ` Arnaud Lacombe
2011-08-31 14:36                 ` Michal Marek

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=alpine.LNX.2.00.1107311333320.53256@linux \
    --to=pefoley2@verizon.net \
    --cc=lacombar@gmail.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mmarek@suse.cz \
    /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 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.