0007-qemu-Determinism-fixes.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. From 50bab5c2605b609ea7ea154f57a9be96d656725a 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 07/12] qemu: Determinism fixes
  5. When sources are included within debug information, a couple of areas of the
  6. qemu build are not reproducible due to either full buildpaths or timestamps.
  7. Replace the full paths with relative ones. I couldn't figure out how to get
  8. meson to pass relative paths but we can fix that in the script.
  9. Upstream-Status: Pending [some version of all/part of this may be accepted]
  10. RP 2021/3/1
  11. ---
  12. scripts/decodetree.py | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. diff --git a/scripts/decodetree.py b/scripts/decodetree.py
  15. index a03dc6b5e..4ea24c1f3 100644
  16. --- a/scripts/decodetree.py
  17. +++ b/scripts/decodetree.py
  18. @@ -1328,7 +1328,7 @@ def main():
  19. toppat = ExcMultiPattern(0)
  20. for filename in args:
  21. - input_file = filename
  22. + input_file = os.path.relpath(filename)
  23. f = open(filename, 'rt', encoding='utf-8')
  24. parse_file(f, toppat)
  25. f.close()
  26. --
  27. 2.30.2