ia64/xen-unstable

view buildconfigs/src.tarball @ 15251:f6ff5d42164f

Updates for XEN_LINUX_SOURCE=hg-clone.

By default search for mercurial repositories in $(LINUX_SRC_PATH)
followed by a location derived from the current Xen repository's
default parent. e.g. A clone of
http://xenbits.xensource.com/xen-unstable.hg will derive
http://xenbits.xensource.com/linux-2.6.18-xen.hg. A specific
repository can be specified by giving XEN_LINUX_HGREPO=<URL or path>
on the make command line.

Add capability to put XEN_LINUX_UPDATE=y on the make command line to
update the Linux repository. Disabled by default since we don't want
to touch a developers repository without permission.

Dropped XEN_LINUX_HGUPDATES since it was unecessary and confusing.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
author Ian Campbell <ian.campbell@xensource.com>
date Thu May 31 14:51:09 2007 +0100 (2007-05-31)
parents 3fcd0b9fd083
children 27768e6ca214
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 LINUX_SRCDIR ?= linux-$(LINUX_VER)
6 vpath linux-%.tar.bz2 $(LINUX_SRC_PATH)
8 # download a pristine Linux kernel tarball if there isn't one in LINUX_SRC_PATH
9 linux-%.tar.bz2:
10 @echo "Cannot find $@ in path $(LINUX_SRC_PATH)"
11 wget $(XEN_LINUX_MIRROR)/$@ -O./$@
13 # XXX create a pristine tree for diff -Nurp convenience
15 %/.valid-src: %.tar.bz2
16 rm -rf tmp-linux-$* $(@D)
17 mkdir -p tmp-linux-$*
18 tar -C tmp-linux-$* -jxf $<
19 -@rm -f tmp-linux-$*/pax_global_header
20 mv tmp-linux-$*/* $(@D)
21 @rm -rf tmp-linux-$*
22 touch $(@D)/.hgskip
23 touch $@ # update timestamp to avoid rebuild