diff options
Diffstat (limited to 'meta/recipes-kernel/perf/perf.bb')
-rw-r--r-- | meta/recipes-kernel/perf/perf.bb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index d4855488ae..88e3a0a78c 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb | |||
@@ -133,11 +133,17 @@ do_configure_prepend () { | |||
133 | # with each other if its in the shared source directory | 133 | # with each other if its in the shared source directory |
134 | # | 134 | # |
135 | if [ -e "${S}/tools/perf/config/Makefile" ]; then | 135 | if [ -e "${S}/tools/perf/config/Makefile" ]; then |
136 | perfconfig="${S}/tools/perf/config/Makefile" | ||
137 | fi | ||
138 | if [ -e "${S}/tools/perf/Makefile.config" ]; then | ||
139 | perfconfig="${S}/tools/perf/Makefile.config" | ||
140 | fi | ||
141 | if [ -n "${perfconfig}" ]; then | ||
136 | # Match $(prefix)/$(lib) and $(prefix)/lib | 142 | # Match $(prefix)/$(lib) and $(prefix)/lib |
137 | sed -i -e 's,^libdir = \($(prefix)/.*lib\),libdir ?= \1,' \ | 143 | sed -i -e 's,^libdir = \($(prefix)/.*lib\),libdir ?= \1,' \ |
138 | -e 's,^perfexecdir = \(.*\),perfexecdir ?= \1,' \ | 144 | -e 's,^perfexecdir = \(.*\),perfexecdir ?= \1,' \ |
139 | -e 's,\ .config-detected, $(OUTPUT)/config-detected,g' \ | 145 | -e 's,\ .config-detected, $(OUTPUT)/config-detected,g' \ |
140 | ${S}/tools/perf/config/Makefile | 146 | ${perfconfig} |
141 | fi | 147 | fi |
142 | # The man pages installation is "$(INSTALL) -d -m 755 $(DESTDIR)$(man1dir)" | 148 | # The man pages installation is "$(INSTALL) -d -m 755 $(DESTDIR)$(man1dir)" |
143 | # in ${S}/tools/perf/Documentation/Makefile, if the mandir set to '?=', it | 149 | # in ${S}/tools/perf/Documentation/Makefile, if the mandir set to '?=', it |
@@ -214,6 +220,7 @@ RDEPENDS_${PN}-tests =+ "python" | |||
214 | RSUGGESTS_SCRIPTING = "${@perf_feature_enabled('perf-scripting', '${PN}-perl ${PN}-python', '',d)}" | 220 | RSUGGESTS_SCRIPTING = "${@perf_feature_enabled('perf-scripting', '${PN}-perl ${PN}-python', '',d)}" |
215 | RSUGGESTS_${PN} += "${PN}-archive ${PN}-tests ${RSUGGESTS_SCRIPTING}" | 221 | RSUGGESTS_${PN} += "${PN}-archive ${PN}-tests ${RSUGGESTS_SCRIPTING}" |
216 | 222 | ||
223 | #FILES_${PN} += "${libexecdir}/perf-core ${exec_prefix}/libexec/perf-core /usr/lib64/traceevent ${libdir}/traceevent" | ||
217 | FILES_${PN} += "${libexecdir}/perf-core ${exec_prefix}/libexec/perf-core ${libdir}/traceevent" | 224 | FILES_${PN} += "${libexecdir}/perf-core ${exec_prefix}/libexec/perf-core ${libdir}/traceevent" |
218 | FILES_${PN}-archive = "${libdir}/perf/perf-core/perf-archive" | 225 | FILES_${PN}-archive = "${libdir}/perf/perf-core/perf-archive" |
219 | FILES_${PN}-tests = "${libdir}/perf/perf-core/tests ${libexecdir}/perf-core/tests" | 226 | FILES_${PN}-tests = "${libdir}/perf/perf-core/tests ${libexecdir}/perf-core/tests" |