From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Thibault Subject: Re: Build Problems w/ latest xen-unstable.hg Date: Tue, 5 Aug 2008 11:40:44 +0100 Message-ID: <20080805104044.GL4478@implementation.uk.xensource.com> References: <38AD81989214D54EB5F20C69477AF6C106A90DA3@xmb-sjc-217.amer.cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "Phil Winterfield (winterfi)" , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Keir Fraser, le Tue 05 Aug 2008 08:38:06 +0100, a =C3=A9crit : > I=E2=80=99m not sure if there is a canonical http download link for the= se 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 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=3Dioemu override CONFIG_QEMU=3Dioemu =20 IOEMU_OPTIONS=3D--disable-sdl --disable-opengl --disable-vnc-tls --disab= le-brlapi --disable-kqemu +ZLIB_URL?=3Dhttp://www.zlib.net ZLIB_VERSION=3D1.2.3 +LIBPCI_URL?=3Dhttp://www.kernel.org/pub/software/utils/pciutils LIBPCI_VERSION=3D2.2.9 +NEWLIB_URL?=3Dftp://sources.redhat.com/pub/newlib NEWLIB_VERSION=3D1.16.0 +LWIP_URL?=3Dhttp://download.savannah.gnu.org/releases/lwip LWIP_VERSION=3D1.3.0 +GRUB_URL?=3Dhttp://alpha.gnu.org/gnu/grub GRUB_VERSION=3D0.97 =20 WGET=3Dwget -c @@ -76,7 +81,7 @@ endif ############## =20 newlib-$(NEWLIB_VERSION).tar.gz: - $(WGET) ftp://sources.redhat.com/pub/newlib/$@ + $(WGET) $(NEWLIB_URL)/$@ =20 newlib-$(NEWLIB_VERSION): newlib-$(NEWLIB_VERSION).tar.gz tar xzf $< @@ -98,7 +103,7 @@ cross-newlib: $(NEWLIB_STAMPFILE) ############ =20 zlib-$(ZLIB_VERSION).tar.gz: - $(WGET) http://www.zlib.net/$@ + $(WGET) $(ZLIB_URL)/$@ =20 ZLIB_STAMPFILE=3D$(CROSS_ROOT)/$(GNU_TARGET_ARCH)-xen-elf/lib/libz.a .PHONY: cross-zlib @@ -115,7 +120,7 @@ cross-zlib: $(ZLIB_STAMPFILE) ############## =20 pciutils-$(LIBPCI_VERSION).tar.bz2: - $(WGET) http://www.kernel.org/pub/software/utils/pciutils/$@ + $(WGET) $(LIBPCI_URL)/$@ =20 pciutils-$(LIBPCI_VERSION): pciutils-$(LIBPCI_VERSION).tar.bz2 tar xjf $< @@ -141,7 +146,7 @@ cross-libpci: $(LIBPCI_STAMPFILE) ###### =20 lwip-$(LWIP_VERSION).tar.gz: - $(WGET) http://download.savannah.gnu.org/releases/lwip/$@ + $(WGET) $(LWIP_URL)/$@ =20 lwip: lwip-$(LWIP_VERSION).tar.gz tar xzf $< @@ -248,7 +253,7 @@ c: $(CROSS_ROOT) ###### =20 grub-$(GRUB_VERSION).tar.gz: - $(WGET) ftp://alpha.gnu.org/gnu/grub/$@ + $(WGET) $(GRUB_URL)/$@ =20 grub-upstream: grub-$(GRUB_VERSION).tar.gz tar xzf $<