aboutsummaryrefslogtreecommitdiffstats
path: root/buildconfigs/src.tarball
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@xensource.com>2007-05-25 11:03:40 +0100
committerIan Campbell <ian.campbell@xensource.com>2007-05-25 11:03:40 +0100
commit7a35a3f0b5f668c9b7cdb289293977543735829d (patch)
tree918cd9544da671d782901f595d5f3fc1b887815c /buildconfigs/src.tarball
parent4117d5c1dbca483edcc2bb1b9430f87f122d9bc4 (diff)
downloadxen-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.tarball')
-rw-r--r--buildconfigs/src.tarball25
1 files changed, 25 insertions, 0 deletions
diff --git a/buildconfigs/src.tarball b/buildconfigs/src.tarball
new file mode 100644
index 0000000000..35f0860479
--- /dev/null
+++ b/buildconfigs/src.tarball
@@ -0,0 +1,25 @@
+XEN_LINUX_MIRROR ?= http://www.kernel.org/pub/linux/kernel/v2.6/
+XEN_LINUX_TARBALL ?= linux-$(LINUX_VER)-xen.tar.bz2
+
+LINUX_SRCDIR ?= linux-$(LINUX_VER)
+
+# Setup Linux search path
+LINUX_SRC_PATH ?= .:..
+vpath linux-%.tar.bz2 $(LINUX_SRC_PATH)
+
+# download a pristine Linux kernel tarball if there isn't one in LINUX_SRC_PATH
+linux-%.tar.bz2:
+ @echo "Cannot find $@ in path $(LINUX_SRC_PATH)"
+ wget $(XEN_LINUX_MIRROR)/$@ -O./$@
+
+# XXX create a pristine tree for diff -Nurp convenience
+
+%/.valid-src: %.tar.bz2
+ rm -rf tmp-linux-$* $(@D)
+ mkdir -p tmp-linux-$*
+ tar -C tmp-linux-$* -jxf $<
+ -@rm -f tmp-linux-$*/pax_global_header
+ mv tmp-linux-$*/* $(@D)
+ @rm -rf tmp-linux-$*
+ touch $(@D)/.hgskip
+ touch $@ # update timestamp to avoid rebuild