perf: Disable libunwind for ARC & RISCV64
PATCH 1/1 perf: Disable libunwind for ARC & RISCV64
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(+)
meta/recipes-kernel/perf/perf.bb +4 -0
@@ -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 \
Signature · 1 line
2.16.2
Quoted 7 lines · 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.
This looks ok to me
Quoted 27 lines
Signed-off-by Alexey Brodkin <[email protected]>Cc Khem Raj <[email protected]>--- meta/recipes-kernel/perf/perf.bb | 4 ++++ 1 file changed, 4 insertions(+)meta/recipes-kernel/perf/ renamed from meta/recipes-kernel/perf/perf.bb +0
-0perf.bb
indexaf099043e1..bae4948751100644meta/recipes-kernel/perf/perf.bb +4
-1@@ -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