From: Randy Dunlap <rdunlap@xenotime.net>
To: Peter Foley <pefoley2@verizon.net>, Michal Marek <mmarek@suse.cz>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] kernel: prevent unnecessary rebuilding due to config_data.gz
Date: Wed, 6 Jul 2011 08:33:29 -0700 [thread overview]
Message-ID: <20110706083329.9755dc70.rdunlap@xenotime.net> (raw)
In-Reply-To: <alpine.LNX.2.00.1107051741390.20637@linux>
On Tue, 05 Jul 2011 19:42:18 -0400 (EDT) Peter Foley wrote:
> When IKCONFIG is built-in make oldconfig will cause the kernel to be
> relinked even if .config didn't change. This happens because of a
> config_data.gz dependency on .config. This patch changes the if_changed to
> a filechk so that config_data.h is only rebuilt when the contents
> have actually changed.
>
> Signed-off-by: Peter Foley <pefoley2@verizon.net>
Michal,
If this looks OK to you, please merge it.
Thanks.
> ---
> kernel/Makefile | 5 ++---
> 1 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/kernel/Makefile b/kernel/Makefile
> index 2d64cfc..d06467f 100644
> --- a/kernel/Makefile
> +++ b/kernel/Makefile
> @@ -125,11 +125,10 @@ targets += config_data.gz
> $(obj)/config_data.gz: $(KCONFIG_CONFIG) FORCE
> $(call if_changed,gzip)
>
> -quiet_cmd_ikconfiggz = IKCFG $@
> - cmd_ikconfiggz = (echo "static const char kernel_config_data[] __used = MAGIC_START"; cat $< | scripts/bin2c; echo "MAGIC_END;") > $@
> + filechk_ikconfiggz = (echo "static const char kernel_config_data[] __used = MAGIC_START"; cat $< | scripts/bin2c; echo "MAGIC_END;")
> targets += config_data.h
> $(obj)/config_data.h: $(obj)/config_data.gz FORCE
> - $(call if_changed,ikconfiggz)
> + $(call filechk,ikconfiggz)
>
> $(obj)/time.o: $(obj)/timeconst.h
>
> --
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
next prev parent reply other threads:[~2011-07-06 15:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-05 23:42 Peter Foley
2011-07-06 15:33 ` Randy Dunlap [this message]
2011-07-15 2:52 ` Peter Foley
2011-07-19 23:33 ` 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=20110706083329.9755dc70.rdunlap@xenotime.net \
--to=rdunlap@xenotime.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mmarek@suse.cz \
--cc=pefoley2@verizon.net \
/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
all inboxes | Powered by JetHome®