summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-kernel/linux/linux-tools.inc17
1 files changed, 13 insertions, 4 deletions
diff --git a/meta/recipes-kernel/linux/linux-tools.inc b/meta/recipes-kernel/linux/linux-tools.inc
index d64c9be8c6..ef81650094 100644
--- a/meta/recipes-kernel/linux/linux-tools.inc
+++ b/meta/recipes-kernel/linux/linux-tools.inc
@@ -1,6 +1,11 @@
1# included by kernel recipes if they want to build/provide 1# included by kernel recipes if they want to build/provide
2# perf functionality from their tree. 2# perf functionality from their tree.
3 3do_compile_perf_libc-uclibc () {
4 :
5}
6do_install_perf_libc-uclibc () {
7 :
8}
4do_compile_perf() { 9do_compile_perf() {
5 oe_runmake -C ${S}/tools/perf CC="${CC}" LD="${LD}" prefix=${prefix} NO_NEWT=1 NO_DWARF=1 10 oe_runmake -C ${S}/tools/perf CC="${CC}" LD="${LD}" prefix=${prefix} NO_NEWT=1 NO_DWARF=1
6} 11}
@@ -14,6 +19,10 @@ do_install_perf() {
14addtask compile_perf after do_compile before do_install 19addtask compile_perf after do_compile before do_install
15addtask install_perf after do_install before do_package 20addtask install_perf after do_install before do_package
16 21
17do_compile_perf[depends] = "virtual/libc:do_populate_sysroot" 22
18do_compile_perf[depends] =+ "elfutils:do_populate_sysroot" 23PERFDEPENDS = "virtual/libc:do_populate_sysroot elfutils:do_populate_sysroot"
19RDEPENDS_perf += "python perl elfutils" 24PERFDEPENDS_libc-uclibc = ""
25PERFRDEPENDS = "python perl elfutils"
26PERFRDEPENDS_libc-uclibc = ""
27do_compile_perf[depends] = "${PERFDEPENDS}"
28RDEPENDS_perf += "${PERFRDEPENDS}"