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.tarball | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 buildconfigs/src.tarball (limited to 'buildconfigs/src.tarball') 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 -- cgit v1.2.3