All of lore.kernel.org
 help / color / mirror / Atom feed
From: aq <aquynh@gmail.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH] allow user to choose mirror to get kernel source
Date: Thu, 5 May 2005 05:57:27 +0900	[thread overview]
Message-ID: <9cde8bff0505041357500f7feb@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 338 bytes --]

hello,

This patch allows user to choose mirror to get linux kernel source
instead of getting it from kernel.org (which set as default)

# diffstat xen.patch 
 Config.mk             |    3 +++
 buildconfigs/Rules.mk |    2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>

[-- Attachment #2: xen.patch --]
[-- Type: application/octet-stream, Size: 1075 bytes --]

diff -Nurp -X ../dontdiff.aq xeno-unstable.bk/Config.mk xeno/Config.mk
--- xeno-unstable.bk/Config.mk	2005-05-05 05:46:31.000000000 +0900
+++ xeno/Config.mk	2005-05-05 05:30:43.000000000 +0900
@@ -37,3 +37,6 @@ endif
 
 LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i)) 
 CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
+
+# Choose the best mirror to download linux kernel
+KERNEL_REPO = http://www.kernel.org
diff -Nurp -X ../dontdiff.aq xeno-unstable.bk/buildconfigs/Rules.mk xeno/buildconfigs/Rules.mk
--- xeno-unstable.bk/buildconfigs/Rules.mk	2005-05-05 05:46:31.000000000 +0900
+++ xeno/buildconfigs/Rules.mk	2005-05-05 05:30:39.000000000 +0900
@@ -24,7 +24,7 @@ vpath linux-%.tar.bz2 $(LINUX_SRC_PATH)
 linux-%.tar.bz2: override _LINUX_VDIR = $(word 1,$(subst ., ,$*)).$(word 2,$(subst ., ,$*))
 linux-%.tar.bz2:
 	@echo "Cannot find $@ in path $(LINUX_SRC_PATH)"
-	wget http://www.kernel.org/pub/linux/kernel/v$(_LINUX_VDIR)/$@ -O./$@
+	wget $(KERNEL_REPO)/pub/linux/kernel/v$(_LINUX_VDIR)/$@ -O./$@
 
 # Expand NetBSD release to NetBSD version
 NETBSD_RELEASE  ?= 2.0

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

             reply	other threads:[~2005-05-04 20:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-04 20:57 aq [this message]
2005-05-07  9:53 ` [PATCH] allow user to choose mirror to get kernel source Keir Fraser
2005-05-07 14:10   ` aq

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9cde8bff0505041357500f7feb@mail.gmail.com \
    --to=aquynh@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.