diff options
author | Tom Zanussi <tom.zanussi@intel.com> | 2012-06-24 23:26:33 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-04 17:40:37 +0100 |
commit | 7a2cf8682e230d38b8f54d9456c0b4f0995a765b (patch) | |
tree | 258de1c80066692646973479dd110a95adfae78c /meta/recipes-kernel/perf | |
parent | aeca6512f3a5468b8f65e2986024ab07d2ce45b4 (diff) | |
download | poky-7a2cf8682e230d38b8f54d9456c0b4f0995a765b.tar.gz |
perf: enable Python bindings
Add support to enable the perf python bindings. The combination of
these changes and the changes in the python-config sections in the
kernel Makefile enable all the python bindings currently available in
perf.
(From OE-Core rev: 487c3a72f0ac7121b79d2f78b81f1d4732bc258a)
Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/perf')
-rw-r--r-- | meta/recipes-kernel/perf/perf_3.4.bb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/meta/recipes-kernel/perf/perf_3.4.bb b/meta/recipes-kernel/perf/perf_3.4.bb index 997beb4aef..9f3648473f 100644 --- a/meta/recipes-kernel/perf/perf_3.4.bb +++ b/meta/recipes-kernel/perf/perf_3.4.bb | |||
@@ -9,7 +9,7 @@ as well." | |||
9 | LICENSE = "GPLv2" | 9 | LICENSE = "GPLv2" |
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" |
11 | 11 | ||
12 | PR = "r0" | 12 | PR = "r1" |
13 | 13 | ||
14 | BUILDPERF_libc-uclibc = "no" | 14 | BUILDPERF_libc-uclibc = "no" |
15 | 15 | ||
@@ -24,6 +24,13 @@ PROVIDES = "virtual/perf" | |||
24 | 24 | ||
25 | inherit kernel-arch | 25 | inherit kernel-arch |
26 | 26 | ||
27 | # needed for building the tools/perf Python bindings | ||
28 | inherit python-dir | ||
29 | export STAGING_INCDIR | ||
30 | export STAGING_LIBDIR | ||
31 | export BUILD_SYS | ||
32 | export HOST_SYS | ||
33 | |||
27 | S = "${STAGING_KERNEL_DIR}" | 34 | S = "${STAGING_KERNEL_DIR}" |
28 | B = "${WORKDIR}/${BPN}-${PV}" | 35 | B = "${WORKDIR}/${BPN}-${PV}" |
29 | 36 | ||
@@ -44,7 +51,10 @@ do_compile() { | |||
44 | 51 | ||
45 | do_install() { | 52 | do_install() { |
46 | oe_runmake DESTDIR=${D} install | 53 | oe_runmake DESTDIR=${D} install |
54 | oe_runmake DESTDIR=${D} install-python_ext | ||
47 | } | 55 | } |
48 | 56 | ||
49 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 57 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
50 | 58 | ||
59 | FILES_${PN}-dbg += "${libdir}/python*/site-packages/.debug" | ||
60 | FILES_${PN} += "${libdir}/python*/site-packages" | ||