moby: reduce custom kernel options
This commit is contained in:
@@ -71,7 +71,6 @@ linux_latest.override {
|
|||||||
extraStructuredConfig = with lib.kernel; {
|
extraStructuredConfig = with lib.kernel; {
|
||||||
NR_CPUS = lib.mkForce (freeform "64");
|
NR_CPUS = lib.mkForce (freeform "64");
|
||||||
ACPI_FPDT = lib.mkForce no;
|
ACPI_FPDT = lib.mkForce no;
|
||||||
UNINLINE_SPIN_UNLOCK = yes; #< DOESN'T TAKE EFFECT
|
|
||||||
SLAB_BUCKETS = lib.mkForce no;
|
SLAB_BUCKETS = lib.mkForce no;
|
||||||
RANDOM_KMALLOC_CACHES = lib.mkForce no;
|
RANDOM_KMALLOC_CACHES = lib.mkForce no;
|
||||||
SHUFFLE_PAGE_ALLOCATOR = lib.mkForce no;
|
SHUFFLE_PAGE_ALLOCATOR = lib.mkForce no;
|
||||||
@@ -79,21 +78,16 @@ linux_latest.override {
|
|||||||
TRANSPARENT_HUGEPAGE_ALWAYS = lib.mkForce yes;
|
TRANSPARENT_HUGEPAGE_ALWAYS = lib.mkForce yes;
|
||||||
TRANSPARENT_HUGEPAGE_MADVISE = lib.mkForce no;
|
TRANSPARENT_HUGEPAGE_MADVISE = lib.mkForce no;
|
||||||
ZONE_DEVICE = lib.mkForce no;
|
ZONE_DEVICE = lib.mkForce no;
|
||||||
BT_HCIUART_BCSP = lib.mkForce no;
|
|
||||||
HOTPLUG_PCI_PCIE = lib.mkForce no;
|
|
||||||
UEVENT_HELPER = lib.mkForce yes;
|
UEVENT_HELPER = lib.mkForce yes;
|
||||||
SYSFB_SIMPLEFB = lib.mkForce no;
|
SYSFB_SIMPLEFB = lib.mkForce no;
|
||||||
LOGO = lib.mkForce yes;
|
LOGO = lib.mkForce yes;
|
||||||
LOGO_LINUX_CLUT224 = yes;
|
LOGO_LINUX_CLUT224 = yes;
|
||||||
DRM_ACCEL = lib.mkForce no;
|
DRM_ACCEL = lib.mkForce no;
|
||||||
POWERCAP = lib.mkForce no;
|
POWERCAP = lib.mkForce no;
|
||||||
CMA_SIZE_MBYTES = lib.mkForce (freeform "256");
|
|
||||||
CPUMASK_OFFSTACK = no;
|
CPUMASK_OFFSTACK = no;
|
||||||
KFENCE = lib.mkForce no;
|
KFENCE = lib.mkForce no;
|
||||||
# SOFTLOCKUP_DETECTOR_INTR_STORM = no;
|
|
||||||
HARDLOCKUP_DETECTOR = lib.mkForce no;
|
HARDLOCKUP_DETECTOR = lib.mkForce no;
|
||||||
|
|
||||||
HID_BPF = lib.mkForce no;
|
|
||||||
USB_SERIAL = lib.mkForce module;
|
USB_SERIAL = lib.mkForce module;
|
||||||
U_SERIAL_CONSOLE = lib.mkForce no;
|
U_SERIAL_CONSOLE = lib.mkForce no;
|
||||||
|
|
||||||
@@ -103,40 +97,17 @@ linux_latest.override {
|
|||||||
PARAVIRT_TIME_ACCOUNTING = lib.mkForce no;
|
PARAVIRT_TIME_ACCOUNTING = lib.mkForce no;
|
||||||
ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION = yes; #< does not take effect
|
ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION = yes; #< does not take effect
|
||||||
COMPAT_ALIGNMENT_FIXUPS = lib.mkForce no;
|
COMPAT_ALIGNMENT_FIXUPS = lib.mkForce no;
|
||||||
BLK_INLINE_ENCRYPTION = lib.mkForce no;
|
|
||||||
LDM_PARTITION = lib.mkForce no;
|
|
||||||
IDLE_PAGE_TRACKING = lib.mkForce no;
|
IDLE_PAGE_TRACKING = lib.mkForce no;
|
||||||
PAGE_IDLE_FLAG = no;
|
PAGE_IDLE_FLAG = no;
|
||||||
DAMON = lib.mkForce no;
|
|
||||||
SKB_DECRYPTED = no; #< does not take effect
|
|
||||||
CFG80211_CERTIFICATION_ONUS = lib.mkForce no;
|
|
||||||
MAC80211_DEBUGFS = lib.mkForce no;
|
|
||||||
SOCK_VALIDATE_XMIT = no; #< does not take effect
|
|
||||||
FSL_MC_UAPI_SUPPORT = lib.mkForce no;
|
FSL_MC_UAPI_SUPPORT = lib.mkForce no;
|
||||||
ZRAM_MULTI_COMP = lib.mkForce no;
|
ZRAM_MULTI_COMP = lib.mkForce no;
|
||||||
FUSION = lib.mkForce no;
|
|
||||||
NET_FC = lib.mkForce no;
|
NET_FC = lib.mkForce no;
|
||||||
NET_VENDOR_MEDIATEK = lib.mkForce no;
|
NET_VENDOR_MEDIATEK = lib.mkForce no;
|
||||||
HIPPI = lib.mkForce no;
|
|
||||||
ATH10K_DFS_CERTIFIED = lib.mkForce no;
|
|
||||||
BRCMFMAC_PCIE = lib.mkForce no;
|
|
||||||
WAN = lib.mkForce no;
|
WAN = lib.mkForce no;
|
||||||
MOUSE_ELAN_I2C_SMBUS = lib.mkForce no;
|
|
||||||
PINCTRL_AMD = lib.mkForce no;
|
|
||||||
MEDIA_PCI_SUPPORT = lib.mkForce no;
|
|
||||||
AUXDISPLAY = lib.mkForce no;
|
AUXDISPLAY = lib.mkForce no;
|
||||||
DRM_DISPLAY_DP_AUX_CEC = lib.mkForce no;
|
DRM_DISPLAY_DP_AUX_CEC = lib.mkForce no;
|
||||||
DRM_DISPLAY_DP_AUX_CHARDEV = lib.mkForce no;
|
DRM_DISPLAY_DP_AUX_CHARDEV = lib.mkForce no;
|
||||||
DRM_NOUVEAU_GSP_DEFAULT = lib.mkForce no;
|
|
||||||
DRM_VC4_HDMI_CEC = lib.mkForce no;
|
DRM_VC4_HDMI_CEC = lib.mkForce no;
|
||||||
MMC_BLOCK_MINORS = lib.mkForce (freeform "256");
|
|
||||||
ACCESSIBILITY = lib.mkForce no;
|
|
||||||
VIRTIO_MMIO_CMDLINE_DEVICES = lib.mkForce no;
|
|
||||||
DEBUG_INFO = no;
|
|
||||||
SCHED_DEBUG = lib.mkForce no;
|
|
||||||
FUNCTION_PROFILER = lib.mkForce no;
|
|
||||||
SCHED_TRACER = lib.mkForce no;
|
|
||||||
DEBUG_INFO_NONE = yes;
|
|
||||||
EFI_ZBOOT = lib.mkForce no;
|
EFI_ZBOOT = lib.mkForce no;
|
||||||
|
|
||||||
NO_HZ_IDLE = yes;
|
NO_HZ_IDLE = yes;
|
||||||
@@ -155,26 +126,8 @@ linux_latest.override {
|
|||||||
CRASH_RESERVE = yes;
|
CRASH_RESERVE = yes;
|
||||||
CRASH_DUMP = lib.mkForce yes;
|
CRASH_DUMP = lib.mkForce yes;
|
||||||
|
|
||||||
TLS = lib.mkForce no;
|
|
||||||
XFRM_ESPINTCP = no;
|
|
||||||
XDP_SOCKETS_DIAG = lib.mkForce no;
|
|
||||||
|
|
||||||
IP_PNP = lib.mkForce yes;
|
|
||||||
IP_PNP_DHCP = yes;
|
|
||||||
IP_PNP_BOOTP = yes;
|
|
||||||
|
|
||||||
IP_DCCP_CCID3 = lib.mkForce yes;
|
|
||||||
IP_DCCP_TFRC_LIB = yes;
|
|
||||||
|
|
||||||
STANDALONE = lib.mkForce yes;
|
STANDALONE = lib.mkForce yes;
|
||||||
RTW88 = lib.mkForce no;
|
|
||||||
MOUSE_PS2_ELANTECH = lib.mkForce no;
|
|
||||||
MEDIA_CEC_RC = lib.mkForce no;
|
|
||||||
INFINIBAND = lib.mkForce no;
|
|
||||||
CHROMEOS_TBMC = lib.mkForce no;
|
|
||||||
IO_STRICT_DEVMEM = no;
|
IO_STRICT_DEVMEM = no;
|
||||||
|
|
||||||
CRYPTO_TEST = lib.mkForce module;
|
|
||||||
RUNTIME_TESTING_MENU = lib.mkForce yes;
|
RUNTIME_TESTING_MENU = lib.mkForce yes;
|
||||||
|
|
||||||
# upgrade `m` -> `y`
|
# upgrade `m` -> `y`
|
||||||
@@ -190,7 +143,53 @@ linux_latest.override {
|
|||||||
CROS_EC_I2C = lib.mkForce yes;
|
CROS_EC_I2C = lib.mkForce yes;
|
||||||
CROS_EC_SPI = lib.mkForce yes;
|
CROS_EC_SPI = lib.mkForce yes;
|
||||||
EXTCON_USBC_CROS_EC = yes;
|
EXTCON_USBC_CROS_EC = yes;
|
||||||
PROC_VMCORE = yes; #< does not take effect ??
|
|
||||||
|
# TODO: at least one of these is actually required for boot.
|
||||||
|
BT_HCIUART_BCSP = lib.mkForce no;
|
||||||
|
HOTPLUG_PCI_PCIE = lib.mkForce no;
|
||||||
|
SOFTLOCKUP_DETECTOR_INTR_STORM = no;
|
||||||
|
HID_BPF = lib.mkForce no;
|
||||||
|
FUSION = lib.mkForce no;
|
||||||
|
HIPPI = lib.mkForce no;
|
||||||
|
ATH10K_DFS_CERTIFIED = lib.mkForce no;
|
||||||
|
BRCMFMAC_PCIE = lib.mkForce no;
|
||||||
|
MOUSE_ELAN_I2C_SMBUS = lib.mkForce no;
|
||||||
|
PINCTRL_AMD = lib.mkForce no;
|
||||||
|
MEDIA_PCI_SUPPORT = lib.mkForce no;
|
||||||
|
DRM_NOUVEAU_GSP_DEFAULT = lib.mkForce no;
|
||||||
|
MMC_BLOCK_MINORS = lib.mkForce (freeform "256");
|
||||||
|
XFRM_ESPINTCP = no;
|
||||||
|
MOUSE_PS2_ELANTECH = lib.mkForce no;
|
||||||
|
INFINIBAND = lib.mkForce no;
|
||||||
|
CHROMEOS_TBMC = lib.mkForce no;
|
||||||
|
|
||||||
|
# UNINLINE_SPIN_UNLOCK = yes; #< DOESN'T TAKE EFFECT
|
||||||
|
# CMA_SIZE_MBYTES = lib.mkForce (freeform "256");
|
||||||
|
# BLK_INLINE_ENCRYPTION = lib.mkForce no;
|
||||||
|
# LDM_PARTITION = lib.mkForce no;
|
||||||
|
# DAMON = lib.mkForce no;
|
||||||
|
# SKB_DECRYPTED = no; #< does not take effect
|
||||||
|
# CFG80211_CERTIFICATION_ONUS = lib.mkForce no;
|
||||||
|
# MAC80211_DEBUGFS = lib.mkForce no;
|
||||||
|
# SOCK_VALIDATE_XMIT = no; #< does not take effect
|
||||||
|
# ACCESSIBILITY = lib.mkForce no;
|
||||||
|
# VIRTIO_MMIO_CMDLINE_DEVICES = lib.mkForce no;
|
||||||
|
# DEBUG_INFO = no;
|
||||||
|
# SCHED_DEBUG = lib.mkForce no;
|
||||||
|
# FUNCTION_PROFILER = lib.mkForce no;
|
||||||
|
# SCHED_TRACER = lib.mkForce no;
|
||||||
|
# DEBUG_INFO_NONE = yes;
|
||||||
|
# TLS = lib.mkForce no;
|
||||||
|
# XDP_SOCKETS_DIAG = lib.mkForce no;
|
||||||
|
# IP_PNP = lib.mkForce yes;
|
||||||
|
# IP_PNP_DHCP = yes;
|
||||||
|
# IP_PNP_BOOTP = yes;
|
||||||
|
# IP_DCCP_CCID3 = lib.mkForce yes;
|
||||||
|
# IP_DCCP_TFRC_LIB = yes;
|
||||||
|
# RTW88 = lib.mkForce no;
|
||||||
|
# MEDIA_CEC_RC = lib.mkForce no;
|
||||||
|
# CRYPTO_TEST = lib.mkForce module;
|
||||||
|
# PROC_VMCORE = yes; #< does not take effect ??
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user