summaryrefslogtreecommitdiff
path: root/pcr/xen/patch-ovmf-use-python2.patch
blob: b52b9230c1a76b5880d5ce6af9a34875212518ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Subject: [PATCH] Fix ovmf, use python2

---
 tools/firmware/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/firmware/Makefile b/tools/firmware/Makefile
index b840c6a..a5a6802 100644
--- a/tools/firmware/Makefile
+++ b/tools/firmware/Makefile
@@ -17,6 +17,8 @@ LD32BIT-$(CONFIG_FreeBSD) := LD32BIT_FLAG=-melf_i386_fbsd
 
 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"
 	cp ovmf-makefile ovmf-dir/Makefile;
 
 seabios-dir:
-- 
2.13.0