From: Prarit Bhargava <prarit(a)redhat.com>
kernel.spec: disable vmlinux.h generation for s390 zfcpdump config
With the linux upstream commit d9847eb8be3d ("bpf: Make
CONFIG_DEBUG_INFO_BTF depend upon CONFIG_BPF_SYSCALL") zfcpdump does not
have btf anymore (it does not enable CONFIG_BPF_SYSCALL), so the
generation fails.
Signed-off-by: Yauheni Kaliuta <ykaliuta(a)redhat.com>
Signed-off-by: Prarit Bhargava <prarit(a)redhat.com>
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index blahblah..blahblah 100755
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -2196,7 +2196,10 @@ BuildKernel() {
%ifnarch armv7hl
# Generate vmlinux.h and put it to kernel-devel path
- bpftool btf dump file vmlinux format c > $RPM_BUILD_ROOT/$DevelDir/vmlinux.h
+ # zfcpdump build does not have btf anymore
+ if [ "$Variant" != "zfcpdump" ]; then
+ bpftool btf dump file vmlinux format c > $RPM_BUILD_ROOT/$DevelDir/vmlinux.h
+ fi
%endif
# prune junk from kernel-devel
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2021