mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 18:32:12 +02:00
perf: do not pull in any perl dependencies unless scripting is requested
(From OE-Core rev: 79a19811f4039c5d1861094abbbdaea0aedeee04) Signed-off-by: Dima Zavin <dmitriyz@waymo.com> Signed-off-by: Andrew Bresticker <abrestic@waymo.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a7e6f334a1
commit
c84266ec35
7
meta/recipes-kernel/perf/perf-perl.inc
Normal file
7
meta/recipes-kernel/perf/perf-perl.inc
Normal file
@@ -0,0 +1,7 @@
|
||||
inherit perlnative cpan-base
|
||||
|
||||
# Env var which tells perl if it should use host (no) or target (yes) settings
|
||||
export PERLCONFIGTARGET = "${@is_target(d)}"
|
||||
export PERL_INC = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}/CORE"
|
||||
export PERL_LIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}"
|
||||
export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}"
|
||||
@@ -52,13 +52,7 @@ export WERROR = "0"
|
||||
do_populate_lic[depends] += "virtual/kernel:do_patch"
|
||||
|
||||
# needed for building the tools/perf Perl binding
|
||||
inherit ${@bb.utils.contains('PACKAGECONFIG', 'scripting', 'perlnative', '', d)}
|
||||
inherit cpan-base
|
||||
# Env var which tells perl if it should use host (no) or target (yes) settings
|
||||
export PERLCONFIGTARGET = "${@is_target(d)}"
|
||||
export PERL_INC = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}/CORE"
|
||||
export PERL_LIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}"
|
||||
export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}"
|
||||
include ${@bb.utils.contains('PACKAGECONFIG', 'scripting', 'perf-perl.inc', '', d)}
|
||||
|
||||
inherit kernelsrc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user