ia64/xen-unstable

annotate buildconfigs/src.git-clone @ 19807:468561f3c8ee

Only allow DOMCTL_max_vcpus to increase vcpus from zero.

Otherwise reallocation of the vcpus array is unsafe.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jun 23 11:10:29 2009 +0100 (2009-06-23)
parents dc0d1200e3f3
children
rev   line source
keir@17957 1 # Mercurial
keir@17957 2 GIT ?= git
keir@17957 3
keir@17957 4 LINUX_SRCDIR ?= linux-$(LINUX_VER).git
keir@17957 5
keir@17957 6 # The URL of the remote GIT repository
keir@17957 7 ifeq ($(XEN_LINUX_GIT_URL),)
keir@17957 8 .ERROR: XEN_LINUX_GIT_URL not specified
keir@17957 9 endif
keir@17957 10
keir@17957 11 # The branch in the remote repository
keir@17957 12 ifeq ($(XEN_LINUX_GIT_REMOTEBRANCH),)
keir@17957 13 .ERROR: XEN_LINUX_GIT_REMOTEBRANCH not specified
keir@17957 14 endif
keir@17957 15
keir@17957 16 XEN_LINUX_GIT_LOCALBRANCH ?= master
keir@17957 17
keir@17957 18 # Set XEN_LINUX_GITREV to update to a particlar revision.
keir@17957 19 XEN_LINUX_GITREV ?=
keir@17957 20
keir@17957 21 $(LINUX_SRCDIR)/.valid-src: $(__XEN_LINUX_UPDATE)
keir@19799 22 set -ex; \
keir@19799 23 if ! [ -d $(LINUX_SRCDIR) ]; then \
keir@19799 24 rm -rf $(LINUX_SRCDIR) $(LINUX_SRCDIR).tmp; \
keir@19799 25 mkdir $(LINUX_SRCDIR).tmp; rmdir $(LINUX_SRCDIR).tmp; \
keir@19799 26 $(GIT) clone $(XEN_LINUX_GIT_URL) $(LINUX_SRCDIR).tmp; \
keir@19799 27 cd $(LINUX_SRCDIR).tmp; \
keir@19799 28 $(GIT) checkout $(XEN_LINUX_GIT_REMOTEBRANCH); \
keir@19799 29 cd ..; mv $(LINUX_SRCDIR).tmp $(LINUX_SRCDIR); \
keir@17957 30 fi
keir@17957 31 touch $@