diff options
author | Ian Campbell <ian.campbell@xensource.com> | 2007-05-25 11:03:40 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@xensource.com> | 2007-05-25 11:03:40 +0100 |
commit | 7a35a3f0b5f668c9b7cdb289293977543735829d (patch) | |
tree | 918cd9544da671d782901f595d5f3fc1b887815c /buildconfigs/src.hg-clone | |
parent | 4117d5c1dbca483edcc2bb1b9430f87f122d9bc4 (diff) | |
download | xen-7a35a3f0b5f668c9b7cdb289293977543735829d.tar.gz xen-7a35a3f0b5f668c9b7cdb289293977543735829d.tar.bz2 xen-7a35a3f0b5f668c9b7cdb289293977543735829d.zip |
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 <ian.campbell@xensource.com>
Diffstat (limited to 'buildconfigs/src.hg-clone')
-rw-r--r-- | buildconfigs/src.hg-clone | 26 |
1 files changed, 26 insertions, 0 deletions
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 $@ |