mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-30 06:49:43 +01:00
disable BPF subsystem
This commit is contained in:
parent
96687127e0
commit
daa8c09f85
2 changed files with 10 additions and 10 deletions
|
@ -108,14 +108,14 @@ with (lib.kernel.whenHelpers version);
|
||||||
DRM_NOUVEAU = no;
|
DRM_NOUVEAU = no;
|
||||||
DRM_AMDGPU = no;
|
DRM_AMDGPU = no;
|
||||||
|
|
||||||
#fix btf info missing from vmlinux
|
#pahole causes OOM(6GiB> including zram) on build, disableing it as a mitigation
|
||||||
CONFIG_BPF = yes;
|
CONFIG_BPF = lib.mkForce no;
|
||||||
BPF_SYSCALL = yes;
|
BPF_SYSCALL = lib.mkForce no;
|
||||||
BPF_JIT = yes;
|
BPF_JIT = lib.mkForce no;
|
||||||
# BPF_JIT_ALWAYS_ON = yes;
|
BPF_JIT_ALWAYS_ON = lib.mkForce no;
|
||||||
BPF_JIT_DEFAULT_ON = yes;
|
BPF_JIT_DEFAULT_ON = lib.mkForce no;
|
||||||
PAHOLE_HAS_BTF_TAG = yes;
|
PAHOLE_HAS_BTF_TAG = lib.mkForce no;
|
||||||
DEBUG_INFO_BTF = yes;
|
DEBUG_INFO_BTF = lib.mkForce no;
|
||||||
DEBUG_INFO_BTF_MODULES = yes;
|
DEBUG_INFO_BTF_MODULES = lib.mkForce no;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@ buildLinux (
|
||||||
inherit lib;
|
inherit lib;
|
||||||
version = pver;
|
version = pver;
|
||||||
};
|
};
|
||||||
autoModules = false;
|
# autoModules = false;
|
||||||
|
|
||||||
kernelPatches = kernelPatches ++ map apply_patch patches;
|
kernelPatches = kernelPatches ++ map apply_patch patches;
|
||||||
extraMeta = {
|
extraMeta = {
|
||||||
|
|
Loading…
Reference in a new issue