2016-01-05 15:22:43 +01:00
|
|
|
|
# WARNING/NOTE: whenever you want to add an option here you need to either
|
|
|
|
|
# * mark it as an optional one with `option`,
|
|
|
|
|
# * or make sure it works for all the versions in nixpkgs,
|
|
|
|
|
# * or check for which kernel versions it will work (using kernel
|
|
|
|
|
# changelog, google or whatever) and mark it with `whenOlder` or
|
|
|
|
|
# `whenAtLeast`.
|
|
|
|
|
# Then do test your change by building all the kernels (or at least
|
|
|
|
|
# their configs) in Nixpkgs or else you will guarantee lots and lots
|
|
|
|
|
# of pain to users trying to switch to an older kernel because of some
|
|
|
|
|
# hardware problems with a new one.
|
2015-03-24 22:34:54 +01:00
|
|
|
|
|
2016-01-05 15:22:43 +01:00
|
|
|
|
# Configuration
|
2021-01-15 15:45:37 +01:00
|
|
|
|
{ lib, stdenv, version
|
2015-03-24 22:34:54 +01:00
|
|
|
|
|
2021-04-05 12:01:58 +02:00
|
|
|
|
, features ? {}
|
2016-01-05 15:22:43 +01:00
|
|
|
|
}:
|
|
|
|
|
|
2021-01-15 15:45:37 +01:00
|
|
|
|
with lib;
|
|
|
|
|
with lib.kernel;
|
|
|
|
|
with (lib.kernel.whenHelpers version);
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
|
|
|
2018-06-25 02:12:17 +02:00
|
|
|
|
# configuration items have to be part of a subattrs
|
2016-01-05 15:22:43 +01:00
|
|
|
|
flattenKConf = nested: mapAttrs (_: head) (zipAttrs (attrValues nested));
|
|
|
|
|
|
2019-11-11 07:57:30 +01:00
|
|
|
|
whenPlatformHasEBPFJit =
|
|
|
|
|
mkIf (stdenv.hostPlatform.isAarch32 ||
|
|
|
|
|
stdenv.hostPlatform.isAarch64 ||
|
|
|
|
|
stdenv.hostPlatform.isx86_64 ||
|
|
|
|
|
(stdenv.hostPlatform.isPowerPC && stdenv.hostPlatform.is64bit) ||
|
|
|
|
|
(stdenv.hostPlatform.isMips && stdenv.hostPlatform.is64bit));
|
|
|
|
|
|
2016-01-05 15:22:43 +01:00
|
|
|
|
options = {
|
|
|
|
|
|
|
|
|
|
debug = {
|
2021-06-22 17:55:14 +02:00
|
|
|
|
# Necessary for BTF
|
|
|
|
|
DEBUG_INFO = mkMerge [
|
|
|
|
|
(whenOlder "5.2" (if (features.debug or false) then yes else no))
|
|
|
|
|
(whenAtLeast "5.2" yes)
|
|
|
|
|
];
|
2021-09-23 00:26:33 +02:00
|
|
|
|
DEBUG_INFO_BTF = whenAtLeast "5.2" (option yes);
|
2016-01-05 15:22:43 +01:00
|
|
|
|
DEBUG_KERNEL = yes;
|
|
|
|
|
DEBUG_DEVRES = no;
|
|
|
|
|
DYNAMIC_DEBUG = yes;
|
|
|
|
|
TIMER_STATS = whenOlder "4.11" yes;
|
|
|
|
|
DEBUG_NX_TEST = whenOlder "4.11" no;
|
|
|
|
|
DEBUG_STACK_USAGE = no;
|
2021-04-05 12:01:58 +02:00
|
|
|
|
DEBUG_STACKOVERFLOW = option no;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
RCU_TORTURE_TEST = no;
|
|
|
|
|
SCHEDSTATS = no;
|
|
|
|
|
DETECT_HUNG_TASK = yes;
|
|
|
|
|
CRASH_DUMP = option no;
|
|
|
|
|
# Easier debugging of NFS issues.
|
2018-06-23 01:54:44 +02:00
|
|
|
|
SUNRPC_DEBUG = yes;
|
2019-09-24 12:55:46 +02:00
|
|
|
|
# Provide access to tunables like sched_migration_cost_ns
|
|
|
|
|
SCHED_DEBUG = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
power-management = {
|
|
|
|
|
PM_ADVANCED_DEBUG = yes;
|
2018-06-23 01:54:44 +02:00
|
|
|
|
X86_INTEL_LPSS = yes;
|
|
|
|
|
X86_INTEL_PSTATE = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
INTEL_IDLE = yes;
|
|
|
|
|
CPU_FREQ_DEFAULT_GOV_PERFORMANCE = yes;
|
2018-08-30 11:15:36 +02:00
|
|
|
|
CPU_FREQ_GOV_SCHEDUTIL = whenAtLeast "4.9" yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
PM_WAKELOCKS = yes;
|
2019-08-22 12:23:37 +02:00
|
|
|
|
# Power-capping framework and support for INTEL RAPL
|
|
|
|
|
POWERCAP = yes;
|
2020-05-26 14:09:20 +02:00
|
|
|
|
INTEL_RAPL = whenAtLeast "5.3" module;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
external-firmware = {
|
|
|
|
|
# Support drivers that need external firmware.
|
|
|
|
|
STANDALONE = no;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
proc-config-gz = {
|
|
|
|
|
# Make /proc/config.gz available
|
|
|
|
|
IKCONFIG = yes;
|
|
|
|
|
IKCONFIG_PROC = yes;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
optimization = {
|
|
|
|
|
# Optimize with -O2, not -Os
|
|
|
|
|
CC_OPTIMIZE_FOR_SIZE = no;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
memtest = {
|
|
|
|
|
MEMTEST = yes;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Include the CFQ I/O scheduler in the kernel, rather than as a
|
|
|
|
|
# module, so that the initrd gets a good I/O scheduler.
|
|
|
|
|
scheduler = {
|
2019-01-07 13:57:32 +01:00
|
|
|
|
IOSCHED_CFQ = whenOlder "5.0" yes; # Removed in 5.0-RC1
|
2016-01-05 15:22:43 +01:00
|
|
|
|
BLK_CGROUP = yes; # required by CFQ"
|
2020-07-18 14:00:00 +02:00
|
|
|
|
BLK_CGROUP_IOLATENCY = whenAtLeast "4.19" yes;
|
|
|
|
|
BLK_CGROUP_IOCOST = whenAtLeast "5.4" yes;
|
2019-01-07 13:57:32 +01:00
|
|
|
|
IOSCHED_DEADLINE = whenOlder "5.0" yes; # Removed in 5.0-RC1
|
2016-01-05 15:22:43 +01:00
|
|
|
|
MQ_IOSCHED_DEADLINE = whenAtLeast "4.11" yes;
|
2021-02-19 15:11:51 +01:00
|
|
|
|
BFQ_GROUP_IOSCHED = whenAtLeast "4.12" yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
MQ_IOSCHED_KYBER = whenAtLeast "4.12" yes;
|
2021-02-19 15:11:51 +01:00
|
|
|
|
IOSCHED_BFQ = whenAtLeast "4.12" module;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Enable NUMA.
|
|
|
|
|
numa = {
|
|
|
|
|
NUMA = option yes;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
|
NET = yes;
|
2020-02-29 23:57:43 +01:00
|
|
|
|
IP_ADVANCED_ROUTER = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
IP_PNP = no;
|
|
|
|
|
IP_VS_PROTO_TCP = yes;
|
|
|
|
|
IP_VS_PROTO_UDP = yes;
|
|
|
|
|
IP_VS_PROTO_ESP = yes;
|
|
|
|
|
IP_VS_PROTO_AH = yes;
|
2019-06-08 10:23:48 +02:00
|
|
|
|
IP_VS_IPV6 = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
IP_DCCP_CCID3 = no; # experimental
|
|
|
|
|
CLS_U32_PERF = yes;
|
|
|
|
|
CLS_U32_MARK = yes;
|
2019-11-11 07:57:30 +01:00
|
|
|
|
BPF_JIT = whenPlatformHasEBPFJit yes;
|
2020-06-12 08:52:09 +02:00
|
|
|
|
BPF_JIT_ALWAYS_ON = whenPlatformHasEBPFJit no; # whenPlatformHasEBPFJit yes; # see https://github.com/NixOS/nixpkgs/issues/79304
|
2019-11-11 07:57:30 +01:00
|
|
|
|
HAVE_EBPF_JIT = whenPlatformHasEBPFJit yes;
|
|
|
|
|
BPF_STREAM_PARSER = whenAtLeast "4.19" yes;
|
|
|
|
|
XDP_SOCKETS = whenAtLeast "4.19" yes;
|
2020-05-26 14:09:20 +02:00
|
|
|
|
XDP_SOCKETS_DIAG = whenAtLeast "5.1" yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
WAN = yes;
|
2020-02-23 18:45:29 +01:00
|
|
|
|
TCP_CONG_CUBIC = yes; # This is the default congestion control algorithm since 2.6.19
|
2016-01-05 15:22:43 +01:00
|
|
|
|
# Required by systemd per-cgroup firewalling
|
|
|
|
|
CGROUP_BPF = option yes;
|
|
|
|
|
CGROUP_NET_PRIO = yes; # Required by systemd
|
|
|
|
|
IP_ROUTE_VERBOSE = yes;
|
|
|
|
|
IP_MROUTE_MULTIPLE_TABLES = yes;
|
|
|
|
|
IP_MULTICAST = yes;
|
2020-02-29 23:57:43 +01:00
|
|
|
|
IP_MULTIPLE_TABLES = yes;
|
2020-11-16 13:02:48 +01:00
|
|
|
|
IPV6 = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
IPV6_ROUTER_PREF = yes;
|
|
|
|
|
IPV6_ROUTE_INFO = yes;
|
|
|
|
|
IPV6_OPTIMISTIC_DAD = yes;
|
|
|
|
|
IPV6_MULTIPLE_TABLES = yes;
|
|
|
|
|
IPV6_SUBTREES = yes;
|
|
|
|
|
IPV6_MROUTE = yes;
|
|
|
|
|
IPV6_MROUTE_MULTIPLE_TABLES = yes;
|
|
|
|
|
IPV6_PIMSM_V2 = yes;
|
|
|
|
|
IPV6_FOU_TUNNEL = whenAtLeast "4.7" module;
|
2021-03-25 05:54:30 +01:00
|
|
|
|
IPV6_SEG6_LWTUNNEL = whenAtLeast "4.10" yes;
|
|
|
|
|
IPV6_SEG6_HMAC = whenAtLeast "4.10" yes;
|
|
|
|
|
IPV6_SEG6_BPF = whenAtLeast "4.18" yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
NET_CLS_BPF = whenAtLeast "4.4" module;
|
|
|
|
|
NET_ACT_BPF = whenAtLeast "4.4" module;
|
2019-09-01 02:24:38 +02:00
|
|
|
|
NET_SCHED = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
L2TP_V3 = yes;
|
|
|
|
|
L2TP_IP = module;
|
|
|
|
|
L2TP_ETH = module;
|
|
|
|
|
BRIDGE_VLAN_FILTERING = yes;
|
|
|
|
|
BONDING = module;
|
|
|
|
|
NET_L3_MASTER_DEV = option yes;
|
|
|
|
|
NET_FOU_IP_TUNNELS = option yes;
|
|
|
|
|
IP_NF_TARGET_REDIRECT = module;
|
|
|
|
|
|
|
|
|
|
PPP_MULTILINK = yes; # PPP multilink support
|
|
|
|
|
PPP_FILTER = yes;
|
|
|
|
|
|
|
|
|
|
# needed for iwd WPS support (wpa_supplicant replacement)
|
|
|
|
|
KEY_DH_OPERATIONS = whenAtLeast "4.7" yes;
|
2018-08-24 15:54:50 +02:00
|
|
|
|
|
|
|
|
|
# needed for nftables
|
2019-10-14 15:41:39 +02:00
|
|
|
|
# Networking Options
|
|
|
|
|
NETFILTER = yes;
|
|
|
|
|
NETFILTER_ADVANCED = yes;
|
|
|
|
|
# Core Netfilter Configuration
|
|
|
|
|
NF_CONNTRACK_ZONES = yes;
|
|
|
|
|
NF_CONNTRACK_EVENTS = yes;
|
|
|
|
|
NF_CONNTRACK_TIMEOUT = yes;
|
|
|
|
|
NF_CONNTRACK_TIMESTAMP = yes;
|
|
|
|
|
NETFILTER_NETLINK_GLUE_CT = yes;
|
2020-05-26 14:09:20 +02:00
|
|
|
|
NF_TABLES_INET = mkMerge [ (whenOlder "4.17" module)
|
|
|
|
|
(whenAtLeast "4.17" yes) ];
|
|
|
|
|
NF_TABLES_NETDEV = mkMerge [ (whenOlder "4.17" module)
|
|
|
|
|
(whenAtLeast "4.17" yes) ];
|
2021-01-17 17:21:56 +01:00
|
|
|
|
NFT_REJECT_NETDEV = whenAtLeast "5.11" module;
|
|
|
|
|
|
2019-10-14 15:41:39 +02:00
|
|
|
|
# IP: Netfilter Configuration
|
2020-05-26 14:09:20 +02:00
|
|
|
|
NF_TABLES_IPV4 = mkMerge [ (whenOlder "4.17" module)
|
|
|
|
|
(whenAtLeast "4.17" yes) ];
|
|
|
|
|
NF_TABLES_ARP = mkMerge [ (whenOlder "4.17" module)
|
|
|
|
|
(whenAtLeast "4.17" yes) ];
|
2019-10-14 15:41:39 +02:00
|
|
|
|
# IPv6: Netfilter Configuration
|
2020-05-26 14:09:20 +02:00
|
|
|
|
NF_TABLES_IPV6 = mkMerge [ (whenOlder "4.17" module)
|
|
|
|
|
(whenAtLeast "4.17" yes) ];
|
2019-10-14 15:41:39 +02:00
|
|
|
|
# Bridge Netfilter Configuration
|
|
|
|
|
NF_TABLES_BRIDGE = mkMerge [ (whenBetween "4.19" "5.3" yes)
|
|
|
|
|
(whenAtLeast "5.3" module) ];
|
2019-09-24 21:52:42 +02:00
|
|
|
|
|
2020-04-13 03:36:15 +02:00
|
|
|
|
# needed for `dropwatch`
|
|
|
|
|
# Builtin-only since https://github.com/torvalds/linux/commit/f4b6bcc7002f0e3a3428bac33cf1945abff95450
|
|
|
|
|
NET_DROP_MONITOR = yes;
|
|
|
|
|
|
2019-09-24 21:52:42 +02:00
|
|
|
|
# needed for ss
|
2020-06-10 16:29:14 +02:00
|
|
|
|
# Use a lower priority to allow these options to be overridden in hardened/config.nix
|
|
|
|
|
INET_DIAG = mkDefault module;
|
|
|
|
|
INET_TCP_DIAG = mkDefault module;
|
|
|
|
|
INET_UDP_DIAG = mkDefault module;
|
|
|
|
|
INET_RAW_DIAG = whenAtLeast "4.14" (mkDefault module);
|
|
|
|
|
INET_DIAG_DESTROY = whenAtLeast "4.9" (mkDefault yes);
|
2021-01-07 01:49:23 +01:00
|
|
|
|
|
|
|
|
|
# enable multipath-tcp
|
|
|
|
|
MPTCP = whenAtLeast "5.6" yes;
|
|
|
|
|
MPTCP_IPV6 = whenAtLeast "5.6" yes;
|
2020-06-10 16:29:14 +02:00
|
|
|
|
INET_MPTCP_DIAG = whenAtLeast "5.9" (mkDefault module);
|
2016-01-05 15:22:43 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
wireless = {
|
|
|
|
|
CFG80211_WEXT = option yes; # Without it, ipw2200 drivers don't build
|
|
|
|
|
IPW2100_MONITOR = option yes; # support promiscuous mode
|
|
|
|
|
IPW2200_MONITOR = option yes; # support promiscuous mode
|
|
|
|
|
HOSTAP_FIRMWARE = option yes; # Support downloading firmware images with Host AP driver
|
|
|
|
|
HOSTAP_FIRMWARE_NVRAM = option yes;
|
|
|
|
|
ATH9K_PCI = option yes; # Detect Atheros AR9xxx cards on PCI(e) bus
|
|
|
|
|
ATH9K_AHB = option yes; # Ditto, AHB bus
|
2018-06-23 01:54:44 +02:00
|
|
|
|
B43_PHY_HT = option yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
BCMA_HOST_PCI = option yes;
|
2019-09-10 01:08:28 +02:00
|
|
|
|
RTW88 = whenAtLeast "5.2" module;
|
2020-06-15 17:10:00 +02:00
|
|
|
|
RTW88_8822BE = mkMerge [ (whenBetween "5.2" "5.8" yes) (whenAtLeast "5.8" module) ];
|
|
|
|
|
RTW88_8822CE = mkMerge [ (whenBetween "5.2" "5.8" yes) (whenAtLeast "5.8" module) ];
|
2016-01-05 15:22:43 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fb = {
|
|
|
|
|
FB = yes;
|
|
|
|
|
FB_EFI = yes;
|
|
|
|
|
FB_NVIDIA_I2C = yes; # Enable DDC Support
|
|
|
|
|
FB_RIVA_I2C = yes;
|
|
|
|
|
FB_ATY_CT = yes; # Mach64 CT/VT/GT/LT (incl. 3D RAGE) support
|
|
|
|
|
FB_ATY_GX = yes; # Mach64 GX support
|
|
|
|
|
FB_SAVAGE_I2C = yes;
|
|
|
|
|
FB_SAVAGE_ACCEL = yes;
|
|
|
|
|
FB_SIS_300 = yes;
|
|
|
|
|
FB_SIS_315 = yes;
|
|
|
|
|
FB_3DFX_ACCEL = yes;
|
|
|
|
|
FB_VESA = yes;
|
|
|
|
|
FRAMEBUFFER_CONSOLE = yes;
|
2020-05-17 19:30:11 +02:00
|
|
|
|
FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER = whenAtLeast "4.19" yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
FRAMEBUFFER_CONSOLE_ROTATION = yes;
|
2018-10-03 11:49:50 +02:00
|
|
|
|
FB_GEODE = mkIf (stdenv.hostPlatform.system == "i686-linux") yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
video = {
|
|
|
|
|
# Allow specifying custom EDID on the kernel command line
|
|
|
|
|
DRM_LOAD_EDID_FIRMWARE = yes;
|
|
|
|
|
VGA_SWITCHEROO = yes; # Hybrid graphics support
|
2021-03-24 15:03:46 +01:00
|
|
|
|
DRM_GMA500 = whenAtLeast "5.12" module;
|
2021-06-14 14:25:02 +02:00
|
|
|
|
DRM_GMA600 = whenOlder "5.13" yes;
|
2021-03-24 15:03:46 +01:00
|
|
|
|
DRM_GMA3600 = whenOlder "5.12" yes;
|
2019-05-02 12:05:42 +02:00
|
|
|
|
DRM_VMWGFX_FBCON = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
# necessary for amdgpu polaris support
|
|
|
|
|
DRM_AMD_POWERPLAY = whenBetween "4.5" "4.9" yes;
|
|
|
|
|
# (experimental) amdgpu support for verde and newer chipsets
|
|
|
|
|
DRM_AMDGPU_SI = whenAtLeast "4.9" yes;
|
|
|
|
|
# (stable) amdgpu support for bonaire and newer chipsets
|
|
|
|
|
DRM_AMDGPU_CIK = whenAtLeast "4.9" yes;
|
2019-08-07 00:29:54 +02:00
|
|
|
|
# Allow device firmware updates
|
|
|
|
|
DRM_DP_AUX_CHARDEV = whenAtLeast "4.6" yes;
|
2021-01-12 12:29:07 +01:00
|
|
|
|
# amdgpu display core (DC) support
|
|
|
|
|
DRM_AMD_DC_DCN1_0 = whenBetween "4.15" "5.6" yes;
|
|
|
|
|
DRM_AMD_DC_PRE_VEGA = whenBetween "4.15" "4.18" yes;
|
|
|
|
|
DRM_AMD_DC_DCN2_0 = whenBetween "5.3" "5.6" yes;
|
|
|
|
|
DRM_AMD_DC_DCN2_1 = whenBetween "5.4" "5.6" yes;
|
|
|
|
|
DRM_AMD_DC_DCN3_0 = whenBetween "5.9" "5.11" yes;
|
2021-02-19 17:15:31 +01:00
|
|
|
|
DRM_AMD_DC_DCN = whenAtLeast "5.11" yes;
|
2021-01-12 12:29:07 +01:00
|
|
|
|
DRM_AMD_DC_HDCP = whenAtLeast "5.5" yes;
|
|
|
|
|
DRM_AMD_DC_SI = whenAtLeast "5.10" yes;
|
2018-06-30 13:01:22 +02:00
|
|
|
|
} // optionalAttrs (stdenv.hostPlatform.system == "x86_64-linux") {
|
|
|
|
|
# Intel GVT-g graphics virtualization supports 64-bit only
|
2016-01-05 15:22:43 +01:00
|
|
|
|
DRM_I915_GVT = whenAtLeast "4.16" yes;
|
|
|
|
|
DRM_I915_GVT_KVMGT = whenAtLeast "4.16" module;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
sound = {
|
|
|
|
|
SND_DYNAMIC_MINORS = yes;
|
|
|
|
|
SND_AC97_POWER_SAVE = yes; # AC97 Power-Saving Mode
|
|
|
|
|
SND_HDA_INPUT_BEEP = yes; # Support digital beep via input layer
|
|
|
|
|
SND_HDA_RECONFIG = yes; # Support reconfiguration of jack functions
|
|
|
|
|
# Support configuring jack functions via fw mechanism at boot
|
|
|
|
|
SND_HDA_PATCH_LOADER = yes;
|
2020-04-17 08:43:49 +02:00
|
|
|
|
SND_HDA_CODEC_CA0132_DSP = whenOlder "5.7" yes; # Enable DSP firmware loading on Creative Soundblaster Z/Zx/ZxR/Recon
|
2019-02-18 17:11:37 +01:00
|
|
|
|
SND_OSSEMUL = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
SND_USB_CAIAQ_INPUT = yes;
|
|
|
|
|
# Enable PSS mixer (Beethoven ADSP-16 and other compatible)
|
|
|
|
|
PSS_MIXER = whenOlder "4.12" yes;
|
2020-04-29 05:34:41 +02:00
|
|
|
|
# Enable Sound Open Firmware support
|
|
|
|
|
} // optionalAttrs (stdenv.hostPlatform.system == "x86_64-linux" &&
|
|
|
|
|
versionAtLeast version "5.5") {
|
|
|
|
|
SND_SOC_SOF_TOPLEVEL = yes;
|
|
|
|
|
SND_SOC_SOF_ACPI = module;
|
|
|
|
|
SND_SOC_SOF_PCI = module;
|
2021-03-24 15:03:46 +01:00
|
|
|
|
SND_SOC_SOF_APOLLOLAKE = whenAtLeast "5.12" module;
|
|
|
|
|
SND_SOC_SOF_APOLLOLAKE_SUPPORT = whenOlder "5.12" yes;
|
|
|
|
|
SND_SOC_SOF_CANNONLAKE = whenAtLeast "5.12" module;
|
|
|
|
|
SND_SOC_SOF_CANNONLAKE_SUPPORT = whenOlder "5.12" yes;
|
|
|
|
|
SND_SOC_SOF_COFFEELAKE = whenAtLeast "5.12" module;
|
|
|
|
|
SND_SOC_SOF_COFFEELAKE_SUPPORT = whenOlder "5.12" yes;
|
|
|
|
|
SND_SOC_SOF_COMETLAKE = whenAtLeast "5.12" module;
|
2020-07-10 16:23:46 +02:00
|
|
|
|
SND_SOC_SOF_COMETLAKE_H_SUPPORT = whenOlder "5.8" yes;
|
2021-03-24 15:03:46 +01:00
|
|
|
|
SND_SOC_SOF_COMETLAKE_LP_SUPPORT = whenOlder "5.12" yes;
|
|
|
|
|
SND_SOC_SOF_ELKHARTLAKE = whenAtLeast "5.12" module;
|
|
|
|
|
SND_SOC_SOF_ELKHARTLAKE_SUPPORT = whenOlder "5.12" yes;
|
|
|
|
|
SND_SOC_SOF_GEMINILAKE = whenAtLeast "5.12" module;
|
|
|
|
|
SND_SOC_SOF_GEMINILAKE_SUPPORT = whenOlder "5.12" yes;
|
2020-04-29 05:34:41 +02:00
|
|
|
|
SND_SOC_SOF_HDA_AUDIO_CODEC = yes;
|
2020-06-10 14:07:15 +02:00
|
|
|
|
SND_SOC_SOF_HDA_COMMON_HDMI_CODEC = whenOlder "5.7" yes;
|
2020-04-29 05:34:41 +02:00
|
|
|
|
SND_SOC_SOF_HDA_LINK = yes;
|
2021-03-24 15:03:46 +01:00
|
|
|
|
SND_SOC_SOF_ICELAKE = whenAtLeast "5.12" module;
|
|
|
|
|
SND_SOC_SOF_ICELAKE_SUPPORT = whenOlder "5.12" yes;
|
2020-04-29 05:34:41 +02:00
|
|
|
|
SND_SOC_SOF_INTEL_TOPLEVEL = yes;
|
2021-03-24 15:03:46 +01:00
|
|
|
|
SND_SOC_SOF_JASPERLAKE = whenAtLeast "5.12" module;
|
|
|
|
|
SND_SOC_SOF_JASPERLAKE_SUPPORT = whenOlder "5.12" yes;
|
|
|
|
|
SND_SOC_SOF_MERRIFIELD = whenAtLeast "5.12" module;
|
|
|
|
|
SND_SOC_SOF_MERRIFIELD_SUPPORT = whenOlder "5.12" yes;
|
|
|
|
|
SND_SOC_SOF_TIGERLAKE = whenAtLeast "5.12" module;
|
|
|
|
|
SND_SOC_SOF_TIGERLAKE_SUPPORT = whenOlder "5.12" yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
usb-serial = {
|
|
|
|
|
USB_SERIAL_GENERIC = yes; # USB Generic Serial Driver
|
|
|
|
|
} // optionalAttrs (versionOlder version "4.16") {
|
2018-06-30 13:05:29 +02:00
|
|
|
|
# Include firmware for various USB serial devices.
|
|
|
|
|
# Only applicable for kernels below 4.16, after that no firmware is shipped in the kernel tree.
|
2018-06-23 01:54:44 +02:00
|
|
|
|
USB_SERIAL_KEYSPAN_MPR = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
USB_SERIAL_KEYSPAN_USA28 = yes;
|
|
|
|
|
USB_SERIAL_KEYSPAN_USA28X = yes;
|
|
|
|
|
USB_SERIAL_KEYSPAN_USA28XA = yes;
|
|
|
|
|
USB_SERIAL_KEYSPAN_USA28XB = yes;
|
|
|
|
|
USB_SERIAL_KEYSPAN_USA19 = yes;
|
|
|
|
|
USB_SERIAL_KEYSPAN_USA18X = yes;
|
|
|
|
|
USB_SERIAL_KEYSPAN_USA19W = yes;
|
|
|
|
|
USB_SERIAL_KEYSPAN_USA19QW = yes;
|
|
|
|
|
USB_SERIAL_KEYSPAN_USA19QI = yes;
|
|
|
|
|
USB_SERIAL_KEYSPAN_USA49W = yes;
|
|
|
|
|
USB_SERIAL_KEYSPAN_USA49WLC = yes;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
usb = {
|
2018-10-03 11:49:50 +02:00
|
|
|
|
USB_DEBUG = { optional = true; tristate = whenOlder "4.18" "n";};
|
2016-01-05 15:22:43 +01:00
|
|
|
|
USB_EHCI_ROOT_HUB_TT = yes; # Root Hub Transaction Translators
|
|
|
|
|
USB_EHCI_TT_NEWSCHED = yes; # Improved transaction translator scheduling
|
2019-06-15 00:15:12 +02:00
|
|
|
|
USB_HIDDEV = yes; # USB Raw HID Devices (like monitor controls and Uninterruptable Power Supplies)
|
2016-01-05 15:22:43 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Filesystem options - in particular, enable extended attributes and
|
|
|
|
|
# ACLs for all filesystems that support them.
|
|
|
|
|
filesystem = {
|
|
|
|
|
FANOTIFY = yes;
|
|
|
|
|
TMPFS = yes;
|
|
|
|
|
TMPFS_POSIX_ACL = yes;
|
2019-03-31 20:37:08 +02:00
|
|
|
|
FS_ENCRYPTION = if (versionAtLeast version "5.1") then yes else whenAtLeast "4.9" (option module);
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
|
|
|
|
EXT2_FS_XATTR = yes;
|
|
|
|
|
EXT2_FS_POSIX_ACL = yes;
|
|
|
|
|
EXT2_FS_SECURITY = yes;
|
|
|
|
|
|
|
|
|
|
EXT3_FS_POSIX_ACL = yes;
|
|
|
|
|
EXT3_FS_SECURITY = yes;
|
|
|
|
|
|
|
|
|
|
EXT4_FS_POSIX_ACL = yes;
|
|
|
|
|
EXT4_FS_SECURITY = yes;
|
2018-10-03 11:49:50 +02:00
|
|
|
|
EXT4_ENCRYPTION = { optional = true; tristate = if (versionOlder version "4.8") then "m" else "y"; };
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
|
|
|
|
REISERFS_FS_XATTR = option yes;
|
|
|
|
|
REISERFS_FS_POSIX_ACL = option yes;
|
|
|
|
|
REISERFS_FS_SECURITY = option yes;
|
|
|
|
|
|
|
|
|
|
JFS_POSIX_ACL = option yes;
|
|
|
|
|
JFS_SECURITY = option yes;
|
|
|
|
|
|
|
|
|
|
XFS_QUOTA = option yes;
|
|
|
|
|
XFS_POSIX_ACL = option yes;
|
|
|
|
|
XFS_RT = option yes; # XFS Realtime subvolume support
|
|
|
|
|
|
|
|
|
|
OCFS2_DEBUG_MASKLOG = option no;
|
|
|
|
|
|
|
|
|
|
BTRFS_FS_POSIX_ACL = yes;
|
|
|
|
|
|
|
|
|
|
UBIFS_FS_ADVANCED_COMPR = option yes;
|
|
|
|
|
|
|
|
|
|
F2FS_FS = module;
|
|
|
|
|
F2FS_FS_SECURITY = option yes;
|
|
|
|
|
F2FS_FS_ENCRYPTION = option yes;
|
2021-01-22 22:35:34 +01:00
|
|
|
|
F2FS_FS_COMPRESSION = whenAtLeast "5.6" yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
UDF_FS = module;
|
|
|
|
|
|
|
|
|
|
NFSD_PNFS = whenBetween "4.0" "4.6" yes;
|
|
|
|
|
NFSD_V2_ACL = yes;
|
|
|
|
|
NFSD_V3 = yes;
|
|
|
|
|
NFSD_V3_ACL = yes;
|
|
|
|
|
NFSD_V4 = yes;
|
2018-06-23 01:54:44 +02:00
|
|
|
|
NFSD_V4_SECURITY_LABEL = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
|
|
|
|
NFS_FSCACHE = yes;
|
2018-06-23 01:54:44 +02:00
|
|
|
|
NFS_SWAP = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
NFS_V3_ACL = yes;
|
2018-06-23 01:54:44 +02:00
|
|
|
|
NFS_V4_1 = yes; # NFSv4.1 client support
|
|
|
|
|
NFS_V4_2 = yes;
|
|
|
|
|
NFS_V4_SECURITY_LABEL = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
|
|
|
|
CIFS_XATTR = yes;
|
2018-12-21 15:10:17 +01:00
|
|
|
|
CIFS_POSIX = option yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
CIFS_FSCACHE = yes;
|
2018-08-27 03:50:19 +02:00
|
|
|
|
CIFS_STATS = whenOlder "4.19" yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
CIFS_WEAK_PW_HASH = yes;
|
|
|
|
|
CIFS_UPCALL = yes;
|
2020-05-26 14:09:20 +02:00
|
|
|
|
CIFS_ACL = whenOlder "5.3" yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
CIFS_DFS_UPCALL = yes;
|
|
|
|
|
CIFS_SMB2 = whenOlder "4.13" yes;
|
|
|
|
|
|
2018-06-23 01:54:44 +02:00
|
|
|
|
CEPH_FSCACHE = yes;
|
|
|
|
|
CEPH_FS_POSIX_ACL = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
2018-06-23 01:54:44 +02:00
|
|
|
|
SQUASHFS_FILE_DIRECT = yes;
|
|
|
|
|
SQUASHFS_DECOMP_MULTI_PERCPU = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
SQUASHFS_XATTR = yes;
|
|
|
|
|
SQUASHFS_ZLIB = yes;
|
|
|
|
|
SQUASHFS_LZO = yes;
|
|
|
|
|
SQUASHFS_XZ = yes;
|
2018-06-23 01:54:44 +02:00
|
|
|
|
SQUASHFS_LZ4 = yes;
|
2019-01-17 14:24:44 +01:00
|
|
|
|
SQUASHFS_ZSTD = whenAtLeast "4.14" yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
|
|
|
|
# Native Language Support modules, needed by some filesystems
|
2018-06-23 01:54:44 +02:00
|
|
|
|
NLS = yes;
|
2018-10-03 11:49:50 +02:00
|
|
|
|
NLS_DEFAULT = freeform "utf8";
|
2018-06-23 01:54:44 +02:00
|
|
|
|
NLS_UTF8 = module;
|
2018-06-30 13:05:29 +02:00
|
|
|
|
NLS_CODEPAGE_437 = module; # VFAT default for the codepage= mount option
|
|
|
|
|
NLS_ISO8859_1 = module; # VFAT default for the iocharset= mount option
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
|
|
|
|
DEVTMPFS = yes;
|
2021-01-29 13:38:41 +01:00
|
|
|
|
|
|
|
|
|
UNICODE = whenAtLeast "5.2" yes; # Casefolding support for filesystems
|
2016-01-05 15:22:43 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
security = {
|
|
|
|
|
# Detect writes to read-only module pages
|
2018-10-03 11:49:50 +02:00
|
|
|
|
DEBUG_SET_MODULE_RONX = { optional = true; tristate = whenOlder "4.11" "y"; };
|
2016-01-05 15:22:43 +01:00
|
|
|
|
RANDOMIZE_BASE = option yes;
|
|
|
|
|
STRICT_DEVMEM = option yes; # Filter access to /dev/mem
|
2020-05-26 14:09:20 +02:00
|
|
|
|
SECURITY_SELINUX_BOOTPARAM_VALUE = whenOlder "5.1" (freeform "0"); # Disable SELinux by default
|
2016-01-05 15:22:43 +01:00
|
|
|
|
# Prevent processes from ptracing non-children processes
|
|
|
|
|
SECURITY_YAMA = option yes;
|
2021-06-14 14:25:02 +02:00
|
|
|
|
DEVKMEM = whenOlder "5.13" no; # Disable /dev/kmem
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
2018-06-23 01:54:44 +02:00
|
|
|
|
USER_NS = yes; # Support for user namespaces
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
|
|
|
|
SECURITY_APPARMOR = yes;
|
|
|
|
|
DEFAULT_SECURITY_APPARMOR = yes;
|
|
|
|
|
|
2021-03-08 17:49:08 +01:00
|
|
|
|
RANDOM_TRUST_CPU = whenAtLeast "4.19" yes; # allow RDRAND to seed the RNG
|
2021-02-24 05:35:03 +01:00
|
|
|
|
|
2020-12-23 07:33:25 +01:00
|
|
|
|
MODULE_SIG = no; # r13y, generates a random key during build and bakes it in
|
|
|
|
|
# Depends on MODULE_SIG and only really helps when you sign your modules
|
|
|
|
|
# and enforce signatures which we don't do by default.
|
2021-01-11 17:09:02 +01:00
|
|
|
|
SECURITY_LOCKDOWN_LSM = option no;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
} // optionalAttrs (!stdenv.hostPlatform.isAarch32) {
|
|
|
|
|
|
|
|
|
|
# Detect buffer overflows on the stack
|
2018-10-03 11:49:50 +02:00
|
|
|
|
CC_STACKPROTECTOR_REGULAR = {optional = true; tristate = whenOlder "4.18" "y";};
|
2016-01-05 15:22:43 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
microcode = {
|
|
|
|
|
MICROCODE = yes;
|
|
|
|
|
MICROCODE_INTEL = yes;
|
|
|
|
|
MICROCODE_AMD = yes;
|
|
|
|
|
} // optionalAttrs (versionAtLeast version "4.10") {
|
|
|
|
|
# Write Back Throttling
|
|
|
|
|
# https://lwn.net/Articles/682582/
|
|
|
|
|
# https://bugzilla.kernel.org/show_bug.cgi?id=12309#c655
|
|
|
|
|
BLK_WBT = yes;
|
2019-01-07 13:57:32 +01:00
|
|
|
|
BLK_WBT_SQ = whenOlder "5.0" yes; # Removed in 5.0-RC1
|
2016-01-05 15:22:43 +01:00
|
|
|
|
BLK_WBT_MQ = yes;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
container = {
|
2018-11-13 02:13:00 +01:00
|
|
|
|
NAMESPACES = yes; # Required by 'unshare' used by 'nixos-install'
|
2016-01-05 15:22:43 +01:00
|
|
|
|
RT_GROUP_SCHED = no;
|
2018-11-13 02:13:00 +01:00
|
|
|
|
CGROUP_DEVICE = yes;
|
|
|
|
|
CGROUP_HUGETLB = yes;
|
|
|
|
|
CGROUP_PERF = yes;
|
|
|
|
|
CGROUP_RDMA = whenAtLeast "4.11" yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
2018-06-23 01:54:44 +02:00
|
|
|
|
MEMCG = yes;
|
|
|
|
|
MEMCG_SWAP = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
|
|
|
|
DEVPTS_MULTIPLE_INSTANCES = whenOlder "4.7" yes;
|
|
|
|
|
BLK_DEV_THROTTLING = yes;
|
2019-01-07 13:57:32 +01:00
|
|
|
|
CFQ_GROUP_IOSCHED = whenOlder "5.0" yes; # Removed in 5.0-RC1
|
2016-01-05 15:22:43 +01:00
|
|
|
|
CGROUP_PIDS = whenAtLeast "4.3" yes;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
staging = {
|
|
|
|
|
# Enable staging drivers. These are somewhat experimental, but
|
|
|
|
|
# they generally don't hurt.
|
|
|
|
|
STAGING = yes;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
proc-events = {
|
|
|
|
|
# PROC_EVENTS requires that the netlink connector is not built
|
|
|
|
|
# as a module. This is required by libcgroup's cgrulesengd.
|
|
|
|
|
CONNECTOR = yes;
|
|
|
|
|
PROC_EVENTS = yes;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
tracing = {
|
|
|
|
|
FTRACE = yes;
|
|
|
|
|
KPROBES = yes;
|
|
|
|
|
FUNCTION_TRACER = yes;
|
|
|
|
|
FTRACE_SYSCALLS = yes;
|
|
|
|
|
SCHED_TRACER = yes;
|
|
|
|
|
STACK_TRACER = yes;
|
2018-10-03 11:49:50 +02:00
|
|
|
|
UPROBE_EVENT = { optional = true; tristate = whenOlder "4.11" "y";};
|
|
|
|
|
UPROBE_EVENTS = { optional = true; tristate = whenAtLeast "4.11" "y";};
|
2016-01-05 15:22:43 +01:00
|
|
|
|
BPF_SYSCALL = whenAtLeast "4.4" yes;
|
|
|
|
|
BPF_EVENTS = whenAtLeast "4.4" yes;
|
|
|
|
|
FUNCTION_PROFILER = yes;
|
|
|
|
|
RING_BUFFER_BENCHMARK = no;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
virtualisation = {
|
|
|
|
|
PARAVIRT = option yes;
|
|
|
|
|
|
2021-04-05 12:01:58 +02:00
|
|
|
|
HYPERVISOR_GUEST = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
PARAVIRT_SPINLOCKS = option yes;
|
|
|
|
|
|
|
|
|
|
KVM_APIC_ARCHITECTURE = whenOlder "4.8" yes;
|
|
|
|
|
KVM_ASYNC_PF = yes;
|
2018-10-03 11:49:50 +02:00
|
|
|
|
KVM_COMPAT = { optional = true; tristate = whenBetween "4.0" "4.12" "y"; };
|
|
|
|
|
KVM_DEVICE_ASSIGNMENT = { optional = true; tristate = whenBetween "3.10" "4.12" "y"; };
|
2016-01-05 15:22:43 +01:00
|
|
|
|
KVM_GENERIC_DIRTYLOG_READ_PROTECT = whenAtLeast "4.0" yes;
|
2021-04-05 12:01:58 +02:00
|
|
|
|
KVM_GUEST = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
KVM_MMIO = yes;
|
2018-06-23 01:54:44 +02:00
|
|
|
|
KVM_VFIO = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
KSM = yes;
|
|
|
|
|
VIRT_DRIVERS = yes;
|
2021-04-01 20:32:45 +02:00
|
|
|
|
# We need 64 GB (PAE) support for Xen guest support
|
2018-10-03 11:49:50 +02:00
|
|
|
|
HIGHMEM64G = { optional = true; tristate = mkIf (!stdenv.is64bit) "y";};
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
2018-10-03 11:49:50 +02:00
|
|
|
|
VFIO_PCI_VGA = mkIf stdenv.is64bit yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
2019-05-04 21:13:26 +02:00
|
|
|
|
# VirtualBox guest drivers in the kernel conflict with the ones in the
|
|
|
|
|
# official additions package and prevent the vboxsf module from loading,
|
|
|
|
|
# so disable them for now.
|
|
|
|
|
VBOXGUEST = option no;
|
|
|
|
|
DRM_VBOXVIDEO = option no;
|
|
|
|
|
|
2021-04-01 19:30:29 +02:00
|
|
|
|
XEN = option yes;
|
|
|
|
|
XEN_DOM0 = option yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
PCI_XEN = option yes;
|
|
|
|
|
HVC_XEN = option yes;
|
|
|
|
|
HVC_XEN_FRONTEND = option yes;
|
|
|
|
|
XEN_SYS_HYPERVISOR = option yes;
|
|
|
|
|
SWIOTLB_XEN = option yes;
|
|
|
|
|
XEN_BACKEND = option yes;
|
|
|
|
|
XEN_BALLOON = option yes;
|
|
|
|
|
XEN_BALLOON_MEMORY_HOTPLUG = option yes;
|
|
|
|
|
XEN_EFI = option yes;
|
|
|
|
|
XEN_HAVE_PVMMU = option yes;
|
|
|
|
|
XEN_MCE_LOG = option yes;
|
|
|
|
|
XEN_PVH = option yes;
|
|
|
|
|
XEN_PVHVM = option yes;
|
|
|
|
|
XEN_SAVE_RESTORE = option yes;
|
|
|
|
|
XEN_SCRUB_PAGES = option yes;
|
|
|
|
|
XEN_SELFBALLOONING = option yes;
|
|
|
|
|
XEN_STUB = option yes;
|
|
|
|
|
XEN_TMEM = option yes;
|
2021-04-01 19:30:29 +02:00
|
|
|
|
};
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
|
|
|
|
media = {
|
|
|
|
|
MEDIA_DIGITAL_TV_SUPPORT = yes;
|
|
|
|
|
MEDIA_CAMERA_SUPPORT = yes;
|
|
|
|
|
MEDIA_RC_SUPPORT = whenOlder "4.14" yes;
|
2019-01-07 13:57:32 +01:00
|
|
|
|
MEDIA_CONTROLLER = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
MEDIA_PCI_SUPPORT = yes;
|
|
|
|
|
MEDIA_USB_SUPPORT = yes;
|
|
|
|
|
MEDIA_ANALOG_TV_SUPPORT = yes;
|
|
|
|
|
VIDEO_STK1160_COMMON = module;
|
|
|
|
|
VIDEO_STK1160_AC97 = whenOlder "4.11" yes;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"9p" = {
|
|
|
|
|
# Enable the 9P cache to speed up NixOS VM tests.
|
|
|
|
|
"9P_FSCACHE" = option yes;
|
|
|
|
|
"9P_FS_POSIX_ACL" = option yes;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
huge-page = {
|
|
|
|
|
TRANSPARENT_HUGEPAGE = option yes;
|
|
|
|
|
TRANSPARENT_HUGEPAGE_ALWAYS = option no;
|
|
|
|
|
TRANSPARENT_HUGEPAGE_MADVISE = option yes;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
zram = {
|
|
|
|
|
ZRAM = module;
|
|
|
|
|
ZSWAP = option yes;
|
|
|
|
|
ZBUD = option yes;
|
2018-06-23 01:54:44 +02:00
|
|
|
|
ZSMALLOC = module;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
brcmfmac = {
|
|
|
|
|
# Enable PCIe and USB for the brcmfmac driver
|
|
|
|
|
BRCMFMAC_USB = option yes;
|
|
|
|
|
BRCMFMAC_PCIE = option yes;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Support x2APIC (which requires IRQ remapping)
|
2018-08-20 21:11:29 +02:00
|
|
|
|
x2apic = optionalAttrs (stdenv.hostPlatform.system == "x86_64-linux") {
|
2016-01-05 15:22:43 +01:00
|
|
|
|
X86_X2APIC = yes;
|
|
|
|
|
IRQ_REMAP = yes;
|
|
|
|
|
};
|
|
|
|
|
|
2018-06-30 13:05:29 +02:00
|
|
|
|
# Disable various self-test modules that have no use in a production system
|
2016-01-05 15:22:43 +01:00
|
|
|
|
tests = {
|
|
|
|
|
# This menu disables all/most of them on >= 4.16
|
|
|
|
|
RUNTIME_TESTING_MENU = option no;
|
|
|
|
|
} // optionalAttrs (versionOlder version "4.16") {
|
2018-06-30 13:05:29 +02:00
|
|
|
|
# For older kernels, painstakingly disable each symbol.
|
2016-01-05 15:22:43 +01:00
|
|
|
|
ARM_KPROBES_TEST = option no;
|
|
|
|
|
ASYNC_RAID6_TEST = option no;
|
|
|
|
|
ATOMIC64_SELFTEST = option no;
|
|
|
|
|
BACKTRACE_SELF_TEST = option no;
|
|
|
|
|
INTERVAL_TREE_TEST = option no;
|
|
|
|
|
PERCPU_TEST = option no;
|
|
|
|
|
RBTREE_TEST = option no;
|
|
|
|
|
TEST_BITMAP = option no;
|
|
|
|
|
TEST_BPF = option no;
|
|
|
|
|
TEST_FIRMWARE = option no;
|
|
|
|
|
TEST_HASH = option no;
|
|
|
|
|
TEST_HEXDUMP = option no;
|
|
|
|
|
TEST_KMOD = option no;
|
|
|
|
|
TEST_KSTRTOX = option no;
|
|
|
|
|
TEST_LIST_SORT = option no;
|
|
|
|
|
TEST_LKM = option no;
|
|
|
|
|
TEST_PARMAN = option no;
|
|
|
|
|
TEST_PRINTF = option no;
|
|
|
|
|
TEST_RHASHTABLE = option no;
|
|
|
|
|
TEST_SORT = option no;
|
|
|
|
|
TEST_STATIC_KEYS = option no;
|
|
|
|
|
TEST_STRING_HELPERS = option no;
|
|
|
|
|
TEST_UDELAY = option no;
|
|
|
|
|
TEST_USER_COPY = option no;
|
|
|
|
|
TEST_UUID = option no;
|
|
|
|
|
} // {
|
|
|
|
|
CRC32_SELFTEST = option no;
|
|
|
|
|
CRYPTO_TEST = option no;
|
|
|
|
|
EFI_TEST = option no;
|
|
|
|
|
GLOB_SELFTEST = option no;
|
2018-10-03 11:49:50 +02:00
|
|
|
|
DRM_DEBUG_MM_SELFTEST = { optional = true; tristate = whenOlder "4.18" "n";};
|
|
|
|
|
LNET_SELFTEST = { optional = true; tristate = whenOlder "4.18" "n";};
|
2016-01-05 15:22:43 +01:00
|
|
|
|
LOCK_TORTURE_TEST = option no;
|
|
|
|
|
MTD_TESTS = option no;
|
|
|
|
|
NOTIFIER_ERROR_INJECTION = option no;
|
|
|
|
|
RCU_PERF_TEST = option no;
|
|
|
|
|
RCU_TORTURE_TEST = option no;
|
|
|
|
|
TEST_ASYNC_DRIVER_PROBE = option no;
|
|
|
|
|
WW_MUTEX_SELFTEST = option no;
|
|
|
|
|
XZ_DEC_TEST = option no;
|
2019-05-08 19:40:39 +02:00
|
|
|
|
};
|
|
|
|
|
|
2021-02-15 22:48:12 +01:00
|
|
|
|
criu = if (versionAtLeast version "4.19") then {
|
|
|
|
|
# Unconditionally enabled, because it is required for CRIU and
|
|
|
|
|
# it provides the kcmp() system call that Mesa depends on.
|
|
|
|
|
CHECKPOINT_RESTORE = yes;
|
|
|
|
|
} else optionalAttrs (features.criu or false) ({
|
|
|
|
|
# For older kernels, CHECKPOINT_RESTORE is hidden behind EXPERT.
|
2016-01-05 15:22:43 +01:00
|
|
|
|
EXPERT = yes;
|
|
|
|
|
CHECKPOINT_RESTORE = yes;
|
|
|
|
|
} // optionalAttrs (features.criu_revert_expert or true) {
|
|
|
|
|
RFKILL_INPUT = option yes;
|
|
|
|
|
HID_PICOLCD_FB = option yes;
|
|
|
|
|
HID_PICOLCD_BACKLIGHT = option yes;
|
|
|
|
|
HID_PICOLCD_LCD = option yes;
|
|
|
|
|
HID_PICOLCD_LEDS = option yes;
|
|
|
|
|
HID_PICOLCD_CIR = option yes;
|
|
|
|
|
DEBUG_MEMORY_INIT = option yes;
|
|
|
|
|
});
|
|
|
|
|
|
2021-04-03 10:46:30 +02:00
|
|
|
|
misc = let
|
|
|
|
|
# Use zstd for kernel compression if 64-bit and newer than 5.9, otherwise xz.
|
|
|
|
|
# i686 issues: https://github.com/NixOS/nixpkgs/pull/117961#issuecomment-812106375
|
|
|
|
|
useZstd = stdenv.buildPlatform.is64bit && versionAtLeast version "5.9";
|
|
|
|
|
in {
|
|
|
|
|
KERNEL_XZ = mkIf (!useZstd) yes;
|
|
|
|
|
KERNEL_ZSTD = mkIf useZstd yes;
|
|
|
|
|
|
2019-09-05 17:22:13 +02:00
|
|
|
|
HID_BATTERY_STRENGTH = yes;
|
2020-05-02 14:06:43 +02:00
|
|
|
|
# enabled by default in x86_64 but not arm64, so we do that here
|
|
|
|
|
HIDRAW = yes;
|
|
|
|
|
|
2020-06-11 12:41:59 +02:00
|
|
|
|
HID_ACRUX_FF = yes;
|
|
|
|
|
DRAGONRISE_FF = yes;
|
|
|
|
|
HOLTEK_FF = yes;
|
|
|
|
|
SONY_FF = yes;
|
|
|
|
|
SMARTJOYPLUS_FF = yes;
|
|
|
|
|
THRUSTMASTER_FF = yes;
|
|
|
|
|
ZEROPLUS_FF = yes;
|
|
|
|
|
|
2021-06-14 14:25:02 +02:00
|
|
|
|
MODULE_COMPRESS = whenOlder "5.13" yes;
|
2018-06-23 01:54:44 +02:00
|
|
|
|
MODULE_COMPRESS_XZ = yes;
|
2020-12-12 05:56:33 +01:00
|
|
|
|
|
2020-04-05 05:18:36 +02:00
|
|
|
|
SYSVIPC = yes; # System-V IPC
|
|
|
|
|
|
2020-05-10 23:34:19 +02:00
|
|
|
|
AIO = yes; # POSIX asynchronous I/O
|
|
|
|
|
|
2018-06-23 01:54:44 +02:00
|
|
|
|
UNIX = yes; # Unix domain sockets.
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
2018-06-23 01:54:44 +02:00
|
|
|
|
MD = yes; # Device mapper (RAID, LVM, etc.)
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
|
|
|
|
# Enable initrd support.
|
|
|
|
|
BLK_DEV_INITRD = yes;
|
|
|
|
|
|
|
|
|
|
PM_TRACE_RTC = no; # Disable some expensive (?) features.
|
|
|
|
|
ACCESSIBILITY = yes; # Accessibility support
|
|
|
|
|
AUXDISPLAY = yes; # Auxiliary Display support
|
|
|
|
|
DONGLE = whenOlder "4.17" yes; # Serial dongle support
|
|
|
|
|
HIPPI = yes;
|
|
|
|
|
MTD_COMPLEX_MAPPINGS = yes; # needed for many devices
|
|
|
|
|
|
|
|
|
|
SCSI_LOWLEVEL = yes; # enable lots of SCSI devices
|
|
|
|
|
SCSI_LOWLEVEL_PCMCIA = yes;
|
|
|
|
|
SCSI_SAS_ATA = yes; # added to enable detection of hard drive
|
|
|
|
|
|
|
|
|
|
SPI = yes; # needed for many devices
|
|
|
|
|
SPI_MASTER = yes;
|
|
|
|
|
|
|
|
|
|
"8139TOO_8129" = yes;
|
|
|
|
|
"8139TOO_PIO" = no; # PIO is slower
|
|
|
|
|
|
|
|
|
|
AIC79XX_DEBUG_ENABLE = no;
|
|
|
|
|
AIC7XXX_DEBUG_ENABLE = no;
|
|
|
|
|
AIC94XX_DEBUG = no;
|
2018-10-03 11:49:50 +02:00
|
|
|
|
B43_PCMCIA = { optional=true; tristate = whenOlder "4.4" "y";};
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
|
|
|
|
BLK_DEV_INTEGRITY = yes;
|
|
|
|
|
|
2019-02-21 13:05:43 +01:00
|
|
|
|
BLK_SED_OPAL = whenAtLeast "4.14" yes;
|
|
|
|
|
|
2016-01-05 15:22:43 +01:00
|
|
|
|
BSD_PROCESS_ACCT_V3 = yes;
|
|
|
|
|
|
|
|
|
|
BT_HCIUART_BCSP = option yes;
|
|
|
|
|
BT_HCIUART_H4 = option yes; # UART (H4) protocol support
|
|
|
|
|
BT_HCIUART_LL = option yes;
|
2018-06-23 01:54:44 +02:00
|
|
|
|
BT_RFCOMM_TTY = option yes; # RFCOMM TTY support
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
|
|
|
|
CLEANCACHE = option yes;
|
2018-06-23 01:54:44 +02:00
|
|
|
|
CRASH_DUMP = option no;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
|
|
|
|
DVB_DYNAMIC_MINORS = option yes; # we use udev
|
|
|
|
|
|
2018-06-23 01:54:44 +02:00
|
|
|
|
EFI_STUB = yes; # EFI bootloader in the bzImage itself
|
|
|
|
|
CGROUPS = yes; # used by systemd
|
|
|
|
|
FHANDLE = yes; # used by systemd
|
|
|
|
|
SECCOMP = yes; # used by systemd >= 231
|
|
|
|
|
SECCOMP_FILTER = yes; # ditto
|
|
|
|
|
POSIX_MQUEUE = yes;
|
|
|
|
|
FRONTSWAP = yes;
|
|
|
|
|
FUSION = yes; # Fusion MPT device support
|
2021-08-02 20:50:35 +02:00
|
|
|
|
IDE = whenOlder "5.14" no; # deprecated IDE support, removed in 5.14
|
2018-06-23 01:54:44 +02:00
|
|
|
|
IDLE_PAGE_TRACKING = yes;
|
|
|
|
|
IRDA_ULTRA = whenOlder "4.17" yes; # Ultra (connectionless) protocol
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
2019-08-20 20:54:37 +02:00
|
|
|
|
JOYSTICK_IFORCE_232 = { optional = true; tristate = whenOlder "5.3" "y"; }; # I-Force Serial joysticks and wheels
|
|
|
|
|
JOYSTICK_IFORCE_USB = { optional = true; tristate = whenOlder "5.3" "y"; }; # I-Force USB joysticks and wheels
|
2016-01-05 15:22:43 +01:00
|
|
|
|
JOYSTICK_XPAD_FF = option yes; # X-Box gamepad rumble support
|
|
|
|
|
JOYSTICK_XPAD_LEDS = option yes; # LED Support for Xbox360 controller 'BigX' LED
|
|
|
|
|
|
2019-10-23 15:03:16 +02:00
|
|
|
|
KEYBOARD_APPLESPI = whenAtLeast "5.3" module;
|
|
|
|
|
|
2016-01-05 15:22:43 +01:00
|
|
|
|
KEXEC_FILE = option yes;
|
|
|
|
|
KEXEC_JUMP = option yes;
|
|
|
|
|
|
2020-05-26 14:09:20 +02:00
|
|
|
|
PARTITION_ADVANCED = yes; # Needed for LDM_PARTITION
|
2016-01-05 15:22:43 +01:00
|
|
|
|
# Windows Logical Disk Manager (Dynamic Disk) support
|
2020-05-26 14:09:20 +02:00
|
|
|
|
LDM_PARTITION = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
LOGIRUMBLEPAD2_FF = yes; # Logitech Rumblepad 2 force feedback
|
|
|
|
|
LOGO = no; # not needed
|
|
|
|
|
MEDIA_ATTACH = yes;
|
|
|
|
|
MEGARAID_NEWGEN = yes;
|
|
|
|
|
|
2018-06-23 01:54:44 +02:00
|
|
|
|
MLX4_EN_VXLAN = whenOlder "4.8" yes;
|
2018-10-30 17:29:37 +01:00
|
|
|
|
MLX5_CORE_EN = option yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
2021-03-10 18:40:30 +01:00
|
|
|
|
NVME_MULTIPATH = whenAtLeast "4.15" yes;
|
|
|
|
|
|
2019-02-22 18:19:36 +01:00
|
|
|
|
PSI = whenAtLeast "4.20" yes;
|
|
|
|
|
|
2016-01-05 15:22:43 +01:00
|
|
|
|
MODVERSIONS = whenOlder "4.9" yes;
|
2020-05-23 04:35:19 +02:00
|
|
|
|
MOUSE_ELAN_I2C_SMBUS = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
MOUSE_PS2_ELANTECH = yes; # Elantech PS/2 protocol extension
|
2021-07-20 21:41:36 +02:00
|
|
|
|
MOUSE_PS2_VMMOUSE = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
MTRR_SANITIZER = yes;
|
|
|
|
|
NET_FC = yes; # Fibre Channel driver support
|
|
|
|
|
# GPIO on Intel Bay Trail, for some Chromebook internal eMMC disks
|
2018-06-23 01:54:44 +02:00
|
|
|
|
PINCTRL_BAYTRAIL = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
# 8 is default. Modern gpt tables on eMMC may go far beyond 8.
|
2018-10-03 11:49:50 +02:00
|
|
|
|
MMC_BLOCK_MINORS = freeform "32";
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
|
|
|
|
REGULATOR = yes; # Voltage and Current Regulator Support
|
2018-06-23 01:54:44 +02:00
|
|
|
|
RC_DEVICES = option yes; # Enable IR devices
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
|
|
|
|
RT2800USB_RT53XX = yes;
|
2018-06-23 01:54:44 +02:00
|
|
|
|
RT2800USB_RT55XX = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
|
|
|
|
SCHED_AUTOGROUP = yes;
|
|
|
|
|
CFS_BANDWIDTH = yes;
|
|
|
|
|
|
|
|
|
|
SCSI_LOGGING = yes; # SCSI logging facility
|
|
|
|
|
SERIAL_8250 = yes; # 8250/16550 and compatible serial support
|
|
|
|
|
|
|
|
|
|
SLIP_COMPRESSED = yes; # CSLIP compressed headers
|
|
|
|
|
SLIP_SMART = yes;
|
|
|
|
|
|
|
|
|
|
HWMON = yes;
|
|
|
|
|
THERMAL_HWMON = yes; # Hardware monitoring support
|
2020-02-03 18:08:45 +01:00
|
|
|
|
NVME_HWMON = whenAtLeast "5.5" yes; # NVMe drives temperature reporting
|
2018-06-23 01:54:44 +02:00
|
|
|
|
UEVENT_HELPER = no;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
2018-06-23 01:54:44 +02:00
|
|
|
|
USERFAULTFD = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
X86_CHECK_BIOS_CORRUPTION = yes;
|
|
|
|
|
X86_MCE = yes;
|
|
|
|
|
|
2020-11-24 11:44:22 +01:00
|
|
|
|
RAS = yes; # Needed for EDAC support
|
|
|
|
|
|
2016-01-05 15:22:43 +01:00
|
|
|
|
# Our initrd init uses shebang scripts, so can't be modular.
|
2018-06-23 01:54:44 +02:00
|
|
|
|
BINFMT_SCRIPT = yes;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
# For systemd-binfmt
|
|
|
|
|
BINFMT_MISC = option yes;
|
|
|
|
|
|
|
|
|
|
# Disable the firmware helper fallback, udev doesn't implement it any more
|
|
|
|
|
FW_LOADER_USER_HELPER_FALLBACK = option no;
|
|
|
|
|
|
2018-06-23 01:54:44 +02:00
|
|
|
|
HOTPLUG_PCI_ACPI = yes; # PCI hotplug using ACPI
|
|
|
|
|
HOTPLUG_PCI_PCIE = yes; # PCI-Expresscard hotplug support
|
2016-01-05 15:22:43 +01:00
|
|
|
|
|
2019-03-18 03:28:25 +01:00
|
|
|
|
# Enable AMD's ROCm GPU compute stack
|
2020-06-12 08:52:09 +02:00
|
|
|
|
HSA_AMD = mkIf stdenv.hostPlatform.is64bit (whenAtLeast "4.20" yes);
|
|
|
|
|
ZONE_DEVICE = mkIf stdenv.hostPlatform.is64bit (whenAtLeast "5.3" yes);
|
2019-12-07 17:06:42 +01:00
|
|
|
|
HMM_MIRROR = whenAtLeast "5.3" yes;
|
|
|
|
|
DRM_AMDGPU_USERPTR = whenAtLeast "5.3" yes;
|
2019-03-18 03:28:25 +01:00
|
|
|
|
|
2019-05-08 19:42:24 +02:00
|
|
|
|
PREEMPT = no;
|
|
|
|
|
PREEMPT_VOLUNTARY = yes;
|
2019-10-14 12:40:35 +02:00
|
|
|
|
|
2019-09-08 16:22:27 +02:00
|
|
|
|
X86_AMD_PLATFORM_DEVICE = yes;
|
2021-06-23 15:30:09 +02:00
|
|
|
|
X86_PLATFORM_DRIVERS_DELL = whenAtLeast "5.12" yes;
|
2019-05-08 19:42:24 +02:00
|
|
|
|
|
2021-06-23 16:41:35 +02:00
|
|
|
|
LIRC = mkMerge [ (whenOlder "4.16" module) (whenAtLeast "4.17" yes) ];
|
|
|
|
|
|
2019-01-19 19:19:28 +01:00
|
|
|
|
} // optionalAttrs (stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "aarch64-linux") {
|
2019-07-22 19:22:16 +02:00
|
|
|
|
# Enable CPU/memory hotplug support
|
|
|
|
|
# Allows you to dynamically add & remove CPUs/memory to a VM client running NixOS without requiring a reboot
|
|
|
|
|
ACPI_HOTPLUG_CPU = yes;
|
2019-01-16 20:58:08 +01:00
|
|
|
|
ACPI_HOTPLUG_MEMORY = yes;
|
|
|
|
|
MEMORY_HOTPLUG = yes;
|
|
|
|
|
MEMORY_HOTREMOVE = yes;
|
2019-07-22 19:22:16 +02:00
|
|
|
|
HOTPLUG_CPU = yes;
|
2019-01-16 20:58:08 +01:00
|
|
|
|
MIGRATION = yes;
|
|
|
|
|
SPARSEMEM = yes;
|
|
|
|
|
|
2016-01-05 15:22:43 +01:00
|
|
|
|
# Bump the maximum number of CPUs to support systems like EC2 x1.*
|
|
|
|
|
# instances and Xeon Phi.
|
2018-10-03 11:49:50 +02:00
|
|
|
|
NR_CPUS = freeform "384";
|
2021-05-01 22:59:15 +02:00
|
|
|
|
} // optionalAttrs (stdenv.hostPlatform.system == "armv7l-linux" || stdenv.hostPlatform.system == "aarch64-linux") {
|
2019-06-11 03:31:20 +02:00
|
|
|
|
# Enables support for the Allwinner Display Engine 2.0
|
|
|
|
|
SUN8I_DE2_CCU = whenAtLeast "4.13" yes;
|
2019-11-28 15:20:15 +01:00
|
|
|
|
|
|
|
|
|
# See comments on https://github.com/NixOS/nixpkgs/commit/9b67ea9106102d882f53d62890468071900b9647
|
2020-05-26 14:09:20 +02:00
|
|
|
|
CRYPTO_AEGIS128_SIMD = whenAtLeast "5.4" no;
|
2020-09-14 05:26:21 +02:00
|
|
|
|
|
|
|
|
|
# Distros should configure the default as a kernel option.
|
|
|
|
|
# We previously defined it on the kernel command line as cma=
|
|
|
|
|
# The kernel command line will override a platform-specific configuration from its device tree.
|
|
|
|
|
# https://github.com/torvalds/linux/blob/856deb866d16e29bd65952e0289066f6078af773/kernel/dma/contiguous.c#L35-L44
|
|
|
|
|
CMA_SIZE_MBYTES = freeform "32";
|
2021-04-19 22:23:11 +02:00
|
|
|
|
|
|
|
|
|
# Many ARM SBCs hand off a pre-configured framebuffer.
|
|
|
|
|
# This always can can be replaced by the actual native driver.
|
|
|
|
|
# Keeping it a built-in ensures it will be used if possible.
|
|
|
|
|
FB_SIMPLE = yes;
|
2021-05-01 22:59:15 +02:00
|
|
|
|
|
2021-07-18 19:52:04 +02:00
|
|
|
|
} // optionalAttrs (versionAtLeast version "5.4" && (stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "aarch64-linux")) {
|
|
|
|
|
# Required for various hardware features on Chrome OS devices
|
|
|
|
|
CHROME_PLATFORMS = yes;
|
|
|
|
|
CHROMEOS_TBMC = module;
|
|
|
|
|
|
|
|
|
|
CROS_EC = module;
|
|
|
|
|
|
|
|
|
|
CROS_EC_I2C = module;
|
|
|
|
|
CROS_EC_SPI = module;
|
|
|
|
|
CROS_EC_LPC = module;
|
|
|
|
|
CROS_EC_ISHTP = module;
|
|
|
|
|
|
|
|
|
|
CROS_KBD_LED_BACKLIGHT = module;
|
|
|
|
|
} // optionalAttrs (versionAtLeast version "5.4" && stdenv.hostPlatform.system == "x86_64-linux") {
|
|
|
|
|
CHROMEOS_LAPTOP = module;
|
|
|
|
|
CHROMEOS_PSTORE = module;
|
2016-01-05 15:22:43 +01:00
|
|
|
|
};
|
|
|
|
|
};
|
2018-10-03 11:49:50 +02:00
|
|
|
|
in
|
|
|
|
|
flattenKConf options
|