summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnuj Mittal <anuj.mittal@intel.com>2018-03-15 03:41:20 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-15 09:22:45 (GMT)
commit8b2dbbddc47aab5a84241b45d22a17fe344c30b2 (patch)
treee9b191108a31b39d1b0028c0ee61875132b0b2e8
parentb33d89d5ea8604657a59b83a30c3374079c34fd2 (diff)
downloadpoky-8b2dbbddc47aab5a84241b45d22a17fe344c30b2.tar.gz
perf: enable support for libaudit
perf needs audit-python to be able to show syscall names and for 'perf trace' to work. Enable dependency on audit-python if present in PACKAGECONFIG. It's disabled by default since audit as of now is in meta-selinux. Fixes [YOCTO #3343] Fixes [YOCTO #3358] (From OE-Core rev: c386abacae89a148e77ffa51630c7917e90406f9) (From OE-Core rev: 5b7550a62fa0fa7892c28ae920ee243c223bf3c2) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-kernel/perf/perf.bb5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index b79b973..0df087b 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -22,6 +22,9 @@ PACKAGECONFIG[libnuma] = ",NO_LIBNUMA=1"
22PACKAGECONFIG[systemtap] = ",NO_SDT=1,systemtap" 22PACKAGECONFIG[systemtap] = ",NO_SDT=1,systemtap"
23PACKAGECONFIG[jvmti] = ",NO_JVMTI=1" 23PACKAGECONFIG[jvmti] = ",NO_JVMTI=1"
24 24
25# libaudit support would need scripting to be enabled
26PACKAGECONFIG[audit] = ",NO_LIBAUDIT=1,audit"
27
25DEPENDS = " \ 28DEPENDS = " \
26 virtual/${MLPREFIX}libc \ 29 virtual/${MLPREFIX}libc \
27 ${MLPREFIX}elfutils \ 30 ${MLPREFIX}elfutils \
@@ -214,7 +217,7 @@ PACKAGES =+ "${PN}-archive ${PN}-tests ${PN}-perl ${PN}-python"
214RDEPENDS_${PN} += "elfutils bash" 217RDEPENDS_${PN} += "elfutils bash"
215RDEPENDS_${PN}-doc += "man" 218RDEPENDS_${PN}-doc += "man"
216RDEPENDS_${PN}-archive =+ "bash" 219RDEPENDS_${PN}-archive =+ "bash"
217RDEPENDS_${PN}-python =+ "bash python python-modules" 220RDEPENDS_${PN}-python =+ "bash python python-modules ${@bb.utils.contains('PACKAGECONFIG', 'audit', 'audit-python', '', d)}"
218RDEPENDS_${PN}-perl =+ "bash perl perl-modules" 221RDEPENDS_${PN}-perl =+ "bash perl perl-modules"
219RDEPENDS_${PN}-tests =+ "python" 222RDEPENDS_${PN}-tests =+ "python"
220 223