summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/common-config.nix
diff options
context:
space:
mode:
authorTuomas Tynkkynen <tuomas@tuxera.com>2018-06-30 14:05:29 +0300
committerTuomas Tynkkynen <tuomas@tuxera.com>2018-06-30 16:01:41 +0300
commitab340f782913195bdcabcde257a7ecde0b598d1b (patch)
tree6ed9358f2ccfe48e57aa1c350e9dd0b7b6fdd2cd /pkgs/os-specific/linux/kernel/common-config.nix
parentfc816e5609ba660bb56b589db2417fa247ce60d2 (diff)
downloadnixpkgs-ab340f782913195bdcabcde257a7ecde0b598d1b.tar
nixpkgs-ab340f782913195bdcabcde257a7ecde0b598d1b.tar.gz
nixpkgs-ab340f782913195bdcabcde257a7ecde0b598d1b.tar.bz2
nixpkgs-ab340f782913195bdcabcde257a7ecde0b598d1b.tar.lz
nixpkgs-ab340f782913195bdcabcde257a7ecde0b598d1b.tar.xz
nixpkgs-ab340f782913195bdcabcde257a7ecde0b598d1b.tar.zst
nixpkgs-ab340f782913195bdcabcde257a7ecde0b598d1b.zip
kernel config: Minor text fixes
Diffstat (limited to 'pkgs/os-specific/linux/kernel/common-config.nix')
-rw-r--r--pkgs/os-specific/linux/kernel/common-config.nix21
1 files changed, 7 insertions, 14 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix
index 4b0fa9d84ea..100ac73d881 100644
--- a/pkgs/os-specific/linux/kernel/common-config.nix
+++ b/pkgs/os-specific/linux/kernel/common-config.nix
@@ -210,12 +210,11 @@ let
       PSS_MIXER           = whenOlder "4.12" yes;
     };
 
-    # Include firmware for various USB serial devices.
-    # Only applicable for kernels below 4.16, after that no firmware is shipped in the kernel tree.
     usb-serial = {
       USB_SERIAL_GENERIC          = yes; # USB Generic Serial Driver
     } // optionalAttrs (versionOlder version "4.16") {
-      # include firmware for various USB serial devices
+      # Include firmware for various USB serial devices.
+      # Only applicable for kernels below 4.16, after that no firmware is shipped in the kernel tree.
       USB_SERIAL_KEYSPAN_MPR      = yes;
       USB_SERIAL_KEYSPAN_USA28    = yes;
       USB_SERIAL_KEYSPAN_USA28X   = yes;
@@ -315,10 +314,10 @@ let
 
       # Native Language Support modules, needed by some filesystems
       NLS              = yes;
-      NLS_DEFAULT      =  "utf8";
+      NLS_DEFAULT      = "utf8";
       NLS_UTF8         = module;
-      NLS_CODEPAGE_437 = module; # VFAT default for the codepage    = mount option
-      NLS_ISO8859_1    = module;    # VFAT default for the iocharset= mount option
+      NLS_CODEPAGE_437 = module; # VFAT default for the codepage= mount option
+      NLS_ISO8859_1    = module; # VFAT default for the iocharset= mount option
 
       DEVTMPFS = yes;
     };
@@ -494,13 +493,12 @@ let
       IRQ_REMAP  = yes;
     };
 
-
-    # For older kernels, painstakingly disable each symbol.
+    # Disable various self-test modules that have no use in a production system
     tests = {
-      # Disable various self-test modules that have no use in a production system
       # This menu disables all/most of them on >= 4.16
       RUNTIME_TESTING_MENU = option no;
     } // optionalAttrs (versionOlder version "4.16") {
+      # For older kernels, painstakingly disable each symbol.
       ARM_KPROBES_TEST    = option no;
       ASYNC_RAID6_TEST    = option no;
       ATOMIC64_SELFTEST   = option no;
@@ -554,7 +552,6 @@ let
       DEBUG_MEMORY_INIT     = option yes;
     });
 
-
     misc = {
       MODULE_COMPRESS    = yes;
       MODULE_COMPRESS_XZ = yes;
@@ -568,7 +565,6 @@ let
       BLK_DEV_RAM       = yes;
       BLK_DEV_INITRD    = yes;
 
-
       PM_TRACE_RTC         = no; # Disable some expensive (?) features.
       ACCESSIBILITY        = yes; # Accessibility support
       AUXDISPLAY           = yes; # Auxiliary Display support
@@ -583,7 +579,6 @@ let
       SPI        = yes; # needed for many devices
       SPI_MASTER = yes;
 
-
       "8139TOO_8129" = yes;
       "8139TOO_PIO"  = no; # PIO is slower
 
@@ -644,7 +639,6 @@ let
       # 8 is default. Modern gpt tables on eMMC may go far beyond 8.
       MMC_BLOCK_MINORS   = "32";
 
-
       REGULATOR  = yes; # Voltage and Current Regulator Support
       RC_DEVICES = option yes; # Enable IR devices
 
@@ -686,4 +680,3 @@ let
     };
   };
 in (generateNixKConf ((flattenKConf options) // structuredExtraConfig) mkValueOverride) + extraConfig
-