diff options
author | Tom Zanussi <tom.zanussi@intel.com> | 2012-06-24 23:31:58 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-04 17:40:37 +0100 |
commit | d4eaa2d38432a6bf45c60b7d57cb6e1a489e0b0d (patch) | |
tree | 04e38eb1773798efabc397e75d9eb5848e01d81c /meta | |
parent | 7a2cf8682e230d38b8f54d9456c0b4f0995a765b (diff) | |
download | poky-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')
-rw-r--r-- | meta/recipes-kernel/perf/perf_3.4.bb | 11 |
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 | " |
21 | RDEPENDS_${PN} += "elfutils perl python" | 21 | |
22 | RDEPENDS_${PN} += "elfutils perl perl-modules python" | ||
22 | 23 | ||
23 | PROVIDES = "virtual/perf" | 24 | PROVIDES = "virtual/perf" |
24 | 25 | ||
@@ -31,6 +32,14 @@ export STAGING_LIBDIR | |||
31 | export BUILD_SYS | 32 | export BUILD_SYS |
32 | export HOST_SYS | 33 | export HOST_SYS |
33 | 34 | ||
35 | # needed for building the tools/perf Perl binding | ||
36 | inherit perlnative cpan-base | ||
37 | # Env var which tells perl if it should use host (no) or target (yes) settings | ||
38 | export PERLCONFIGTARGET = "${@is_target(d)}" | ||
39 | export PERL_INC = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}/CORE" | ||
40 | export PERL_LIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}" | ||
41 | export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}" | ||
42 | |||
34 | S = "${STAGING_KERNEL_DIR}" | 43 | S = "${STAGING_KERNEL_DIR}" |
35 | B = "${WORKDIR}/${BPN}-${PV}" | 44 | B = "${WORKDIR}/${BPN}-${PV}" |
36 | 45 | ||