From 7a35a3f0b5f668c9b7cdb289293977543735829d Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Fri, 25 May 2007 11:03:40 +0100 Subject: Factor out sparse tree makefile fragments and introduce hg-clone and tarball methods in preparation for migrating away from the sparse tree layout. This re-introduces 14883:6568c1882af5 and 14862:98efd2e410ae plus further fixes. Also add makefile fragments to support building the paravirt ops tree (make linux-2.6-paravirt-build). Signed-off-by: Ian Campbell --- buildconfigs/src.hg-clone | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 buildconfigs/src.hg-clone (limited to 'buildconfigs/src.hg-clone') diff --git a/buildconfigs/src.hg-clone b/buildconfigs/src.hg-clone new file mode 100644 index 0000000000..f387a95b6a --- /dev/null +++ b/buildconfigs/src.hg-clone @@ -0,0 +1,26 @@ +# Main repository to clone. +XEN_LINUX_HGREPO ?= http://xenbits.xensource.com/linux-$(LINUX_VER)-xen.hg + +# Set this to pull additional changesets from a second source. + +# This can be useful if you use a local mirror for XEN_LINUX_HGREPO +# (to reduce time spent cloning) but still want to pull the very +# latest changesets from xenbits. +XEN_LINUX_HGUPDATES ?= + +# Set this to update to a particlar revision. +XEN_LINUX_HGREV ?= + +LINUX_SRCDIR ?= linux-$(LINUX_VER)-xen.hg + +$(LINUX_SRCDIR)/.valid-src: + if [ ! -d $(LINUX_SRCDIR) ] ; then \ + hg clone $(XEN_LINUX_HGREPO) $(LINUX_SRCDIR) ; \ + fi + if [ -n "$(XEN_LINUX_HGUPDATES)" ] ; then \ + hg pull -R $(LINUX_SRCDIR) $(XEN_LINUX_HGUPDATES) ; \ + fi + if [ -n "$(XEN_LINUX_HGREV)" ] ; then \ + hg update -R $(LINUX_SRCDIR) $(XEN_LINUX_HGREV) ; \ + fi + touch $@ -- cgit v1.2.3