ia64/xen-unstable

view buildconfigs/src.tarball @ 15775:a1b6555a37bf

Pull XEN_LINUX_UPDATE into mk.linux-2.6-xen so it can be shared by
src.tarball and src.hg-clone

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
author Ian Campbell <ian.campbell@xensource.com>
date Fri Aug 17 13:28:53 2007 +0100 (2007-08-17)
parents 231bfe08fdbf
children 34f7017a5941
line source
1 XEN_LINUX_MIRROR ?= http://www.kernel.org/pub/linux/kernel/v2.6/
2 XEN_LINUX_TARBALL ?= linux-$(LINUX_VER)-xen.tar.bz2
4 # Update using ketchup instead of manipulating tarball manually.
5 XEN_LINUX_TARBALL_KETCHUP ?= n
7 LINUX_SRCDIR ?= linux-$(LINUX_VER)
9 KETCHUP ?= python buildconfigs/ketchup
11 vpath linux-%.tar.bz2 $(LINUX_SRC_PATH)
13 # download a pristine Linux kernel tarball if there isn't one in LINUX_SRC_PATH
14 linux-%.tar.bz2:
15 @echo "Cannot find $@ in path $(LINUX_SRC_PATH)"
16 wget $(XEN_LINUX_MIRROR)/$@ -O./$@
18 # XXX create a pristine tree for diff -Nurp convenience
20 ifeq ($(XEN_LINUX_TARBALL_KETCHUP),y)
21 %/.valid-src: $(__XEN_LINUX_UPDATE)
22 $(KETCHUP) -d $(@D) $(LINUX_VER)
23 touch $@ # update timestamp to avoid rebuild
24 else
25 %/.valid-src: $(__XEN_LINUX_UPDATE) %.tar.bz2
26 rm -rf tmp-linux-$* $(@D)
27 mkdir -p tmp-linux-$*
28 tar -C tmp-linux-$* -jxf $<
29 -@rm -f tmp-linux-$*/pax_global_header
30 mv tmp-linux-$*/* $(@D)
31 @rm -rf tmp-linux-$*
32 touch $@ # update timestamp to avoid rebuild
33 endif