This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-changelog] [xen-unstable] x86-64: don't generate dependency files w

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86-64: don't generate dependency files when building compat headers
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 27 Jan 2009 08:00:16 -0800
Delivery-date: Tue, 27 Jan 2009 08:00:56 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1233057262 0
# Node ID dbf53b739af0434adff50172fc071f718b57b450
# Parent  6e623569455c08b57e43e3355f6809b3a4ba0707
x86-64: don't generate dependency files when building compat headers

The generated dependency files weren't correct (as their names get
derived only from the base name of the target file, and there are
public headers with the same base name in different directories), not
needed (as the makefile already listed all necessary dependencies
explicitly), and resulted in the first re-build in an already built
tree to be an almost full re-build since the *.c files explicitly
mentioned in the .*.d result in make not considering them as
intermediate anymore, thus triggering re-generation of the headers,
and hence re-building of almost the entire tree.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
 xen/include/Makefile |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 6e623569455c -r dbf53b739af0 xen/include/Makefile
--- a/xen/include/Makefile      Tue Jan 27 11:45:59 2009 +0000
+++ b/xen/include/Makefile      Tue Jan 27 11:54:22 2009 +0000
@@ -51,7 +51,7 @@ compat/%.h: compat/%.i Makefile
        mv -f $@.new $@
 compat/%.i: compat/%.c Makefile
-       $(CPP) $(CFLAGS) $(cppflags-y) -o $@ $<
+       $(CPP) $(filter-out -M% .%.d,$(CFLAGS)) $(cppflags-y) -o $@ $<
 compat/%.c: public/%.h xlat.lst Makefile
        mkdir -p $(@D)

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] x86-64: don't generate dependency files when building compat headers, Xen patchbot-unstable <=