summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-01 13:00:47 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-02 14:15:34 +0000
commit0dee49810490c6c3528de93658887099264bca9b (patch)
tree31c860e9da478cef90a2cfd990849961283c48e6 /meta/recipes-devtools/qemu/qemu
parente3ef99a911ea52b05258678e41acdc925847990d (diff)
downloadpoky-0dee49810490c6c3528de93658887099264bca9b.tar.gz
qemu: Determinism fixes
Add a patch to address two determinism issues and allow reproducible builds. Also strip full paths we don't need out of some ptest files, we can use the installed binaries. (From OE-Core rev: 14e7cc6c6040b983024bec56fbd32d9101507ff0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu')
-rw-r--r--meta/recipes-devtools/qemu/qemu/determinism.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-devtools/qemu/qemu/determinism.patch b/meta/recipes-devtools/qemu/qemu/determinism.patch
new file mode 100644
index 0000000000..cb1c907777
--- /dev/null
+++ b/meta/recipes-devtools/qemu/qemu/determinism.patch
@@ -0,0 +1,41 @@
1When sources are included within debug information, a couple of areas of the
2qemu build are not reproducible due to either full buildpaths or timestamps.
3
4Replace the full paths with relative ones. I couldn't figure out how to get
5meson to pass relative paths but we can fix that in the script.
6
7For the keymaps, omit the timestamps as they don't matter to us.
8
9Upstream-Status: Pending [some version of all/part of this may be accepted]
10RP 2021/3/1
11
12Index: qemu-5.2.0/scripts/decodetree.py
13===================================================================
14--- qemu-5.2.0.orig/scripts/decodetree.py
15+++ qemu-5.2.0/scripts/decodetree.py
16@@ -1303,8 +1303,8 @@ def main():
17 toppat = ExcMultiPattern(0)
18
19 for filename in args:
20- input_file = filename
21- f = open(filename, 'r')
22+ input_file = os.path.relpath(filename)
23+ f = open(input_file, 'r')
24 parse_file(f, toppat)
25 f.close()
26
27Index: qemu-5.2.0/ui/keycodemapdb/tools/keymap-gen
28===================================================================
29--- qemu-5.2.0.orig/ui/keycodemapdb/tools/keymap-gen
30+++ qemu-5.2.0/ui/keycodemapdb/tools/keymap-gen
31@@ -317,9 +317,8 @@ class LanguageGenerator(object):
32 raise NotImplementedError()
33
34 def generate_header(self, database, args):
35- today = time.strftime("%Y-%m-%d %H:%M")
36 self._boilerplate([
37- "This file is auto-generated from keymaps.csv on %s" % today,
38+ "This file is auto-generated from keymaps.csv",
39 "Database checksum sha256(%s)" % database.mapchecksum,
40 "To re-generate, run:",
41 " %s" % args,