ia64/xen-unstable

view 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
line source
1 # Mercurial
2 GIT ?= git
4 LINUX_SRCDIR ?= linux-$(LINUX_VER).git
6 # The URL of the remote GIT repository
7 ifeq ($(XEN_LINUX_GIT_URL),)
8 .ERROR: XEN_LINUX_GIT_URL not specified
9 endif
11 # The branch in the remote repository
12 ifeq ($(XEN_LINUX_GIT_REMOTEBRANCH),)
13 .ERROR: XEN_LINUX_GIT_REMOTEBRANCH not specified
14 endif
16 XEN_LINUX_GIT_LOCALBRANCH ?= master
18 # Set XEN_LINUX_GITREV to update to a particlar revision.
19 XEN_LINUX_GITREV ?=
21 $(LINUX_SRCDIR)/.valid-src: $(__XEN_LINUX_UPDATE)
22 set -ex; \
23 if ! [ -d $(LINUX_SRCDIR) ]; then \
24 rm -rf $(LINUX_SRCDIR) $(LINUX_SRCDIR).tmp; \
25 mkdir $(LINUX_SRCDIR).tmp; rmdir $(LINUX_SRCDIR).tmp; \
26 $(GIT) clone $(XEN_LINUX_GIT_URL) $(LINUX_SRCDIR).tmp; \
27 cd $(LINUX_SRCDIR).tmp; \
28 $(GIT) checkout $(XEN_LINUX_GIT_REMOTEBRANCH); \
29 cd ..; mv $(LINUX_SRCDIR).tmp $(LINUX_SRCDIR); \
30 fi
31 touch $@