Commit afe722e
committed
kernel-open: fix BTF generation on kernel 6.15+
Kernel 6.15+ replaced scripts/pahole-flags.sh with scripts/Makefile.btf
and scripts/gen-btf.sh for BTF generation. The existing check only looks
for pahole-flags.sh, causing the PAHOLE_AWK_PROGRAM wrapper to be used
unnecessarily on newer kernels. This wrapper has shell quoting issues
that result in awk parse errors during module build.
Update the condition to also check for Makefile.btf, allowing the kernel's
native BTF infrastructure to handle generation without the awk wrapper.
Signed-off-by: Cole Leavitt <cole@unwrap.rs>1 parent f77ad61 commit afe722e
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
0 commit comments