From: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: ltp-list@lists.sourceforge.net,
Andrew Morton <akpm@linux-foundation.org>,
ltp-coverage@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH 2/6] kbuild: let addtree result in absolute paths only
Date: Tue, 06 May 2008 17:53:16 +0200 [thread overview]
Message-ID: <48207EEC.6050709@de.ibm.com> (raw)
In-Reply-To: <20080505195548.GC8868@uranus.ravnborg.org>
Sam Ravnborg wrote:
> On Mon, May 05, 2008 at 05:24:16PM +0200, Peter Oberparleiter wrote:
>> From: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
>> Signed-off-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
>> ===================================================================
>> --- linux-2.6.26-rc1.orig/scripts/Kbuild.include
>> +++ linux-2.6.26-rc1/scripts/Kbuild.include
>> @@ -144,7 +144,7 @@ ld-option = $(call try-run,\
>> build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj
>>
>> # Prefix -I with $(srctree) if it is not an absolute path.
>> -addtree = $(if $(filter-out -I/%,$(1)),$(patsubst -I%,-I$(srctree)/%,$(1))) $(1)
>> +addtree = $(if $(filter-out -I/%,$(1)),$(patsubst -I%,-I$(srctree)/%,$(1)),$(1))
>>
>> # Find all -I options and call addtree
>> flags = $(foreach o,$($(1)),$(if $(filter -I%,$(o)),$(call addtree,$(o)),$(o)))
>
> We try to make all paths relative so less files get rebuild if you access the
> same source from two different paths (think nfs mounted src etc).
> So you really need to justify this change.
I understand your point about keeping as many paths as possible relative
and would like to discuss that in the reply to patch 3, where most
changes towards absolute paths are done.
As for this patch: on second thought I think this change makes no sense
without the next patch - I'll have to redo them both.
Regards,
Peter
next prev parent reply other threads:[~2008-05-06 15:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-05 15:24 [RFC PATCH 2/6] kbuild: let addtree result in absolute paths only Peter Oberparleiter
2008-05-05 19:55 ` Sam Ravnborg
2008-05-06 15:53 ` Peter Oberparleiter [this message]
2008-05-06 4:20 ` Andrew Morton
2008-05-06 7:36 ` Jan Engelhardt
2008-05-06 18:38 ` Peter Oberparleiter
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=48207EEC.6050709@de.ibm.com \
--to=peter.oberparleiter@de.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ltp-coverage@lists.sourceforge.net \
--cc=ltp-list@lists.sourceforge.net \
--cc=sam@ravnborg.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