Unverified Commit e1d3b403 authored by Fernando Rodrigues's avatar Fernando Rodrigues
Browse files

xen: deduplicate common patches and drop figs



The IPXE patch is the same across all versions.
Let us put generic patches in the new generic/ directory.

We also disable figs, as they were broken.

Signed-off-by: default avatarFernando Rodrigues <alpha@sigmasquadron.net>
parent 4dd8450a
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
Remove a pipe that was causing SIGPIPE
issues on overloaded Hydra machines.

diff --git a/docs/figs/Makefile b/docs/figs/Makefile
index e128a4364f..943f745dda 100644
--- a/docs/figs/Makefile
+++ b/docs/figs/Makefile
@@ -8,7 +8,7 @@ TARGETS= network-bridge.png network-basic.png
 all: $(TARGETS)
 
 %.png:	%.fig
-	$(FIG2DEV) -L png $< >$@.tmp
+	$(FIG2DEV) -L png $< $@.tmp
 	mv -f $@.tmp $@
 
 clean:
+1 −4
Original line number Diff line number Diff line
@@ -28,10 +28,7 @@ callPackage (import ../generic/default.nix {
    xen = {
      rev = "4b33780de790bd438dd7cbb6143b410d94f0f049";
      hash = "sha256-2kcmfKwBo3w1U5CSxLSYSteqvzcJaB+cA7keVb3amyA=";
      patches = [
        ./0000-xen-ipxe-src-4.16.patch
        ./0001-xen-fig-geneneration-4.16.patch
      ] ++ upstreamPatchList;
      patches = [ ] ++ upstreamPatchList;
    };
    qemu = {
      rev = "c02cb236b5e4a76cf74e641cc35a0e3ebd3e52f3";
+0 −27
Original line number Diff line number Diff line
Hack to make etherboot use pre-fetched iPXE.

diff --git a/tools/firmware/etherboot/Makefile b/tools/firmware/etherboot/Makefile
index ed9e11305f..979a3acea8 100644
--- a/tools/firmware/etherboot/Makefile
+++ b/tools/firmware/etherboot/Makefile
@@ -16,6 +16,7 @@ IPXE_TARBALL_URL ?= $(XEN_EXTFILES_URL)/ipxe-git-$(IPXE_GIT_TAG).tar.gz

 D=ipxe
 T=ipxe.tar.gz
+G=ipxe.git

 ROMS = $(addprefix $D/src/bin/, $(addsuffix .rom, $(ETHERBOOT_NICS)))
 ROM = $D/src/bin/ipxe.bin
@@ -41,9 +42,9 @@ $T:
 	fi
 	mv _$T $T

-$D/src/arch/i386/Makefile: $T Config
-	rm -rf $D
-	gzip -dc $T | tar xf -
+$D/src/arch/i386/Makefile: $G Config
+	mkdir $D
+	cp -a $G/* $D
 	for i in $$(cat patches/series) ; do                 \
 	    patch -d $D -p1 --quiet <patches/$$i || exit 1 ; \
 	done
+0 −16
Original line number Diff line number Diff line
Remove a pipe that was causing SIGPIPE
issues on overloaded Hydra machines.

diff --git a/docs/figs/Makefile b/docs/figs/Makefile
index e128a4364f..943f745dda 100644
--- a/docs/figs/Makefile
+++ b/docs/figs/Makefile
@@ -8,7 +8,7 @@ TARGETS= network-bridge.png network-basic.png
 all: $(TARGETS)
 
 %.png:	%.fig
-	$(FIG2DEV) -L png $< >$@.tmp
+	$(FIG2DEV) -L png $< $@.tmp
 	mv -f $@.tmp $@
 
 clean:
+1 −4
Original line number Diff line number Diff line
@@ -29,10 +29,7 @@ callPackage (import ../generic/default.nix {
    xen = {
      rev = "d530627aaa9b6e03c7f911434bb342fca3d13300";
      hash = "sha256-4ltQUzo4XPzGT/7fGt1hnNMqBQBVF7VP+WXD9ZaJcGo=";
      patches = [
        ./0000-xen-ipxe-src-4.17.patch
        ./0001-xen-fig-geneneration-4.17.patch
      ] ++ upstreamPatchList;
      patches = [ ] ++ upstreamPatchList;
    };
    qemu = {
      rev = "ffb451126550b22b43b62fb8731a0d78e3376c03";
Loading