kconfigcheck: version gate BPF

DEBUG_INFO_DWARF5 conflicts with DEBUG_INFO_BTF on kernel versions older than
5.18. Because debugging failures with DWARF4 would be a waste of time on such
old kernel versions, it is better to just version gate BTF to only support
kernels that can use it with DWARF5.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9038>
This commit is contained in:
Aster Boese
2026-08-06 00:47:04 +00:00
parent be99b6a5bf
commit 87944555f6
+14 -10
View File
@@ -112,23 +112,27 @@ PSI_DEFAULT_DISABLED = "n"
UDMABUF = "y"
["category:default".">=5.14.0"."all"]
# systemd (kernel version is "recommended baseline")
IPC_NS = "y"
NET_NS = "y"
PID_NS = "y"
USER_NS = "y"
UTS_NS = "y"
# DEBUG_INFO_DWARF5 conflicts with DEBUG_INFO_BTF on kernel versions lower
# than 5.18.0. Just disable BTF entirely for such old kernels to not deal
# with debugging DWARF4.
["category:default".">=5.18.0"."all"]
BPF = "y"
BPF_JIT = "y"
BPF_LSM = "y"
IPC_NS = "y"
KPROBES = "y"
KPROBE_EVENTS = "y"
NET_NS = "y"
PID_NS = "y"
SECURITY = "y"
SECURITYFS = "y"
SECURITY_PATH = "y"
USER_NS = "y"
UTS_NS = "y"
DEBUG_INFO_BTF = "y"
DEBUG_INFO_BTF_MODULES = "y"
DEBUG_INFO_DWARF5 = "y"
DEBUG_INFO_REDUCED = "n"
KPROBE_EVENTS = "y"
KPROBES = "y"
SECURITY = "y"
SECURITYFS = "y"
SECURITY_PATH = "y"
["category:default".">=5.14.0"."loongarch64 ppc64le x86 x86_64"]
# ARM and riscv64 lack CFI+dynamic ftrace support, see:
# https://gitlab.postmarketos.org/postmarketOS/pmaports/-/work_items/4411#note_544158