|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] Build Problems w/ latest xen-unstable.hg
Keir Fraser, le Tue 05 Aug 2008 08:38:06 +0100, a écrit :
> I’m not sure if there is a canonical http download link for these tarballs.
There is one for grub, but I couldn't find any for newlib.
> Even if not, we should make the download addresses configurable I guess.
Here is a patch.
Samuel
stubdom: add *_URL variables to permit to use e.g. local mirrors.
Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
diff -r 822982c8be93 stubdom/Makefile
--- a/stubdom/Makefile Mon Aug 04 16:54:06 2008 +0100
+++ b/stubdom/Makefile Tue Aug 05 11:36:03 2008 +0100
@@ -11,10 +11,15 @@ override CONFIG_QEMU=ioemu
override CONFIG_QEMU=ioemu
IOEMU_OPTIONS=--disable-sdl --disable-opengl --disable-vnc-tls
--disable-brlapi --disable-kqemu
+ZLIB_URL?=http://www.zlib.net
ZLIB_VERSION=1.2.3
+LIBPCI_URL?=http://www.kernel.org/pub/software/utils/pciutils
LIBPCI_VERSION=2.2.9
+NEWLIB_URL?=ftp://sources.redhat.com/pub/newlib
NEWLIB_VERSION=1.16.0
+LWIP_URL?=http://download.savannah.gnu.org/releases/lwip
LWIP_VERSION=1.3.0
+GRUB_URL?=http://alpha.gnu.org/gnu/grub
GRUB_VERSION=0.97
WGET=wget -c
@@ -76,7 +81,7 @@ endif
##############
newlib-$(NEWLIB_VERSION).tar.gz:
- $(WGET) ftp://sources.redhat.com/pub/newlib/$@
+ $(WGET) $(NEWLIB_URL)/$@
newlib-$(NEWLIB_VERSION): newlib-$(NEWLIB_VERSION).tar.gz
tar xzf $<
@@ -98,7 +103,7 @@ cross-newlib: $(NEWLIB_STAMPFILE)
############
zlib-$(ZLIB_VERSION).tar.gz:
- $(WGET) http://www.zlib.net/$@
+ $(WGET) $(ZLIB_URL)/$@
ZLIB_STAMPFILE=$(CROSS_ROOT)/$(GNU_TARGET_ARCH)-xen-elf/lib/libz.a
.PHONY: cross-zlib
@@ -115,7 +120,7 @@ cross-zlib: $(ZLIB_STAMPFILE)
##############
pciutils-$(LIBPCI_VERSION).tar.bz2:
- $(WGET) http://www.kernel.org/pub/software/utils/pciutils/$@
+ $(WGET) $(LIBPCI_URL)/$@
pciutils-$(LIBPCI_VERSION): pciutils-$(LIBPCI_VERSION).tar.bz2
tar xjf $<
@@ -141,7 +146,7 @@ cross-libpci: $(LIBPCI_STAMPFILE)
######
lwip-$(LWIP_VERSION).tar.gz:
- $(WGET) http://download.savannah.gnu.org/releases/lwip/$@
+ $(WGET) $(LWIP_URL)/$@
lwip: lwip-$(LWIP_VERSION).tar.gz
tar xzf $<
@@ -248,7 +253,7 @@ c: $(CROSS_ROOT)
######
grub-$(GRUB_VERSION).tar.gz:
- $(WGET) ftp://alpha.gnu.org/gnu/grub/$@
+ $(WGET) $(GRUB_URL)/$@
grub-upstream: grub-$(GRUB_VERSION).tar.gz
tar xzf $<
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|