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] etherboot: Download ipxe from XEN_EXTFILE

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] etherboot: Download ipxe from XEN_EXTFILES_URL
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 23 Dec 2010 05:33:50 -0800
Delivery-date: Thu, 23 Dec 2010 05:37:50 -0800
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@xxxxxxx>
# Date 1292009910 0
# Node ID 7446a2a78262cd06851718401ed3ca69f98ca81b
# Parent  9374882197196ab3208a584c4393bfad4a24ae83
etherboot: Download ipxe from XEN_EXTFILES_URL

Allows us to build even if the ipxe git server is down. We still fall
back to the git server if we cannot download a suitably named tarball
from our own URL.

Signed-off-by: Keir Fraser <keir@xxxxxxx>
---
 tools/firmware/etherboot/Makefile |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diff -r 937488219719 -r 7446a2a78262 tools/firmware/etherboot/Makefile
--- a/tools/firmware/etherboot/Makefile Fri Dec 10 18:44:07 2010 +0000
+++ b/tools/firmware/etherboot/Makefile Fri Dec 10 19:38:30 2010 +0000
@@ -12,8 +12,10 @@ endif
 
 IPXE_GIT_TAG := v1.0.0
 
+IPXE_TARBALL_URL := $(XEN_EXTFILES_URL)/ipxe-git-$(IPXE_GIT_TAG).tar.gz
+
 D=ipxe
-T=ipxe-git-snapshot.tar.gz
+T=ipxe.tar.gz
 
 ROMS = $(addprefix $D/src/bin/, $(addsuffix .rom, $(NICS)))
 
@@ -33,10 +35,13 @@ eb-roms.h: Config
        mv -f $@.new $@
 
 $T:
-       $(GIT) clone $(IPXE_GIT_URL) $D.git
-       cd $D.git && \
-       $(GIT) archive --format=tar --prefix=$D/ $(IPXE_GIT_TAG) | gzip >../$T
-       rm -rf $D.git
+       if ! wget -O _$T $(IPXE_TARBALL_URL); then \
+               $(GIT) clone $(IPXE_GIT_URL) $D.git; \
+               (cd $D.git && $(GIT) archive --format=tar --prefix=$D/ \
+               $(IPXE_GIT_TAG) | gzip >../_$T); \
+               rm -rf $D.git; \
+       fi
+       mv _$T $T
 
 $D/src/arch/i386/Makefile: $T Config
        rm -rf $D
@@ -51,7 +56,7 @@ eb-roms.h: Config
 
 .PHONY: clean
 clean:
-       rm -rf $D $D.git *~ eb-roms.h
+       rm -rf $D $D.git *~ eb-roms.h _$T
 
 .PHONY: distclean
 distclean: clean

_______________________________________________
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] etherboot: Download ipxe from XEN_EXTFILES_URL, Xen patchbot-unstable <=