summaryrefslogtreecommitdiff
path: root/kernels/xen/ovmf.patch
blob: 19ad7d3260153759d6b4effb858aaae5fb36f763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/tools/firmware/Makefile
+++ b/tools/firmware/Makefile
@@ -19,6 +19,9 @@
 
 ovmf-dir:
 	GIT=$(GIT) $(XEN_ROOT)/scripts/git-checkout.sh $(OVMF_UPSTREAM_URL) $(OVMF_UPSTREAM_REVISION) ovmf-dir
+	sed 's|python |python2 |g' -i "ovmf-dir/BaseTools/BinWrappers/PosixLike"/* || true
+	sed 's|python |python2 |g' -i "ovmf-dir/BaseTools/Tests/GNUmakefile"
+	patch -Np1 -i patch-gcc6-ovmf-build.sh.patch
 	cp ovmf-makefile ovmf-dir/Makefile;
 
 seabios-dir: