ipxe: update to upstream version
PATCH 1/1 ipxe: update to upstream version
# HG changeset patch
# User Roger Pau Monne <[email protected]> # Date 1324354802 -3600
# Node ID d61e6300274bbc6bc464ad340146bd81e91f64f3 # Parent 03138a08366b895d79e143119d4c9c72833cdbcd
ipxe: update to upstream version
Updated ipxe to current tree, which is540e5960dc6b49eacf367f7c319fd0546474b845:
Provide PXENV_FILE_EXIT_HOOK only for ipxelinux.0 builds
Removed all the backported patches and updated boot_prompt_option.patch to apply against current ipxe.
tools/firmware/etherboot/Makefile +5 -9
@@ -10,9 +10,7 @@ else IPXE_GIT_URL := git://git.ipxe.org/ipxe.git endif -IPXE_GIT_TAG := v1.0.0 - -IPXE_TARBALL_URL := $(XEN_EXTFILES_URL)/ipxe-git-$(IPXE_GIT_TAG).tar.gz +IPXE_GIT_TREE := 540e5960dc6b49eacf367f7c319fd0546474b845 D=ipxe T=ipxe.tar.gz
@@ -35,12 +33,10 @@ eb-roms.h: Config mv -f [email protected] $@ $T: - 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 + $(GIT) clone $(IPXE_GIT_URL) $D.git; \ + (cd $D.git && $(GIT) archive --format=tar --prefix=$D/ \ + $(IPXE_GIT_TREE) | gzip >../_$T); \ + rm -rf $D.git; \ mv _$T $T $D/src/arch/i386/Makefile: $T Config
tools/firmware/etherboot/patches/boot_prompt_option.patch +10 -9
@@ -1,7 +1,8 @@ -diff -pruN gpxe/src/arch/i386/prefix/romprefix.S gpxe.new/src/arch/i386/prefix/romprefix.S ---- gpxe/src/arch/i386/prefix/romprefix.S 2010-06-29 20:31:33.000000000 +0100 -+++ gpxe.new/src/arch/i386/prefix/romprefix.S 2010-07-20 10:40:20.000000000 +0100 -@@ -458,6 +458,7 @@ no_pmm: +diff --git a/src/arch/i386/prefix/romprefix.S b/src/arch/i386/prefix/romprefix.S +index 0f92415..cce7505 100644 +--- a/src/arch/i386/prefix/romprefix.S ++++ b/src/arch/i386/prefix/romprefix.S +@@ -391,6 +391,7 @@ no_pmm: xorw %di, %di cs rep movsb
@@ -9,15 +10,15 @@ diff -pruN gpxe/src/arch/i386/prefix/rom /* Prompt for POST-time shell */ movw $init_message_prompt, %si xorw %di, %di -@@ -484,6 +485,7 @@ no_pmm: +@@ -418,6 +419,7 @@ no_pmm: pushw %cs call exec - out: + 2: +#endif /* Restore registers */ popw %gs popw %fs -@@ -538,6 +540,7 @@ init_message_no_pmm: +@@ -546,6 +548,7 @@ init_message_pmm: init_message_int19: .asciz " INT19" .size init_message_int19, . - init_message_int19
@@ -25,11 +26,11 @@ diff -pruN gpxe/src/arch/i386/prefix/rom init_message_prompt: .asciz "\nPress Ctrl-B to configure " .size init_message_prompt, . - init_message_prompt -@@ -547,6 +550,7 @@ init_message_dots: +@@ -555,6 +558,7 @@ init_message_dots: init_message_done: .asciz "\n\n" .size init_message_done, . - init_message_done +#endif - /* ROM image location + /* PCI bus:dev.fn *
tools/firmware/etherboot/patches/gpxe-git-0edf2405b457 deleted +0 -30
@@ -1,30 +0,0 @@ -commit 0edf2405b457e542c244a72285511b3ff5c06885 -Author: Michael Brown <[email protected]> -Date: Tue Apr 27 09:52:22 2010 +0100 - - [build] Fix building with binutils 2.16 - - Signed-off-by: Michael Brown <[email protected]> - Signed-off-by: Stefan Hajnoczi <[email protected]> - -diff --git a/src/arch/i386/scripts/i386.lds b/src/arch/i386/scripts/i386.lds -index 278a397..0ce2c10 100644 ---- a/src/arch/i386/scripts/i386.lds -+++ b/src/arch/i386/scripts/i386.lds -@@ -24,6 +24,8 @@ SECTIONS { - * - */ - -+ PROVIDE ( _max_align = 16 ); -+ - /* - * The prefix - * -@@ -169,7 +171,6 @@ SECTIONS { - * - */ - -- PROVIDE ( _max_align = 16 ); - . = 0; - - . = ALIGN ( _max_align );
tools/firmware/etherboot/patches/gpxe-git-a803ef3dfeac deleted +0 -125
125 lines not on this page · raw message
tools/firmware/etherboot/patches/series +0 -2
@@ -1,3 +1,1 @@ boot_prompt_option.patch -gpxe-git-0edf2405b457 -gpxe-git-a803ef3dfeac
tools/firmware/etherboot/Makefile else · line 13
Quoted 11 lines
Quoted 1 line
Quoted 1 line · Roger Pau Monne
tools/firmware/etherboot/Makefile +1
-3@@ -10,9 +10,7 @@ else IPXE_GIT_URL := git://git.ipxe.org/ipxe.git endif -IPXE_GIT_TAG := v1.0.0 - -IPXE_TARBALL_URL := $(XEN_EXTFILES_URL)/ipxe-git-$(IPXE_GIT_TAG).tar.gz +IPXE_GIT_TREE := 540e5960dc6b49eacf367f7c319fd0546474b845
Is "TREE" really a meaningful name tag here? "COMMIT" would seem more reasonable to me.
Quoted 10 lines
tools/firmware/etherboot/Makefile +0
-3D=ipxe T=ipxe.tar.gz@@ -35,12 +33,10 @@ eb-roms.h: Config mv -f [email protected] $@ $T: - if ! wget -O _$T $(IPXE_TARBALL_URL); then \ - $(GIT) clone $(IPXE_GIT_URL) $D.git; \ - (cd $D.git && $(GIT) archive --format=tar --prefix=$D/ \
tools/firmware/etherboot/Makefile eb-roms.h: Config · line 42
Quoted 10 lines
tools/firmware/etherboot/Makefile +4
-3- $(IPXE_GIT_TAG) | gzip >../_$T); \ - rm -rf $D.git; \ - fi + $(GIT) clone $(IPXE_GIT_URL) $D.git; \ + (cd $D.git && $(GIT) archive --format=tar --prefix=$D/ \ + $(IPXE_GIT_TREE) | gzip >../_$T); \ + rm -rf $D.git; \ mv _$T $T $D/src/arch/i386/Makefile: $T Config
Please retain the option to have a tarball, so one can easily point this to some local file (and not require a functional network, nor having to tolerate the slowness of the cloning process, nor having to have git installed everywhere).
Jan
2011/12/21 Jan Beulich <[email protected]>:
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line · Roger Pau Monne
tools/firmware/etherboot/Makefile Tue Dec 20 05:20:02 2011 +0100 renamed from tools/firmware/etherboot/Makefile Fri Dec 09 16:19:36 2011 +0000 +0
-0@@ -10,9 +10,7 @@ elseIPXE_GIT_URL :=
git://git.ipxe.org/ipxe.git
endif
Quoted 7 lines
tools/firmware/etherboot/Makefile Tue Dec 20 05:20:02 2011 +0100
Quoted 4 lines
tools/firmware/etherboot/Makefile Tue Dec 20 05:20:02 2011 +0100 renamed from tools/firmware/etherboot/Makefile Fri Dec 09 16:19:36 2011 +0000 +1
-3-IPXE_GIT_TAG := v1.0.0 - -IPXE_TARBALL_URL := $(XEN_EXTFILES_URL)/ipxe-git-$(IPXE_GIT_TAG).tar.gz +IPXE_GIT_TREE := 540e5960dc6b49eacf367f7c319fd0546474b845Is "TREE" really a meaningful name tag here? "COMMIT" would seem more reasonable to me.
Well this hash is actually the tree hash, not the commit hash, see:
https://git.ipxe.org/ipxe.git/commit/9a93db3f0947484e30e753bbd61a10b17336e20e
Quoted 19 lines
Quoted 19 lines
D=ipxe
T=ipxe.tar.gztools/firmware/etherboot/Makefile Tue Dec 20 05:20:02 2011 +0100 renamed from tools/firmware/etherboot/Makefile Fri Dec 09 16:19:36 2011 +0000 +0
-0@@ -35,12 +33,10 @@ eb-roms.h: Configmv -f [email protected] $@
$T:
- 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
+ $(GIT) clone $(IPXE_GIT_URL) $D.git; \
+ (cd $D.git && $(GIT) archive --format=tar --prefix=$D/ \
+ $(IPXE_GIT_TREE) | gzip >../_$T); \
+ rm -rf $D.git; \
mv _$T $T
Quoted 6 lines
Quoted 1 line
$D/src/arch/i386/Makefile: $T Config
Please retain the option to have a tarball, so one can easily point this to some local file (and not require a functional network, nor having to tolerate the slowness of the cloning process, nor having to have git installed everywhere).
This patch retains the option to have a tarball, if it finds a ipxe.tar.gz, nothing is downloaded.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 17 lines
Quoted 1 line
Quoted 1 line · Roger Pau Monné
2011/12/21 Jan Beulich <[email protected]>:
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line · Roger Pau Monne
tools/firmware/etherboot/Makefile Tue Dec 20 05:20:02 2011 +0100 renamed from tools/firmware/etherboot/Makefile Fri Dec 09 16:19:36 2011 +0000 +0
-0@@ -10,9 +10,7 @@ else IPXE_GIT_URL := git://git.ipxe.org/ipxe.git endifQuoted 7 lines
tools/firmware/etherboot/Makefile Tue Dec 20 05:20:02 2011 +0100 else · line 13
Quoted 4 lines
tools/firmware/etherboot/Makefile Tue Dec 20 05:20:02 2011 +0100 renamed from tools/firmware/etherboot/Makefile Fri Dec 09 16:19:36 2011 +0000 +1
-3-IPXE_GIT_TAG := v1.0.0 - -IPXE_TARBALL_URL := $(XEN_EXTFILES_URL)/ipxe-git-$(IPXE_GIT_TAG).tar.gz +IPXE_GIT_TREE := 540e5960dc6b49eacf367f7c319fd0546474b845Is "TREE" really a meaningful name tag here? "COMMIT" would seem more reasonable to me.
Quoted 3 lines
Well this hash is actually the tree hash, not the commit hash, see:
https://git.ipxe.org/ipxe.git/commit/9a93db3f0947484e30e753bbd61a10b17336e20e
As the URL says, this is a commit hash. The representation of the tree at that commit can be obtained by replacing "commit" with "tree", that's correct, but according to my (admittedly very limited) git knowledge it's always commits (and maybe a few other things) that get hashes assigned, never trees.
Quoted 26 lines
Quoted 19 lines
Quoted 19 lines
tools/firmware/etherboot/Makefile Tue Dec 20 05:20:02 2011 +0100 renamed from tools/firmware/etherboot/Makefile Fri Dec 09 16:19:36 2011 +0000 +4
-6D=ipxe T=ipxe.tar.gz@@ -35,12 +33,10 @@ eb-roms.h: Config mv -f [email protected] $@ $T: - 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 + $(GIT) clone $(IPXE_GIT_URL) $D.git; \ + (cd $D.git && $(GIT) archive --format=tar --prefix=$D/ \ + $(IPXE_GIT_TREE) | gzip >../_$T); \ + rm -rf $D.git; \ mv _$T $TQuoted 6 lines
tools/firmware/etherboot/Makefile Tue Dec 20 05:20:02 2011 +0100 eb-roms.h: Config · line 42
Quoted 1 line
tools/firmware/etherboot/Makefile Tue Dec 20 05:20:02 2011 +0100 renamed from tools/firmware/etherboot/Makefile Fri Dec 09 16:19:36 2011 +0000 +0
-0$D/src/arch/i386/Makefile: $T ConfigPlease retain the option to have a tarball, so one can easily point this to some local file (and not require a functional network, nor having to tolerate the slowness of the cloning process, nor having to have git installed everywhere).
Quoted 2 lines
This patch retains the option to have a tarball, if it finds a ipxe.tar.gz, nothing is downloaded.
Hmm, okay. But the way you modify the logic things will need to be reverted once a proper tag becomes available in that tree again. I'd think such switching around shouldn't (going forward at least) require more than one or two changed lines. Can't you just set IPXE_GIT_TAG to the commit hash you want, and leave everything else untouched?
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel