ia64/xen-unstable

view buildconfigs/src.git-clone @ 19799:dc0d1200e3f3

buildconfigs/src.git-clone: use git clone, avoid git remote

git 1.4.x (which is on even some moderately recent systems) doesn't
have the `git remote' command. This is what caused the most recent
patchman build failure.

The machinery in buildconfigs/src.git-clone was rather more
complicated than needed, too. In this patch I replace this with a
similar set of runes to those used for ioemu-remote (almost identical
except that the QEMU_TAG feature is not supported in this instance).

I have done a successful test build with this change.

Cc: Ian Campbell <Ian.Campbell@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 18 15:32:48 2009 +0100 (2009-06-18)
parents 7dee3b001d9f
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 $@