summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-kernel/perf/perf.bb6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 9f7c300a40..31bc04635d 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -145,6 +145,9 @@ do_install() {
145 # we are checking for this make target to be compatible with older perf versions 145 # we are checking for this make target to be compatible with older perf versions
146 if ${@bb.utils.contains('PACKAGECONFIG', 'scripting', 'true', 'false', d)} && grep -q install-python_ext ${S}/tools/perf/Makefile*; then 146 if ${@bb.utils.contains('PACKAGECONFIG', 'scripting', 'true', 'false', d)} && grep -q install-python_ext ${S}/tools/perf/Makefile*; then
147 oe_runmake DESTDIR=${D} install-python_ext 147 oe_runmake DESTDIR=${D} install-python_ext
148 if [ -e ${D}${libdir}/python*/site-packages/perf-*/SOURCES.txt ]; then
149 sed -i -e 's#${WORKDIR}##g' ${D}${libdir}/python*/site-packages/perf-*/SOURCES.txt
150 fi
148 fi 151 fi
149} 152}
150 153
@@ -245,6 +248,9 @@ do_configure:prepend () {
245 # change the Makefile line to remove everything before 'tools/perf' 248 # change the Makefile line to remove everything before 'tools/perf'
246 sed -i -e "s%srcdir_SQ = \$(subst ','\\\'',\$(srcdir))%srcdir_SQ = \$(patsubst \%tools/perf,tools/perf,\$(subst ','\\\'',\$(srcdir)))%g" \ 249 sed -i -e "s%srcdir_SQ = \$(subst ','\\\'',\$(srcdir))%srcdir_SQ = \$(patsubst \%tools/perf,tools/perf,\$(subst ','\\\'',\$(srcdir)))%g" \
247 ${S}/tools/perf/Makefile.config 250 ${S}/tools/perf/Makefile.config
251 # Avoid hardcoded path to python-native
252 sed -i -e 's#\(PYTHON_WORD := \)$(call shell-wordify,$(PYTHON))#\1 python3#g' \
253 ${S}/tools/perf/Makefile.config
248 fi 254 fi
249 if [ -e "${S}/tools/perf/tests/Build" ]; then 255 if [ -e "${S}/tools/perf/tests/Build" ]; then
250 # OUTPUT is the full path, we have python on the path so we remove it from the 256 # OUTPUT is the full path, we have python on the path so we remove it from the