Skip to content

Commit bcd4842

Browse files
committedMar 17, 2025
linux/common-config: Guard transitive dependants on BTF_JIT
BPF_JIT is not supported on i686, so we need to make sure that options that depend on BPF_JIT don't get enabled either.
1 parent d69305a commit bcd4842

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎pkgs/os-specific/linux/kernel/common-config.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ let
10621062
HIDRAW = yes;
10631063

10641064
# Enable loading HID fixups as eBPF from userspace
1065-
HID_BPF = whenAtLeast "6.3" yes;
1065+
HID_BPF = whenAtLeast "6.3" (whenPlatformHasEBPFJit yes);
10661066

10671067
HID_ACRUX_FF = yes;
10681068
DRAGONRISE_FF = yes;
@@ -1289,7 +1289,7 @@ let
12891289
LIRC = yes;
12901290

12911291
SCHED_CORE = whenAtLeast "5.14" yes;
1292-
SCHED_CLASS_EXT = whenAtLeast "6.12" yes;
1292+
SCHED_CLASS_EXT = whenAtLeast "6.12" (whenPlatformHasEBPFJit yes);
12931293

12941294
LRU_GEN = whenAtLeast "6.1" yes;
12951295
LRU_GEN_ENABLED = whenAtLeast "6.1" yes;

0 commit comments

Comments
 (0)
Failed to load comments.