moby: try (and fail) to reduce kernel config

this reapplies the following commits from before `autoModules=true`, but commented out:
- fa0508521995f4510ee4e08f9d1eb086eb64f707
- 513c4b1aa0e2800ea1d867ec158510bb56fac794
This commit is contained in:
2024-09-24 23:34:44 +00:00
parent 19d15eef8d
commit 25b9644f4e

View File

@@ -128,23 +128,12 @@ linux_latest.override {
patch = null;
extraStructuredConfig = with lib.kernel; {
NR_CPUS = lib.mkForce (freeform "64");
SLAB_BUCKETS = lib.mkForce no;
RANDOM_KMALLOC_CACHES = lib.mkForce no;
DEFAULT_MMAP_MIN_ADDR = lib.mkForce (freeform "4096");
TRANSPARENT_HUGEPAGE_MADVISE = 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;
LOGO = lib.mkForce yes;
LOGO_LINUX_CLUT224 = yes;
DRM_ACCEL = lib.mkForce no;
POWERCAP = lib.mkForce no;
CPUMASK_OFFSTACK = no;
KFENCE = lib.mkForce no;
HID_BPF = lib.mkForce no;
BLK_INLINE_ENCRYPTION = lib.mkForce no;
ATH10K_DFS_CERTIFIED = lib.mkForce no;
MOUSE_ELAN_I2C_SMBUS = lib.mkForce no;
@@ -175,6 +164,19 @@ linux_latest.override {
RUNTIME_TESTING_MENU = lib.mkForce yes;
# TODO: one of these is required for boot?
SLAB_BUCKETS = lib.mkForce no;
DEFAULT_MMAP_MIN_ADDR = lib.mkForce (freeform "4096");
TRANSPARENT_HUGEPAGE_MADVISE = lib.mkForce no;
ZONE_DEVICE = lib.mkForce no;
UEVENT_HELPER = lib.mkForce yes;
LOGO = lib.mkForce yes;
LOGO_LINUX_CLUT224 = yes;
POWERCAP = lib.mkForce no;
CPUMASK_OFFSTACK = no;
# or maybe this?
HID_BPF = lib.mkForce no;
# TODO: one of these is required for boot?
USB_SERIAL = lib.mkForce module;
FSL_MC_UAPI_SUPPORT = lib.mkForce no;