summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xkernel.spec7
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel.spec b/kernel.spec
index 0468fd5af..5f79b08e1 100755
--- a/kernel.spec
+++ b/kernel.spec
@@ -2202,7 +2202,12 @@ BuildKernel() {
# Generate vmlinux.h and put it to kernel-devel path
# zfcpdump build does not have btf anymore
if [ "$Variant" != "zfcpdump" ]; then
- bpftool btf dump file vmlinux format c > $RPM_BUILD_ROOT/$DevelDir/vmlinux.h
+ # disabled for vanilla builds, to avoid a build problem:
+ #
+ # + bpftool btf dump file vmlinux format c
+ # Error: failed to load BTF from vmlinux: Unknown error -2
+ # bpftool btf dump file vmlinux format c > $RPM_BUILD_ROOT/$DevelDir/vmlinux.h
+ :
fi
%endif