diff options
| author | Khem Raj <raj.khem@gmail.com> | 2023-05-25 22:25:55 -0700 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2023-06-21 06:50:51 -1000 |
| commit | 8689269063f21bd7966d395ad7ce13b539d1f47a (patch) | |
| tree | ef9a89c4e1288b685f04577ad3e9b3cc705c4817 | |
| parent | 53ec7146f91bfadaccb4e896bb18b0f6dacb19d4 (diff) | |
| download | poky-8689269063f21bd7966d395ad7ce13b539d1f47a.tar.gz | |
perf: Make built-in libtraceevent plugins cohabit with external libtraceevent
This will package the plugins built by perf into kernel specific dir
under libdir, so it does not conflict with plugins from newly added
libtraceevent recipe
Fixes
do_sdk_depends: The file /usr/lib/traceevent/plugins/plugin_cfg80211.so is installed by both perf and libtraceevent, aborting
(From OE-Core rev: 68733d5467134370f036480b0cc11e6b97efe4ad)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 28f39769c27d257a60ff0152acc0c76f0276fa6a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
| -rw-r--r-- | meta/recipes-kernel/perf/perf.bb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index e41fcc4798..420286e1ab 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb | |||
| @@ -135,6 +135,10 @@ PERF_EXTRA_LDFLAGS:mipsarchn64el = "-m elf64ltsmip" | |||
| 135 | do_compile() { | 135 | do_compile() { |
| 136 | # Linux kernel build system is expected to do the right thing | 136 | # Linux kernel build system is expected to do the right thing |
| 137 | unset CFLAGS | 137 | unset CFLAGS |
| 138 | test -e ${S}/tools/lib/traceevent/plugins/Makefile && \ | ||
| 139 | sed -i -e 's|\$(libdir)/traceevent/plugins|\$(libdir)/traceevent_${KERNEL_VERSION}/plugins|g' ${S}/tools/lib/traceevent/plugins/Makefile | ||
| 140 | test -e ${S}/tools/perf/Makefile.config && \ | ||
| 141 | sed -i -e 's|\$(libdir)/traceevent/plugins|\$(libdir)/traceevent_${KERNEL_VERSION}/plugins|g' ${S}/tools/perf/Makefile.config | ||
| 138 | oe_runmake all | 142 | oe_runmake all |
| 139 | } | 143 | } |
| 140 | 144 | ||
| @@ -361,7 +365,7 @@ RSUGGESTS_SCRIPTING = "${@bb.utils.contains('PACKAGECONFIG', 'scripting', '${PN} | |||
| 361 | RSUGGESTS:${PN} += "${PN}-archive ${PN}-tests ${RSUGGESTS_SCRIPTING}" | 365 | RSUGGESTS:${PN} += "${PN}-archive ${PN}-tests ${RSUGGESTS_SCRIPTING}" |
| 362 | 366 | ||
| 363 | FILES_SOLIBSDEV = "" | 367 | FILES_SOLIBSDEV = "" |
| 364 | FILES:${PN} += "${libexecdir}/perf-core ${exec_prefix}/libexec/perf-core ${libdir}/traceevent ${libdir}/libperf-jvmti.so" | 368 | FILES:${PN} += "${libexecdir}/perf-core ${exec_prefix}/libexec/perf-core ${libdir}/traceevent* ${libdir}/libperf-jvmti.so" |
| 365 | FILES:${PN}-archive = "${libdir}/perf/perf-core/perf-archive" | 369 | FILES:${PN}-archive = "${libdir}/perf/perf-core/perf-archive" |
| 366 | FILES:${PN}-tests = "${libdir}/perf/perf-core/tests ${libexecdir}/perf-core/tests" | 370 | FILES:${PN}-tests = "${libdir}/perf/perf-core/tests ${libexecdir}/perf-core/tests" |
| 367 | FILES:${PN}-python = " \ | 371 | FILES:${PN}-python = " \ |
