summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu/0006-qemu-Determinism-fixes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu/0006-qemu-Determinism-fixes.patch')
-rw-r--r--meta/recipes-devtools/qemu/qemu/0006-qemu-Determinism-fixes.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/qemu/qemu/0006-qemu-Determinism-fixes.patch b/meta/recipes-devtools/qemu/qemu/0006-qemu-Determinism-fixes.patch
new file mode 100644
index 0000000000..f07054f19a
--- /dev/null
+++ b/meta/recipes-devtools/qemu/qemu/0006-qemu-Determinism-fixes.patch
@@ -0,0 +1,33 @@
1From 9d32df80e33a7541658858497f45bed1e59e3621 Mon Sep 17 00:00:00 2001
2From: Richard Purdie <richard.purdie@linuxfoundation.org>
3Date: Mon, 1 Mar 2021 13:00:47 +0000
4Subject: [PATCH 06/11] qemu: Determinism fixes
5
6When sources are included within debug information, a couple of areas of the
7qemu build are not reproducible due to either full buildpaths or timestamps.
8
9Replace the full paths with relative ones. I couldn't figure out how to get
10meson to pass relative paths but we can fix that in the script.
11
12Upstream-Status: Pending [some version of all/part of this may be accepted]
13RP 2021/3/1
14---
15 scripts/decodetree.py | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/scripts/decodetree.py b/scripts/decodetree.py
19index e8b72da3a9..5cd86b1428 100644
20--- a/scripts/decodetree.py
21+++ b/scripts/decodetree.py
22@@ -1558,7 +1558,7 @@ def main():
23 toppat = ExcMultiPattern(0)
24
25 for filename in args:
26- input_file = filename
27+ input_file = os.path.relpath(filename)
28 f = open(filename, 'rt', encoding='utf-8')
29 parse_file(f, toppat)
30 f.close()
31--
322.44.0
33