ia64/xen-unstable

view buildconfigs/src.hg-clone @ 18824:0b8c6c91c5a4

pv-on-hvm drivers: build fixes for Linux 2.6.27+

Make the drivers build properly in a 2.6.27 environment as well as
against a kernel with pv-ops Xen configured on (in the latter case
more work would be needed to also make the drivers work, as there's a
large number of duplicate exports).

Portions from Charles Arnold <carnold@novell.com>.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Nov 24 11:11:20 2008 +0000 (2008-11-24)
parents 923b8dbb0fed
children
line source
1 # Mercurial
2 HG ?= hg
4 LINUX_SRCDIR ?= linux-$(LINUX_VER)-xen.hg
6 # Repository to clone.
7 XEN_LINUX_HGREPO ?= $$(sh buildconfigs/select-repository $(LINUX_SRCDIR) $(LINUX_SRC_PATH))
9 # Set XEN_LINUX_HGREV to update to a particlar revision.
10 XEN_LINUX_HGREV ?= tip
12 $(LINUX_SRCDIR)/.valid-src: $(__XEN_LINUX_UPDATE)
13 set -e ; \
14 if [ ! -e $(LINUX_SRCDIR)/.hg ] ; then \
15 __repo=$(XEN_LINUX_HGREPO) ; \
16 if [ -d $${__repo} ] ; then \
17 echo "Linking $${__repo} to $(LINUX_SRCDIR)." ; \
18 ln -s $${__repo} $(LINUX_SRCDIR) ; \
19 else \
20 echo "Cloning $${__repo} to $(LINUX_SRCDIR)." ; \
21 $(HG) clone $${__repo#file://} $(LINUX_SRCDIR) ; \
22 fi ; \
23 else \
24 __parent=$$($(HG) -R $(LINUX_SRCDIR) path default) ; \
25 echo "Pulling changes from $${__parent} into $(LINUX_SRCDIR)." ; \
26 $(HG) -R $(LINUX_SRCDIR) pull $${__parent} ; \
27 fi
28 set -e ; if [ -n "$(XEN_LINUX_HGREV)" ] ; then \
29 echo "Updating $(LINUX_SRCDIR) to revision $(XEN_LINUX_HGREV)." ; \
30 ( cd $(LINUX_SRCDIR) && $(HG) update $(XEN_LINUX_HGREV) ); \
31 fi
32 touch $@