Skip to content

Commit d0d4a8c

Browse files
committed
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 cfb4fd5 commit d0d4a8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ let
10631063
HIDRAW = yes;
10641064

10651065
# Enable loading HID fixups as eBPF from userspace
1066-
HID_BPF = whenAtLeast "6.3" yes;
1066+
HID_BPF = whenAtLeast "6.3" (whenPlatformHasEBPFJit yes);
10671067

10681068
HID_ACRUX_FF = yes;
10691069
DRAGONRISE_FF = yes;
@@ -1290,7 +1290,7 @@ let
12901290
LIRC = yes;
12911291

12921292
SCHED_CORE = whenAtLeast "5.14" yes;
1293-
SCHED_CLASS_EXT = whenAtLeast "6.12" yes;
1293+
SCHED_CLASS_EXT = whenAtLeast "6.12" (whenPlatformHasEBPFJit yes);
12941294

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

0 commit comments

Comments
 (0)