diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2023-05-12 01:22:14 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-22 10:53:47 +0100 |
commit | fc899f1e1b407d493228ccb144972828271d0367 (patch) | |
tree | 51e98075d1ce7389eb93af0d7b7b03ed755a0710 /meta | |
parent | 03adf4b267b3493586692b1e58a6a38eecf3e287 (diff) | |
download | poky-fc899f1e1b407d493228ccb144972828271d0367.tar.gz |
perf: add libtraceevent packageconfig
With kernel 6.4-rc1 commit 6898e60f709b ("perf build: If libtraceevent
isn't present error the build") having libtraceevent is a required
dependency unless building it with 'NO_LIBTRACEEVENT=1'.
Older kernels did build libtraceevent as provided by the kernel sources.
(Unless LIBTRACEEVENT_DYNAMIC=1 was defined, then it tried to pickup
an external provided libtraceevent and printed a warning if not found.)
Add a libtraceevent packageconfig which adds the dependency on
libtraceevent if set, otherwise builds with NO_LIBTRACEEVENT=1.
For older kernels the old behaviour of building libtraceevent from
the kernel sources isn't changed.
(From OE-Core rev: 7e7a7394b47f6fd4a4dd26a18a5d94302ab6df1e)
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-kernel/perf/perf.bb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index da5f6533e6..67b01a7f65 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb | |||
@@ -11,7 +11,7 @@ LICENSE = "GPL-2.0-only" | |||
11 | 11 | ||
12 | PR = "r9" | 12 | PR = "r9" |
13 | 13 | ||
14 | PACKAGECONFIG ??= "scripting tui libunwind" | 14 | PACKAGECONFIG ??= "scripting tui libunwind libtraceevent" |
15 | PACKAGECONFIG[dwarf] = ",NO_DWARF=1" | 15 | PACKAGECONFIG[dwarf] = ",NO_DWARF=1" |
16 | PACKAGECONFIG[scripting] = ",NO_LIBPERL=1 NO_LIBPYTHON=1,perl python3 python3-setuptools-native" | 16 | PACKAGECONFIG[scripting] = ",NO_LIBPERL=1 NO_LIBPYTHON=1,perl python3 python3-setuptools-native" |
17 | # gui support was added with kernel 3.6.35 | 17 | # gui support was added with kernel 3.6.35 |
@@ -27,6 +27,7 @@ PACKAGECONFIG[jvmti] = ",NO_JVMTI=1" | |||
27 | PACKAGECONFIG[audit] = ",NO_LIBAUDIT=1,audit" | 27 | PACKAGECONFIG[audit] = ",NO_LIBAUDIT=1,audit" |
28 | PACKAGECONFIG[manpages] = ",,xmlto-native asciidoc-native" | 28 | PACKAGECONFIG[manpages] = ",,xmlto-native asciidoc-native" |
29 | PACKAGECONFIG[cap] = ",,libcap" | 29 | PACKAGECONFIG[cap] = ",,libcap" |
30 | PACKAGECONFIG[libtraceevent] = ",NO_LIBTRACEEVENT=1,libtraceevent" | ||
30 | # Arm CoreSight | 31 | # Arm CoreSight |
31 | PACKAGECONFIG[coresight] = "CORESIGHT=1,,opencsd" | 32 | PACKAGECONFIG[coresight] = "CORESIGHT=1,,opencsd" |
32 | 33 | ||