From b02f23073313e243cef0e194c721f339300947fd Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Mon, 9 Jul 2007 11:57:07 +0100 Subject: Add support to the tarball source type for using the ketchup tool. Signed-off-by: Ian Campbell --- buildconfigs/src.tarball | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'buildconfigs/src.tarball') diff --git a/buildconfigs/src.tarball b/buildconfigs/src.tarball index b88fcfada8..b7f551c59a 100644 --- a/buildconfigs/src.tarball +++ b/buildconfigs/src.tarball @@ -1,8 +1,13 @@ XEN_LINUX_MIRROR ?= http://www.kernel.org/pub/linux/kernel/v2.6/ XEN_LINUX_TARBALL ?= linux-$(LINUX_VER)-xen.tar.bz2 +# Update using ketchup instead of manipulating tarball manually. +XEN_LINUX_TARBALL_KETCHUP ?= n + LINUX_SRCDIR ?= linux-$(LINUX_VER) +KETCHUP ?= buildconfigs/ketchup + vpath linux-%.tar.bz2 $(LINUX_SRC_PATH) # download a pristine Linux kernel tarball if there isn't one in LINUX_SRC_PATH @@ -12,6 +17,11 @@ linux-%.tar.bz2: # XXX create a pristine tree for diff -Nurp convenience +ifeq ($(XEN_LINUX_TARBALL_KETCHUP),y) +%/.valid-src: + $(KETCHUP) -d $(@D) $(LINUX_VER) + touch $@ # update timestamp to avoid rebuild +else %/.valid-src: %.tar.bz2 rm -rf tmp-linux-$* $(@D) mkdir -p tmp-linux-$* @@ -20,3 +30,4 @@ linux-%.tar.bz2: mv tmp-linux-$*/* $(@D) @rm -rf tmp-linux-$* touch $@ # update timestamp to avoid rebuild +endif -- cgit v1.2.3