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>
This commit is contained in:
parent
aeca6512f3
commit
7a2cf8682e
|
@ -9,7 +9,7 @@ as well."
|
|||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
|
||||
|
||||
PR = "r0"
|
||||
PR = "r1"
|
||||
|
||||
BUILDPERF_libc-uclibc = "no"
|
||||
|
||||
|
@ -24,6 +24,13 @@ PROVIDES = "virtual/perf"
|
|||
|
||||
inherit kernel-arch
|
||||
|
||||
# needed for building the tools/perf Python bindings
|
||||
inherit python-dir
|
||||
export STAGING_INCDIR
|
||||
export STAGING_LIBDIR
|
||||
export BUILD_SYS
|
||||
export HOST_SYS
|
||||
|
||||
S = "${STAGING_KERNEL_DIR}"
|
||||
B = "${WORKDIR}/${BPN}-${PV}"
|
||||
|
||||
|
@ -44,7 +51,10 @@ do_compile() {
|
|||
|
||||
do_install() {
|
||||
oe_runmake DESTDIR=${D} install
|
||||
oe_runmake DESTDIR=${D} install-python_ext
|
||||
}
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
FILES_${PN}-dbg += "${libdir}/python*/site-packages/.debug"
|
||||
FILES_${PN} += "${libdir}/python*/site-packages"
|
||||
|
|
Loading…
Reference in New Issue