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 dc22481221..ecee545b45 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb | |||
@@ -136,11 +136,17 @@ do_configure_prepend () { | |||
136 | # with each other if its in the shared source directory | 136 | # with each other if its in the shared source directory |
137 | # | 137 | # |
138 | if [ -e "${S}/tools/perf/config/Makefile" ]; then | 138 | if [ -e "${S}/tools/perf/config/Makefile" ]; then |
139 | perfconfig="${S}/tools/perf/config/Makefile" | ||
140 | fi | ||
141 | if [ -e "${S}/tools/perf/Makefile.config" ]; then | ||
142 | perfconfig="${S}/tools/perf/Makefile.config" | ||
143 | fi | ||
144 | if [ -n "${perfconfig}" ]; then | ||
139 | # Match $(prefix)/$(lib) and $(prefix)/lib | 145 | # Match $(prefix)/$(lib) and $(prefix)/lib |
140 | sed -i -e 's,^libdir = \($(prefix)/.*lib\),libdir ?= \1,' \ | 146 | sed -i -e 's,^libdir = \($(prefix)/.*lib\),libdir ?= \1,' \ |
141 | -e 's,^perfexecdir = \(.*\),perfexecdir ?= \1,' \ | 147 | -e 's,^perfexecdir = \(.*\),perfexecdir ?= \1,' \ |
142 | -e 's,\ .config-detected, $(OUTPUT)/config-detected,g' \ | 148 | -e 's,\ .config-detected, $(OUTPUT)/config-detected,g' \ |
143 | ${S}/tools/perf/config/Makefile | 149 | ${perfconfig} |
144 | fi | 150 | fi |
145 | if [ -e "${S}/tools/perf/Makefile.perf" ]; then | 151 | if [ -e "${S}/tools/perf/Makefile.perf" ]; then |
146 | sed -i -e 's,\ .config-detected, $(OUTPUT)/config-detected,g' \ | 152 | sed -i -e 's,\ .config-detected, $(OUTPUT)/config-detected,g' \ |
@@ -211,6 +217,7 @@ RDEPENDS_${PN}-tests =+ "python" | |||
211 | RSUGGESTS_SCRIPTING = "${@perf_feature_enabled('perf-scripting', '${PN}-perl ${PN}-python', '',d)}" | 217 | RSUGGESTS_SCRIPTING = "${@perf_feature_enabled('perf-scripting', '${PN}-perl ${PN}-python', '',d)}" |
212 | RSUGGESTS_${PN} += "${PN}-archive ${PN}-tests ${RSUGGESTS_SCRIPTING}" | 218 | RSUGGESTS_${PN} += "${PN}-archive ${PN}-tests ${RSUGGESTS_SCRIPTING}" |
213 | 219 | ||
220 | #FILES_${PN} += "${libexecdir}/perf-core ${exec_prefix}/libexec/perf-core /usr/lib64/traceevent ${libdir}/traceevent" | ||
214 | FILES_${PN} += "${libexecdir}/perf-core ${exec_prefix}/libexec/perf-core ${libdir}/traceevent" | 221 | FILES_${PN} += "${libexecdir}/perf-core ${exec_prefix}/libexec/perf-core ${libdir}/traceevent" |
215 | FILES_${PN}-archive = "${libdir}/perf/perf-core/perf-archive" | 222 | FILES_${PN}-archive = "${libdir}/perf/perf-core/perf-archive" |
216 | FILES_${PN}-tests = "${libdir}/perf/perf-core/tests ${libexecdir}/perf-core/tests" | 223 | FILES_${PN}-tests = "${libdir}/perf/perf-core/tests ${libexecdir}/perf-core/tests" |