diff options
-rw-r--r-- | meta/recipes-rt/rt-tests/rt-tests-1.1/0001-gzip-with-n-for-build-reproducibilty.patch | 62 | ||||
-rw-r--r-- | meta/recipes-rt/rt-tests/rt-tests_1.1.bb | 1 |
2 files changed, 63 insertions, 0 deletions
diff --git a/meta/recipes-rt/rt-tests/rt-tests-1.1/0001-gzip-with-n-for-build-reproducibilty.patch b/meta/recipes-rt/rt-tests/rt-tests-1.1/0001-gzip-with-n-for-build-reproducibilty.patch new file mode 100644 index 0000000000..3bafbbe08f --- /dev/null +++ b/meta/recipes-rt/rt-tests/rt-tests-1.1/0001-gzip-with-n-for-build-reproducibilty.patch | |||
@@ -0,0 +1,62 @@ | |||
1 | From aabf518e2e61a882b925f9d2ac53dafa7a041a0a Mon Sep 17 00:00:00 2001 | ||
2 | From: Jeremy Puhlman <jpuhlman@mvista.com> | ||
3 | Date: Tue, 25 Feb 2020 22:58:59 +0000 | ||
4 | Subject: [PATCH] gzip with -n for build reproducibilty | ||
5 | |||
6 | The date can get encoded in the header of the gz file, which | ||
7 | causes the binary files between two different builds of the | ||
8 | same data to be different. Add -n for reproducibilty | ||
9 | |||
10 | Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com> | ||
11 | |||
12 | Upstream-Status: Submitted [mailinglist] | ||
13 | |||
14 | --- | ||
15 | Makefile | 24 ++++++++++++------------ | ||
16 | 1 file changed, 12 insertions(+), 12 deletions(-) | ||
17 | |||
18 | diff --git a/Makefile b/Makefile | ||
19 | index a54d82b..e9f0d5a 100644 | ||
20 | --- a/Makefile | ||
21 | +++ b/Makefile | ||
22 | @@ -168,17 +168,17 @@ install: all install_hwlatdetect | ||
23 | cp $(TARGETS) "$(DESTDIR)$(bindir)" | ||
24 | install -D -m 644 src/backfire/backfire.c "$(DESTDIR)$(srcdir)/backfire/backfire.c" | ||
25 | install -m 644 src/backfire/Makefile "$(DESTDIR)$(srcdir)/backfire/Makefile" | ||
26 | - gzip -c src/backfire/backfire.4 >"$(DESTDIR)$(mandir)/man4/backfire.4.gz" | ||
27 | - gzip -c src/cyclictest/cyclictest.8 >"$(DESTDIR)$(mandir)/man8/cyclictest.8.gz" | ||
28 | - gzip -c src/pi_tests/pi_stress.8 >"$(DESTDIR)$(mandir)/man8/pi_stress.8.gz" | ||
29 | - gzip -c src/ptsematest/ptsematest.8 >"$(DESTDIR)$(mandir)/man8/ptsematest.8.gz" | ||
30 | - gzip -c src/rt-migrate-test/rt-migrate-test.8 >"$(DESTDIR)$(mandir)/man8/rt-migrate-test.8.gz" | ||
31 | - gzip -c src/sigwaittest/sigwaittest.8 >"$(DESTDIR)$(mandir)/man8/sigwaittest.8.gz" | ||
32 | - gzip -c src/svsematest/svsematest.8 >"$(DESTDIR)$(mandir)/man8/svsematest.8.gz" | ||
33 | - gzip -c src/pmqtest/pmqtest.8 >"$(DESTDIR)$(mandir)/man8/pmqtest.8.gz" | ||
34 | - gzip -c src/backfire/sendme.8 >"$(DESTDIR)$(mandir)/man8/sendme.8.gz" | ||
35 | - gzip -c src/hackbench/hackbench.8 >"$(DESTDIR)$(mandir)/man8/hackbench.8.gz" | ||
36 | - gzip -c src/signaltest/signaltest.8 >"$(DESTDIR)$(mandir)/man8/signaltest.8.gz" | ||
37 | + gzip -nc src/backfire/backfire.4 >"$(DESTDIR)$(mandir)/man4/backfire.4.gz" | ||
38 | + gzip -nc src/cyclictest/cyclictest.8 >"$(DESTDIR)$(mandir)/man8/cyclictest.8.gz" | ||
39 | + gzip -nc src/pi_tests/pi_stress.8 >"$(DESTDIR)$(mandir)/man8/pi_stress.8.gz" | ||
40 | + gzip -nc src/ptsematest/ptsematest.8 >"$(DESTDIR)$(mandir)/man8/ptsematest.8.gz" | ||
41 | + gzip -nc src/rt-migrate-test/rt-migrate-test.8 >"$(DESTDIR)$(mandir)/man8/rt-migrate-test.8.gz" | ||
42 | + gzip -nc src/sigwaittest/sigwaittest.8 >"$(DESTDIR)$(mandir)/man8/sigwaittest.8.gz" | ||
43 | + gzip -nc src/svsematest/svsematest.8 >"$(DESTDIR)$(mandir)/man8/svsematest.8.gz" | ||
44 | + gzip -nc src/pmqtest/pmqtest.8 >"$(DESTDIR)$(mandir)/man8/pmqtest.8.gz" | ||
45 | + gzip -nc src/backfire/sendme.8 >"$(DESTDIR)$(mandir)/man8/sendme.8.gz" | ||
46 | + gzip -nc src/hackbench/hackbench.8 >"$(DESTDIR)$(mandir)/man8/hackbench.8.gz" | ||
47 | + gzip -nc src/signaltest/signaltest.8 >"$(DESTDIR)$(mandir)/man8/signaltest.8.gz" | ||
48 | |||
49 | .PHONY: install_hwlatdetect | ||
50 | install_hwlatdetect: hwlatdetect | ||
51 | @@ -187,7 +187,7 @@ install_hwlatdetect: hwlatdetect | ||
52 | install -D -m 755 src/hwlatdetect/hwlatdetect.py $(DESTDIR)$(PYLIB)/hwlatdetect.py ; \ | ||
53 | rm -f "$(DESTDIR)$(bindir)/hwlatdetect" ; \ | ||
54 | ln -s $(PYLIB)/hwlatdetect.py "$(DESTDIR)$(bindir)/hwlatdetect" ; \ | ||
55 | - gzip -c src/hwlatdetect/hwlatdetect.8 >"$(DESTDIR)$(mandir)/man8/hwlatdetect.8.gz" ; \ | ||
56 | + gzip -nc src/hwlatdetect/hwlatdetect.8 >"$(DESTDIR)$(mandir)/man8/hwlatdetect.8.gz" ; \ | ||
57 | fi | ||
58 | |||
59 | .PHONY: tarball | ||
60 | -- | ||
61 | 2.23.0 | ||
62 | |||
diff --git a/meta/recipes-rt/rt-tests/rt-tests_1.1.bb b/meta/recipes-rt/rt-tests/rt-tests_1.1.bb index 5aa0aa10c3..dad252b4ed 100644 --- a/meta/recipes-rt/rt-tests/rt-tests_1.1.bb +++ b/meta/recipes-rt/rt-tests/rt-tests_1.1.bb | |||
@@ -13,6 +13,7 @@ inherit ptest | |||
13 | SRC_URI += " \ | 13 | SRC_URI += " \ |
14 | file://run-ptest \ | 14 | file://run-ptest \ |
15 | file://rt_bmark.py \ | 15 | file://rt_bmark.py \ |
16 | file://0001-gzip-with-n-for-build-reproducibilty.patch \ | ||
16 | " | 17 | " |
17 | 18 | ||
18 | # rt-tests needs PI mutex support in libc | 19 | # rt-tests needs PI mutex support in libc |