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] [XEN] Allow quick building of individual

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEN] Allow quick building of individual files.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 02 Aug 2006 18:40:18 +0000
Delivery-date: Wed, 02 Aug 2006 11:43:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID 08415dfc5918b43c79177237362237b2e3b6bca3
# Parent  9a4a560d0a23eb8cc8474ff422b8e3a2735e993a
[XEN] Allow quick building of individual files.

For the purpose of quick compile testing of (namely smaller) changes,
provide a
means to build individual pieces underneath the xen dir (could equally
be applied
to tools, and the top level Makefile could also be made aware of this
logic to
make things even more consistent). At once, add a way to only
pre-process files
in case some of the more complicated macros need change and hence
of the results.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
 xen/Makefile |   12 ++++++++++++
 xen/Rules.mk |    6 ++++++
 2 files changed, 18 insertions(+)

diff -r 9a4a560d0a23 -r 08415dfc5918 xen/Makefile
--- a/xen/Makefile      Wed Aug 02 15:01:59 2006 +0100
+++ b/xen/Makefile      Wed Aug 02 15:06:29 2006 +0100
@@ -146,3 +146,15 @@ _cscope:
        $(NM) $(TARGET) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] 
\)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map
+%.o %.i: %.c FORCE
+       $(MAKE) -f $(BASEDIR)/Rules.mk -C $(*D) $(@F)
+%.o %.s: %.S FORCE
+       $(MAKE) -f $(BASEDIR)/Rules.mk -C $(*D) $(@F)
+%/: FORCE
+       $(MAKE) -f $(BASEDIR)/Rules.mk -C $* built_in.o
diff -r 9a4a560d0a23 -r 08415dfc5918 xen/Rules.mk
--- a/xen/Rules.mk      Wed Aug 02 15:01:59 2006 +0100
+++ b/xen/Rules.mk      Wed Aug 02 15:06:29 2006 +0100
@@ -105,3 +105,9 @@ _clean_%/: FORCE
 %.o: %.S $(HDRS) Makefile
        $(CC) $(CFLAGS) $(AFLAGS) -c $< -o $@
+%.i: %.c $(HDRS) Makefile
+       $(CPP) $(CFLAGS) $< -o $@
+%.s: %.S $(HDRS) Makefile
+       $(CPP) $(CFLAGS) $(AFLAGS) $< -o $@

Xen-changelog mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEN] Allow quick building of individual files., Xen patchbot-unstable <=