Skip to content

Commit 834849e

Browse files
rpurdiestephanosio
authored andcommitted
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
1 parent f9a56c5 commit 834849e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/decodetree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1558,7 +1558,7 @@ def main():
15581558
toppat = ExcMultiPattern(0)
15591559

15601560
for filename in args:
1561-
input_file = filename
1561+
input_file = os.path.relpath(filename)
15621562
f = open(filename, 'rt', encoding='utf-8')
15631563
parse_file(f, toppat)
15641564
f.close()

0 commit comments

Comments
 (0)