ia64/xen-unstable

annotate buildconfigs/src.tarball @ 15281:736e7cf0a3a5

Fix pv-on-hvm mkbuildtree script for new repo layout.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Wed Jun 06 17:32:58 2007 +0100 (2007-06-06)
parents f6ff5d42164f
children 27768e6ca214
rev   line source
ian@15224 1 XEN_LINUX_MIRROR ?= http://www.kernel.org/pub/linux/kernel/v2.6/
ian@15224 2 XEN_LINUX_TARBALL ?= linux-$(LINUX_VER)-xen.tar.bz2
ian@15224 3
ian@15224 4 LINUX_SRCDIR ?= linux-$(LINUX_VER)
ian@15224 5
ian@15224 6 vpath linux-%.tar.bz2 $(LINUX_SRC_PATH)
ian@15224 7
ian@15224 8 # download a pristine Linux kernel tarball if there isn't one in LINUX_SRC_PATH
ian@15224 9 linux-%.tar.bz2:
ian@15224 10 @echo "Cannot find $@ in path $(LINUX_SRC_PATH)"
ian@15224 11 wget $(XEN_LINUX_MIRROR)/$@ -O./$@
ian@15224 12
ian@15224 13 # XXX create a pristine tree for diff -Nurp convenience
ian@15224 14
ian@15224 15 %/.valid-src: %.tar.bz2
ian@15224 16 rm -rf tmp-linux-$* $(@D)
ian@15224 17 mkdir -p tmp-linux-$*
ian@15224 18 tar -C tmp-linux-$* -jxf $<
ian@15224 19 -@rm -f tmp-linux-$*/pax_global_header
ian@15224 20 mv tmp-linux-$*/* $(@D)
ian@15224 21 @rm -rf tmp-linux-$*
ian@15224 22 touch $(@D)/.hgskip
ian@15224 23 touch $@ # update timestamp to avoid rebuild