diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-27 09:56:28 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-27 21:41:57 +0100 |
commit | bf7cbaff417b45c15a11034f2809193a563064b7 (patch) | |
tree | be60e34570430ec0265c45144ad140ae0474347a /meta/recipes-kernel/lttng/lttng-platforms.inc | |
parent | 194d0ecc9846c5aff6a3e4f87c5719275f4f8a00 (diff) | |
download | poky-bf7cbaff417b45c15a11034f2809193a563064b7.tar.gz |
lttng: Move platform logic to dedicated inc file
Some platforms support kernel tracing, some support userspace tracing.
This change:
* Moves the knowledge/config to one place in an inc file
* Allows lttng-tools to build without lttng-modules
* Hence enables tools+ust for riscv64
* Has the packagegroup just depend on lttng-tools which will pull in
ust/modules as needed
(From OE-Core rev: 1824cf062df928de65c1bff5e86e26b7b4d9d784)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/lttng/lttng-platforms.inc')
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-platforms.inc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-platforms.inc b/meta/recipes-kernel/lttng/lttng-platforms.inc new file mode 100644 index 0000000000..aa8220bbb4 --- /dev/null +++ b/meta/recipes-kernel/lttng/lttng-platforms.inc | |||
@@ -0,0 +1,17 @@ | |||
1 | # | ||
2 | # Whether the platform supports kernel tracing | ||
3 | # | ||
4 | LTTNGMODULES = "lttng-modules" | ||
5 | LTTNGMODULES_arc = "" | ||
6 | LTTNGMODULES_riscv64 = "" | ||
7 | |||
8 | COMPATIBLE_HOST_riscv64_pn-lttng-modules = "null" | ||
9 | COMPATIBLE_HOST_arc_pn-lttng-modules = "null" | ||
10 | |||
11 | # Whether the platform supports userspace tracing | ||
12 | # lttng-ust uses sched_getcpu() which is not there on for some platforms. | ||
13 | LTTNGUST = "lttng-ust" | ||
14 | LTTNGUST_arc = "" | ||
15 | |||
16 | COMPATIBLE_HOST_arc_pn-lttng-ust = "null" | ||
17 | |||