summaryrefslogtreecommitdiff
path: root/pcr/xen/patch-ovmf-apply-inbuild-patches.patch
blob: 2c2f3ed7507b49376b8240af48affa042dce6000 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 088d0d605131eeb43dc1c4ab21631ea7e51f8501 Mon Sep 17 00:00:00 2001
From: John Thomson <git@johnthomson.fastmail.com.au>
Date: Sat, 24 Jun 2017 09:38:13 +1000
Subject: [PATCH] Fix OVMF apply patches series

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

diff --git a/tools/firmware/Makefile b/tools/firmware/Makefile
index a5a6802..875e7e5 100644
--- a/tools/firmware/Makefile
+++ b/tools/firmware/Makefile
@@ -20,6 +20,9 @@ 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;
+	for i in $$(cat ovmf-patches/series); do \
+		patch -d ovmf-dir -Np1 < ovmf-patches/$$i || exit 1; \
+	done
 
 seabios-dir:
 	GIT=$(GIT) $(XEN_ROOT)/scripts/git-checkout.sh $(SEABIOS_UPSTREAM_URL) $(SEABIOS_UPSTREAM_REVISION) seabios-dir
-- 
2.13.1