aboutsummaryrefslogtreecommitdiffstats
path: root/buildconfigs/mk.linux-2.6-xen
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@xensource.com>2007-08-17 13:28:53 +0100
committerIan Campbell <ian.campbell@xensource.com>2007-08-17 13:28:53 +0100
commitbc39e90242a95eaae3d2340ab4eb09b666244b3e (patch)
tree06868d23bd610dcee00007e67ed0d5b617911c8c /buildconfigs/mk.linux-2.6-xen
parent270415d3273daaf4b54d6e06488f0c9011e199eb (diff)
downloadxen-bc39e90242a95eaae3d2340ab4eb09b666244b3e.tar.gz
xen-bc39e90242a95eaae3d2340ab4eb09b666244b3e.tar.bz2
xen-bc39e90242a95eaae3d2340ab4eb09b666244b3e.zip
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>
Diffstat (limited to 'buildconfigs/mk.linux-2.6-xen')
-rw-r--r--buildconfigs/mk.linux-2.6-xen14
1 files changed, 14 insertions, 0 deletions
diff --git a/buildconfigs/mk.linux-2.6-xen b/buildconfigs/mk.linux-2.6-xen
index 4fd195b397..8abccd3894 100644
--- a/buildconfigs/mk.linux-2.6-xen
+++ b/buildconfigs/mk.linux-2.6-xen
@@ -7,6 +7,16 @@ EXTRAVERSION ?= -xen
# repositories.
LINUX_SRC_PATH ?= .:..
+# The source directory is not automatically updated to avoid blowing
+# away developer's changes. If you want to automatically pull a new
+# version of the Linux tree then add `XEN_LINUX_UPDATE=y' to your make
+# command line.
+ifeq ($(XEN_LINUX_UPDATE),y)
+__XEN_LINUX_UPDATE = $(LINUX_SRCDIR)/.force-update
+else
+__XEN_LINUX_UPDATE =
+endif
+
XEN_LINUX_SOURCE ?= hg-clone
# Let XEN_TARGET_ARCH override ARCH.
@@ -137,3 +147,7 @@ delete:
mrproper:
rm -rf $(LINUX_SRCDIR)
rm -f linux-$(LINUX_VER).tar.bz2
+
+.PHONY: $(LINUX_SRCDIR)/.force-update
+$(LINUX_SRCDIR)/.force-update:
+ @ :