|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] etherboot: Download ipxe from XEN_EXTFILE
# 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 <=
|
|
|
|
|