summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu/0007-qemu-Determinism-fixes.patch
blob: 0d7dae368910b78757476cccc2d5e1b6a62db9fb (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
27
28
29
30
31
32
33
34
From 50bab5c2605b609ea7ea154f57a9be96d656725a Mon Sep 17 00:00:00 2001
From: Richard Purdie <richard.purdie@linuxfoundation.org>
Date: Mon, 1 Mar 2021 13:00:47 +0000
Subject: [PATCH 07/12] qemu: Determinism fixes

When sources are included within debug information, a couple of areas of the
qemu build are not reproducible due to either full buildpaths or timestamps.

Replace the full paths with relative ones. I couldn't figure out how to get
meson to pass relative paths but we can fix that in the script.

Upstream-Status: Pending [some version of all/part of this may be accepted]
RP 2021/3/1

---
 scripts/decodetree.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/decodetree.py b/scripts/decodetree.py
index a03dc6b5e..4ea24c1f3 100644
--- a/scripts/decodetree.py
+++ b/scripts/decodetree.py
@@ -1328,7 +1328,7 @@ def main():
     toppat = ExcMultiPattern(0)
 
     for filename in args:
-        input_file = filename
+        input_file = os.path.relpath(filename)
         f = open(filename, 'rt', encoding='utf-8')
         parse_file(f, toppat)
         f.close()
-- 
2.30.2