From 446707818c8708f7cee56932930b72bc32e2892d Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Tue, 9 Nov 2021 06:57:48 +0200 Subject: [PATCH] Disable bpftool (via kernel selftests) on riscv64 This is new compared to v5.10 kernel (last one we built for riscv64). This is only disabled for armv7hl in Fedora upstream. This failed on riscv64: [..] + bpftool btf dump file vmlinux format c Error: failed to load BTF from vmlinux: Invalid argument error: Bad exit status from /var/tmp/rpm-tmp.Hsyyvw (%build) [..] Signed-off-by: David Abdurachmanov --- kernel.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kernel.spec b/kernel.spec index 6b154340b..2cf4ff4c0 100755 --- a/kernel.spec +++ b/kernel.spec @@ -466,6 +466,10 @@ Summary: The Linux kernel %define kernel_image arch/arm64/boot/Image.gz %endif +%ifarch riscv64 +%define with_selftests 0 +%endif + %ifarch riscv64 %define all_arch_configs kernel-%{version}-riscv64*.config %define asmarch riscv @@ -2971,6 +2975,9 @@ fi # # %changelog +* Tue Nov 09 2021 David Abdurachmanov [5.14.16-1.0.riscv64] +- Enable riscv64 arch + * Wed Nov 03 2021 Justin M. Forbes [5.14.16-1] - Update release for usb fix rebuild (Justin M. Forbes) - Revert "xhci: Set HCD flag to defer primary roothub registration" (Justin M. Forbes)