* [PATCH] perf: Disable libunwind for ARC & RISCV64
@ 2018-10-31 18:54 ` Alexey Brodkin
0 siblings, 0 replies; 3+ messages in thread
From: Alexey Brodkin @ 2018-10-31 18:54 UTC (permalink / raw)
To: linux-snps-arc
libunwind is not yet ported for ARC & RISCV64 and on attempt
to build it for those arches we just get an error message.
If we explicitly disable libunwind it is gracefully handled by
perf build system and it just gets configured to not use it
so perf is still usable even on those arches.
Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>
Cc: Khem Raj <raj.khem at gmail.com>
---
meta/recipes-kernel/perf/perf.bb | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index af099043e1..bae4948751 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -26,6 +26,10 @@ PACKAGECONFIG[jvmti] = ",NO_JVMTI=1"
PACKAGECONFIG[audit] = ",NO_LIBAUDIT=1,audit"
PACKAGECONFIG[manpages] = ",,xmlto-native asciidoc-native"
+# libunwind is not yet ported for some architectures
+PACKAGECONFIG_remove_arc = "libunwind"
+PACKAGECONFIG_remove_riscv64 = "libunwind"
+
DEPENDS = " \
virtual/${MLPREFIX}libc \
${MLPREFIX}elfutils \
--
2.16.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] perf: Disable libunwind for ARC & RISCV64
@ 2018-10-31 18:54 ` Alexey Brodkin
0 siblings, 0 replies; 3+ messages in thread
From: Alexey Brodkin @ 2018-10-31 18:54 UTC (permalink / raw)
To: openembedded-core; +Cc: linux-snps-arc, Alexey Brodkin
libunwind is not yet ported for ARC & RISCV64 and on attempt
to build it for those arches we just get an error message.
If we explicitly disable libunwind it is gracefully handled by
perf build system and it just gets configured to not use it
so perf is still usable even on those arches.
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Khem Raj <raj.khem@gmail.com>
---
meta/recipes-kernel/perf/perf.bb | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index af099043e1..bae4948751 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -26,6 +26,10 @@ PACKAGECONFIG[jvmti] = ",NO_JVMTI=1"
PACKAGECONFIG[audit] = ",NO_LIBAUDIT=1,audit"
PACKAGECONFIG[manpages] = ",,xmlto-native asciidoc-native"
+# libunwind is not yet ported for some architectures
+PACKAGECONFIG_remove_arc = "libunwind"
+PACKAGECONFIG_remove_riscv64 = "libunwind"
+
DEPENDS = " \
virtual/${MLPREFIX}libc \
${MLPREFIX}elfutils \
--
2.16.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] perf: Disable libunwind for ARC & RISCV64
2018-10-31 18:54 ` Alexey Brodkin
(?)
@ 2018-10-31 19:24 ` Khem Raj
-1 siblings, 0 replies; 3+ messages in thread
From: Khem Raj @ 2018-10-31 19:24 UTC (permalink / raw)
To: Alexey Brodkin; +Cc: linux-snps-arc, openembedded-core
[-- Attachment #1: Type: text/plain, Size: 1255 bytes --]
On Wed, Oct 31, 2018 at 11:54 AM Alexey Brodkin <alexey.brodkin@synopsys.com>
wrote:
> libunwind is not yet ported for ARC & RISCV64 and on attempt
> to build it for those arches we just get an error message.
>
> If we explicitly disable libunwind it is gracefully handled by
> perf build system and it just gets configured to not use it
> so perf is still usable even on those arches.
>
This looks ok to me
>
> Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
> Cc: Khem Raj <raj.khem@gmail.com>
> ---
> meta/recipes-kernel/perf/perf.bb | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/
> perf.bb
> index af099043e1..bae4948751 100644
> --- a/meta/recipes-kernel/perf/perf.bb
> +++ b/meta/recipes-kernel/perf/perf.bb
> @@ -26,6 +26,10 @@ PACKAGECONFIG[jvmti] = ",NO_JVMTI=1"
> PACKAGECONFIG[audit] = ",NO_LIBAUDIT=1,audit"
> PACKAGECONFIG[manpages] = ",,xmlto-native asciidoc-native"
>
> +# libunwind is not yet ported for some architectures
> +PACKAGECONFIG_remove_arc = "libunwind"
> +PACKAGECONFIG_remove_riscv64 = "libunwind"
> +
> DEPENDS = " \
> virtual/${MLPREFIX}libc \
> ${MLPREFIX}elfutils \
> --
> 2.16.2
>
>
[-- Attachment #2: Type: text/html, Size: 2232 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-10-31 19:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-31 18:54 [PATCH] perf: Disable libunwind for ARC & RISCV64 Alexey Brodkin
2018-10-31 18:54 ` Alexey Brodkin
2018-10-31 19:24 ` Khem Raj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.