All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] allow user to choose mirror to get kernel source
@ 2005-05-04 20:57 aq
  2005-05-07  9:53 ` Keir Fraser
  0 siblings, 1 reply; 3+ messages in thread
From: aq @ 2005-05-04 20:57 UTC (permalink / raw)
  To: xen-devel

[-- 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-05-07 14:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-04 20:57 [PATCH] allow user to choose mirror to get kernel source aq
2005-05-07  9:53 ` Keir Fraser
2005-05-07 14:10   ` aq

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.