diff options
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.patch | 33 |
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 @@ | |||
1 | From 9d32df80e33a7541658858497f45bed1e59e3621 Mon Sep 17 00:00:00 2001 | ||
2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
3 | Date: Mon, 1 Mar 2021 13:00:47 +0000 | ||
4 | Subject: [PATCH 06/11] qemu: Determinism fixes | ||
5 | |||
6 | When sources are included within debug information, a couple of areas of the | ||
7 | qemu build are not reproducible due to either full buildpaths or timestamps. | ||
8 | |||
9 | Replace the full paths with relative ones. I couldn't figure out how to get | ||
10 | meson to pass relative paths but we can fix that in the script. | ||
11 | |||
12 | Upstream-Status: Pending [some version of all/part of this may be accepted] | ||
13 | RP 2021/3/1 | ||
14 | --- | ||
15 | scripts/decodetree.py | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/scripts/decodetree.py b/scripts/decodetree.py | ||
19 | index 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 | -- | ||
32 | 2.44.0 | ||
33 | |||