Enable debuginfo to fix bpftool selftest (#48)

debuginfo is needed to have BTF in vmlinux - which is necessary for
bpftool selftest
This commit is contained in:
Sharpened Blade
2025-10-15 15:41:49 -07:00
committed by GitHub
-3
View File
@@ -18,9 +18,6 @@ sed -i 's/%define specrelease 200/%define specrelease 210/g' "kernel.spec"
# Disable debug kernels
sed -i "/%define with_debug /c %define with_debug 0" "kernel.spec"
# Disable debuginfo
sed -i "/%define with_debuginfo /c %define with_debuginfo 0" "kernel.spec"
# Add our patches
sed -i "/Patch1:/a Patch2: t2linux-combined.patch" "kernel.spec"
sed -i "/ApplyOptionalPatch patch-%{patchversion}-redhat.patch/a ApplyOptionalPatch t2linux-combined.patch" "kernel.spec"