debuggers.hg

view buildconfigs/src.git-clone @ 22848:6341fe0f4e5a

Added tag 4.1.0-rc2 for changeset 9dca60d88c63
author Keir Fraser <keir@xen.org>
date Tue Jan 25 14:06:55 2011 +0000 (2011-01-25)
parents 15e574a85800
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_GIT_ORIGIN ?= xen
18 XEN_LINUX_GIT_LOCALBRANCH ?= $(XEN_LINUX_GIT_REMOTEBRANCH)
20 # Set XEN_LINUX_GITREV to update to a particlar revision.
21 XEN_LINUX_GITREV ?= $(XEN_GIT_ORIGIN)/$(XEN_LINUX_GIT_REMOTEBRANCH)
23 $(LINUX_SRCDIR)/.valid-src: $(__XEN_LINUX_UPDATE)
24 set -ex; \
25 if ! [ -d $(LINUX_SRCDIR) ]; then \
26 rm -rf $(LINUX_SRCDIR) $(LINUX_SRCDIR).tmp; \
27 mkdir $(LINUX_SRCDIR).tmp; rmdir $(LINUX_SRCDIR).tmp; \
28 $(GIT) clone -o $(XEN_GIT_ORIGIN) -n $(XEN_LINUX_GIT_URL) $(LINUX_SRCDIR).tmp; \
29 (cd $(LINUX_SRCDIR).tmp; git checkout -b $(XEN_LINUX_GIT_LOCALBRANCH) $(XEN_LINUX_GITREV) ); \
30 mv $(LINUX_SRCDIR).tmp $(LINUX_SRCDIR); \
31 fi
32 touch $@