diff options
author | Anuj Mittal <anuj.mittal@intel.com> | 2022-11-02 15:51:39 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2022-11-02 21:34:05 +0800 |
commit | af087c3c1f75486b8e84c3da452725718f8011b8 (patch) | |
tree | e5c2695a564ea5ae4a6f581a3f6bae5883ea9666 /recipes-kernel/linux | |
parent | 94b628a3e05d1e7c99eb183974076356574d2079 (diff) | |
download | meta-intel-af087c3c1f75486b8e84c3da452725718f8011b8.tar.gz |
linux-intel: fix perf reproducibility
Include a patch from linux-yocto to fix buildpaths problem when
compiling perf. Fixes:
| WARNING: perf-1.0-r9 do_package_qa: QA Issue: File /usr/lib/python3.10/site-packages/perf-0.1-py3.10-linux-x86_64.egg/EGG-INFO/SOURCES.txt in package perf-python contains reference to TMPDIR
| File /usr/lib/python3.10/site-packages/perf-0.1-py3.10-linux-x86_64.egg/__pycache__/perf.cpython-310.pyc in package perf-python contains reference to TMPDIR [buildpaths]
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
(cherry picked from commit 2db6c8af4b73ed09aa10007d2b93bb8f9c2ce589)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'recipes-kernel/linux')
-rw-r--r-- | recipes-kernel/linux/linux-intel.inc | 1 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-intel/fix-perf-reproducibility.patch | 39 |
2 files changed, 40 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-intel.inc b/recipes-kernel/linux/linux-intel.inc index f3465183..7e2823f0 100644 --- a/recipes-kernel/linux/linux-intel.inc +++ b/recipes-kernel/linux/linux-intel.inc | |||
@@ -11,6 +11,7 @@ SRC_URI = " \ | |||
11 | file://0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch \ | 11 | file://0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-.patch \ |
12 | file://0001-vt-conmakehash-improve-reproducibility.patch \ | 12 | file://0001-vt-conmakehash-improve-reproducibility.patch \ |
13 | file://0001-lib-build_OID_registry-fix-reproducibility-issues.patch \ | 13 | file://0001-lib-build_OID_registry-fix-reproducibility-issues.patch \ |
14 | file://fix-perf-reproducibility.patch \ | ||
14 | " | 15 | " |
15 | 16 | ||
16 | LINUX_VERSION_EXTENSION ??= "-intel-pk-${LINUX_KERNEL_TYPE}" | 17 | LINUX_VERSION_EXTENSION ??= "-intel-pk-${LINUX_KERNEL_TYPE}" |
diff --git a/recipes-kernel/linux/linux-intel/fix-perf-reproducibility.patch b/recipes-kernel/linux/linux-intel/fix-perf-reproducibility.patch new file mode 100644 index 00000000..1a98b1db --- /dev/null +++ b/recipes-kernel/linux/linux-intel/fix-perf-reproducibility.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From b8cd0e429bf75b673c438a8277d4bc74327df992 Mon Sep 17 00:00:00 2001 | ||
2 | From: Tom Zanussi <tom.zanussi@intel.com> | ||
3 | Date: Tue, 3 Jul 2012 13:07:23 -0500 | ||
4 | Subject: perf: change --root to --prefix for python install | ||
5 | |||
6 | Otherwise we get the sysroot path appended to the build path, not what | ||
7 | we want. | ||
8 | |||
9 | Signed-off-by: Tom Zanussi <tom.zanussi@intel.com> | ||
10 | |||
11 | Upstream-Status: Inappropriate | ||
12 | |||
13 | Taken from linux-yocto, v5.15/standard/base | ||
14 | https://git.yoctoproject.org/linux-yocto/commit?id=b8cd0e429bf75b673c438a8277d4bc74327df992&h=v5.15%2Fstandard%2Fbase | ||
15 | |||
16 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
17 | --- | ||
18 | tools/perf/Makefile.perf | 2 +- | ||
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
20 | |||
21 | (limited to 'tools/perf/Makefile.perf') | ||
22 | |||
23 | diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf | ||
24 | index 8f738e11356d..ee945d8e3996 100644 | ||
25 | --- a/tools/perf/Makefile.perf | ||
26 | +++ b/tools/perf/Makefile.perf | ||
27 | @@ -1022,7 +1022,7 @@ install-bin: install-tools install-tests install-traceevent-plugins | ||
28 | install: install-bin try-install-man | ||
29 | |||
30 | install-python_ext: | ||
31 | - $(PYTHON_WORD) util/setup.py --quiet install --root='/$(DESTDIR_SQ)' | ||
32 | + $(PYTHON_WORD) util/setup.py --quiet install --prefix='$(DESTDIR_SQ)/usr' | ||
33 | |||
34 | # 'make install-doc' should call 'make -C Documentation install' | ||
35 | $(INSTALL_DOC_TARGETS): | ||
36 | -- | ||
37 | cgit | ||
38 | |||
39 | |||