diff options
Diffstat (limited to 'meta/recipes-kernel/linux/linux-tools.inc')
-rw-r--r-- | meta/recipes-kernel/linux/linux-tools.inc | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/meta/recipes-kernel/linux/linux-tools.inc b/meta/recipes-kernel/linux/linux-tools.inc deleted file mode 100644 index 3b03c05167..0000000000 --- a/meta/recipes-kernel/linux/linux-tools.inc +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | # included by kernel recipes if they want to build/provide | ||
2 | # perf functionality from their tree. | ||
3 | |||
4 | BUILDPERF = "yes" | ||
5 | BUILDPERF_libc-uclibc = "no" | ||
6 | # perf requires binutils which is GPLv3 licensed, don't prevent the entire kernel | ||
7 | # being built if GPLv3 is in INCOMPATIBLE_LICENSE | ||
8 | python () { | ||
9 | if ((d.getVar("INCOMPATIBLE_LICENSE", True) or "").find("GPLv3") != -1): | ||
10 | # GPLv3, drop perf | ||
11 | d.setVar("BUILDPERF", "no") | ||
12 | d.setVar("PERFDEPENDS", "") | ||
13 | } | ||
14 | |||
15 | do_compile_perf () { | ||
16 | if [ "${BUILDPERF}" = "yes" ]; then | ||
17 | oe_runmake -C ${S}/tools/perf CC="${CC}" LD="${LD}" prefix=${prefix} NO_NEWT=1 NO_DWARF=1 | ||
18 | fi | ||
19 | } | ||
20 | |||
21 | fakeroot do_install_perf () { | ||
22 | if [ "${BUILDPERF}" = "yes" ]; then | ||
23 | oe_runmake -C ${S}/tools/perf CC="${CC}" LD="${LD}" prefix=${prefix} DESTDIR=${D} install NO_NEWT=1 NO_DWARF=1 | ||
24 | fi | ||
25 | } | ||
26 | |||
27 | |||
28 | # perf tasks | ||
29 | addtask compile_perf after do_compile before do_install | ||
30 | addtask install_perf after do_install before do_package | ||
31 | |||
32 | do_compile_perf[umask] = "022" | ||
33 | do_install_perf[umask] = "022" | ||
34 | |||
35 | PERFDEPENDS = "virtual/${MLPREFIX}libc:do_populate_sysroot ${MLPREFIX}elfutils:do_populate_sysroot ${MLPREFIX}binutils:do_populate_sysroot" | ||
36 | PERFDEPENDS_libc-uclibc = "" | ||
37 | PERFRDEPENDS = "python perl elfutils" | ||
38 | PERFRDEPENDS_libc-uclibc = "" | ||
39 | |||
40 | do_compile_perf[depends] = "${PERFDEPENDS}" | ||
41 | RDEPENDS_perf += "${PERFRDEPENDS}" | ||