summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/perf/perf_3.4.bb
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@intel.com>2012-06-24 23:31:58 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-04 17:40:37 +0100
commitd4eaa2d38432a6bf45c60b7d57cb6e1a489e0b0d (patch)
tree04e38eb1773798efabc397e75d9eb5848e01d81c /meta/recipes-kernel/perf/perf_3.4.bb
parent7a2cf8682e230d38b8f54d9456c0b4f0995a765b (diff)
downloadpoky-d4eaa2d38432a6bf45c60b7d57cb6e1a489e0b0d.tar.gz
perf: enable Perl binding
Add support to enable the perf Perl binding. The build depends on perl-native to retrieve the configuration settings needed for the binding. cpan-base adds some useful functions like is_target() and get_perl_version() that we need for PERLCONFIGTARGET and related settings, which allow us to use the target's Config_heavy.pl settings for ExtUtils:Embed when building for the target. Also adds the perl-modules dependency to give the target the perl modules that scripts using the binding need. (From OE-Core rev: 73a8eed010a821fc4f5c0e71ef749938ed780b44) 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/perf_3.4.bb')
-rw-r--r--meta/recipes-kernel/perf/perf_3.4.bb11
1 files changed, 10 insertions, 1 deletions
diff --git a/meta/recipes-kernel/perf/perf_3.4.bb b/meta/recipes-kernel/perf/perf_3.4.bb
index 9f3648473f..514876b873 100644
--- a/meta/recipes-kernel/perf/perf_3.4.bb
+++ b/meta/recipes-kernel/perf/perf_3.4.bb
@@ -18,7 +18,8 @@ DEPENDS = "virtual/kernel \
18 ${MLPREFIX}elfutils \ 18 ${MLPREFIX}elfutils \
19 ${MLPREFIX}binutils \ 19 ${MLPREFIX}binutils \
20 " 20 "
21RDEPENDS_${PN} += "elfutils perl python" 21
22RDEPENDS_${PN} += "elfutils perl perl-modules python"
22 23
23PROVIDES = "virtual/perf" 24PROVIDES = "virtual/perf"
24 25
@@ -31,6 +32,14 @@ export STAGING_LIBDIR
31export BUILD_SYS 32export BUILD_SYS
32export HOST_SYS 33export HOST_SYS
33 34
35# needed for building the tools/perf Perl binding
36inherit perlnative cpan-base
37# Env var which tells perl if it should use host (no) or target (yes) settings
38export PERLCONFIGTARGET = "${@is_target(d)}"
39export PERL_INC = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}/CORE"
40export PERL_LIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}"
41export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}"
42
34S = "${STAGING_KERNEL_DIR}" 43S = "${STAGING_KERNEL_DIR}"
35B = "${WORKDIR}/${BPN}-${PV}" 44B = "${WORKDIR}/${BPN}-${PV}"
36 45