diff options
author | Ian Campbell <ian.campbell@xensource.com> | 2007-07-09 11:57:07 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@xensource.com> | 2007-07-09 11:57:07 +0100 |
commit | b02f23073313e243cef0e194c721f339300947fd (patch) | |
tree | 8c90eef84edc80265f6e071be96d0506921b259b /buildconfigs/src.tarball | |
parent | 97e8f14b87c39052aeaf017b7e5aef1e329486a0 (diff) | |
download | xen-b02f23073313e243cef0e194c721f339300947fd.tar.gz xen-b02f23073313e243cef0e194c721f339300947fd.tar.bz2 xen-b02f23073313e243cef0e194c721f339300947fd.zip |
Add support to the tarball source type for using the ketchup tool.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Diffstat (limited to 'buildconfigs/src.tarball')
-rw-r--r-- | buildconfigs/src.tarball | 11 |
1 files changed, 11 insertions, 0 deletions
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 |