From bc39e90242a95eaae3d2340ab4eb09b666244b3e Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Fri, 17 Aug 2007 13:28:53 +0100 Subject: 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 --- buildconfigs/mk.linux-2.6-xen | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'buildconfigs/mk.linux-2.6-xen') 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: + @ : -- cgit v1.2.3