WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [BUILD] Support cloning Linux tree from a

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [BUILD] Support cloning Linux tree from a git repository.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 04 Jul 2008 08:00:08 -0700
Delivery-date: Fri, 04 Jul 2008 08:00:11 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1215078346 -3600
# Node ID 7dee3b001d9fbf60196cd82e700b84501554f159
# Parent  20215b87d0f3587ed5e928c31b1df2596b15ae79
[BUILD] Support cloning Linux tree from a git repository.

Integrate the linux-2.6-tip tree as linux-2.6-tip-latest

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
 buildconfigs/mk.linux-2.6-tip-latest |   14 ++++++++
 buildconfigs/src.git-clone           |   60 +++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)

diff -r 20215b87d0f3 -r 7dee3b001d9f buildconfigs/mk.linux-2.6-tip-latest
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/buildconfigs/mk.linux-2.6-tip-latest      Thu Jul 03 10:45:46 2008 +0100
@@ -0,0 +1,14 @@
+XEN_LINUX_SOURCE ?= git-clone
+LINUX_VER ?= 2.6-x86-latest
+
+IMAGE_TARGET ?= bzImage vmlinux
+
+XEN_LINUX_CONFIG_UPDATE := buildconfigs/enable-xen-config
+
+XEN_LINUX_GIT_URL ?= 
git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-tip.git
+XEN_LINUX_GIT_REMOTENAME ?= x86
+XEN_LINUX_GIT_REMOTEBRANCH ?= auto-latest
+
+EXTRAVERSION ?=
+
+include buildconfigs/mk.linux-2.6-common
diff -r 20215b87d0f3 -r 7dee3b001d9f buildconfigs/src.git-clone
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/buildconfigs/src.git-clone        Thu Jul 03 10:45:46 2008 +0100
@@ -0,0 +1,60 @@
+# Mercurial
+GIT ?= git
+
+LINUX_SRCDIR ?= linux-$(LINUX_VER).git
+
+# The URL of the remote GIT repository
+ifeq ($(XEN_LINUX_GIT_URL),)
+.ERROR: XEN_LINUX_GIT_URL not specified
+endif
+
+# The name to use for the remote repository
+XEN_LINUX_GIT_REMOTENAME ?= origin
+
+# The branch in the remote repository
+ifeq ($(XEN_LINUX_GIT_REMOTEBRANCH),)
+.ERROR: XEN_LINUX_GIT_REMOTEBRANCH not specified
+endif
+
+XEN_LINUX_GIT_LOCALBRANCH ?= master
+
+# Set XEN_LINUX_GITREV to update to a particlar revision.
+XEN_LINUX_GITREV  ?= 
+
+$(LINUX_SRCDIR)/.valid-src: $(__XEN_LINUX_UPDATE)
+       @set -e ; if [ -d $(LINUX_SRCDIR) ] && [ ! -d $(GIT_DIR) ] ; then \
+           echo "$(LINUX_SRCDIR) exists but is not a git repository." 1>&2 ; \
+           false ; \
+       fi
+
+       @set -e ; if [ ! -e $(LINUX_SRCDIR)/.git ] ; then \
+           mkdir $(LINUX_SRCDIR) ; \
+           cd $(LINUX_SRCDIR) ; \
+           $(GIT) init-db ; \
+       fi
+
+       @set -e ; cd $(LINUX_SRCDIR) ; \
+       if ! $(GIT) remote | grep -q $(XEN_LINUX_GIT_REMOTENAME) ; then \
+           echo "Adding remote git repository \`$(XEN_LINUX_GIT_URL)' as 
\`$(XEN_LINUX_GIT_REMOTENAME)'" ; \
+           $(GIT) remote add $(XEN_LINUX_GIT_REMOTENAME) $(XEN_LINUX_GIT_URL) 
; \
+       fi
+
+       @echo "Updating remote \`$(XEN_LINUX_GIT_REMOTENAME)'"
+       @cd $(LINUX_SRCDIR) && $(GIT) fetch $(XEN_LINUX_GIT_REMOTENAME)
+
+       @set -e ; cd $(LINUX_SRCDIR) ; \
+       if ! $(GIT) branch -l | grep -q $(XEN_LINUX_GIT_LOCALBRANCH) ; then \
+           $(GIT) branch --track $(XEN_LINUX_GIT_LOCALBRANCH) \
+               $(XEN_LINUX_GIT_REMOTENAME)/$(XEN_LINUX_GIT_REMOTEBRANCH) ; \
+           $(GIT) checkout ; \
+       fi
+
+       @ set -e ; cd $(LINUX_SRCDIR) ; \
+       if [ -n "$(XEN_LINUX_GITREV)" ] ; then \
+           echo "Updating $(LINUX_SRCDIR) to revision \'$(XEN_LINUX_GITREV)'." 
; \
+           $(GIT) reset --hard $(XEN_LINUX_GITREV) ; \
+       else \
+           $(GIT) reset --hard 
$(XEN_LINUX_GIT_REMOTENAME)/$(XEN_LINUX_GIT_REMOTEBRANCH) ; \
+       fi
+
+       touch $@

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [BUILD] Support cloning Linux tree from a git repository., Xen patchbot-unstable <=