[2/2] feat: add and package python bindings for perf

Message ID 20210121105224.26285-3-felix.moessbauer@siemens.com
State Superseded, archived
Headers show
Series [1/2] feat: package linux-perf-<version> in kernel recipe | expand

Commit Message

MOESSBAUER, Felix Jan. 21, 2021, 12:52 a.m. UTC
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 .../patches/perf/4.19/tools-perf-python.patch    | 16 ++++++++++++++++
 meta/recipes-kernel/linux/linux-tools.inc        |  1 +
 2 files changed, 17 insertions(+)
 create mode 100644 meta/recipes-kernel/linux/files/patches/perf/4.19/tools-perf-python.patch

Patch

diff --git a/meta/recipes-kernel/linux/files/patches/perf/4.19/tools-perf-python.patch b/meta/recipes-kernel/linux/files/patches/perf/4.19/tools-perf-python.patch
new file mode 100644
index 0000000..6fc1bde
--- /dev/null
+++ b/meta/recipes-kernel/linux/files/patches/perf/4.19/tools-perf-python.patch
@@ -0,0 +1,16 @@ 
+--- a/tools/perf/Makefile.perf
++++ b/tools/perf/Makefile.perf
+@@ -829,10 +829,10 @@
+ 
+ install-bin: install-tools install-tests install-traceevent-plugins
+ 
+-install: install-bin try-install-man
+-
+ install-python_ext:
+-	$(PYTHON_WORD) util/setup.py --quiet install --root='/$(DESTDIR_SQ)'
++	$(PYTHON_WORD) util/setup.py --quiet install --root='/$(DESTDIR_SQ)' --install-layout=deb;
++
++install: install-bin try-install-man install-python_ext
+ 
+ # 'make install-doc' should call 'make -C Documentation install'
+ $(INSTALL_DOC_TARGETS):
diff --git a/meta/recipes-kernel/linux/linux-tools.inc b/meta/recipes-kernel/linux/linux-tools.inc
index b1e9376..07b93a2 100644
--- a/meta/recipes-kernel/linux/linux-tools.inc
+++ b/meta/recipes-kernel/linux/linux-tools.inc
@@ -34,6 +34,7 @@  KERNEL_PERF_COMPAT = "nopackage"
 KERNEL_PERF_PATCHES[4.19] ?= " \
     file://patches/perf/4.19/tools-perf-version.patch \
     file://patches/perf/4.19/tools-perf-install.patch \
+    file://patches/perf/4.19/tools-perf-python.patch \
 "
 KERNEL_PERF_PATCHES[5.4] ?= " \
     file://patches/perf/5.4/tools-perf-version.patch \