nixpkgs/pkgs/os-specific/linux/kernel
Alyssa Ross fb079c3110 linux.configfile: fix alts containing "/m"
generate-config.pl's auto modules feature answers "m" to any Kconfig
question it thinks supports being a module.  It detected this by
seeing if the help shown by make config (called "alts" by the script)
contained the string "/m", which it would in the case of e.g a
tristate option, where alts would be "N/m/y/?".

But then along came CONFIG_MODPROBE_PATH in Linux 5.13, with a default
value, shown in the make config help, of "/sbin/modprobe".
generate-config.pl would see the "/m" substring, and answer "m" to the
question, meaning (I think) that the built kernel would expect the
modprobe binary to be at /m.  This broke the (non-NixOS) VM images I
build with Nix.  NixOS was unaffected because it uses a different
mechanism to set the modprobe path.

With the current architecture, we can't 100% determine whether a
Kconfig option is a string or a tristate, but we can get a lot closer
by using a better regex.  My new regex only accepts single word
characters, separated by slashes, with a "/?" at the end.  This is
much less likely to ever end up as the default value of a string
option.

Tested by building linux_latest.configfile before and after my
changes, and checking the only difference is the correct default for
CONFIG_MODPROBE_PATH.
2022-03-10 11:13:11 +00:00
..
cpu-cgroup-v2-patches linuxKernel.packages.linux_4_4: drop 2022-02-21 17:32:05 +01:00
hardened linux/hardened/patches/5.4: 5.4.180-hardened1 -> 5.4.182-hardened1 2022-03-04 04:37:02 +00:00
bridge-stp-helper.patch
common-config.nix Merge staging-next into staging 2022-03-07 00:02:59 +00:00
export-rt-sched-migrate.patch
gen-kheaders-metadata.patch
generate-config.pl linux.configfile: fix alts containing "/m" 2022-03-10 11:13:11 +00:00
generic.nix kernel/generic: remove redundant kernelOlder/kernelAtLeast 2021-11-22 02:11:16 +00:00
genksyms-fix-segfault.patch
gpio-utils.nix treewide: rename name to pname&version 2022-01-22 18:13:29 +01:00
linux-4.9.nix linux: 4.9.304 -> 4.9.305 2022-03-08 19:22:55 +00:00
linux-4.14.nix linux: 4.14.269 -> 4.14.270 2022-03-08 19:22:38 +00:00
linux-4.19.nix linux: 4.19.232 -> 4.19.233 2022-03-08 19:22:48 +00:00
linux-5.4.nix linux: 5.4.182 -> 5.4.183 2022-03-08 19:23:28 +00:00
linux-5.10.nix linux: 5.10.103 -> 5.10.104 2022-03-08 19:23:03 +00:00
linux-5.15.nix linux: 5.15.26 -> 5.15.27 2022-03-08 19:23:11 +00:00
linux-5.16.nix linux: 5.16.12 -> 5.16.13 2022-03-08 19:23:19 +00:00
linux-hardkernel-4.14.nix linux_hardkernel_4_14: 4.14.165-172 -> 4.14.180-176 2021-11-28 22:51:44 -05:00
linux-libre.nix linux_latest-libre: 18587 -> 18613 2022-02-25 00:47:39 +00:00
linux-lqx.nix linux_lqx: 5.15.16-lqx1 -> 5.15.16-lqx2 2022-01-25 18:09:40 +01:00
linux-mptcp-95.nix
linux-rpi.nix linux_rpi: 5.10.52-1.20210805 -> 5.10.92-1.20220118 2022-02-12 00:04:47 -08:00
linux-rt-5.4.nix linux-rt_5_4: 5.4.177-rt69 -> 5.4.182-rt70 2022-03-08 19:23:59 +00:00
linux-rt-5.10.nix linux-rt_5_10: 5.10.78-rt55 -> 5.10.100-rt62 2022-02-23 03:13:40 +00:00
linux-testing-bcachefs.nix linux_testing-bcachefs: 2021-12-26 -> 2022-01-12 2022-01-28 08:29:01 -06:00
linux-testing.nix
linux-xanmod.nix linux_xanmod: 5.15.19 -> 5.15.24 2022-02-18 03:31:25 +08:00
linux-zen.nix linux_zen: 5.16.8 -> 5.16.11 2022-02-24 20:54:23 +01:00
mac-nvme-t2.patch
manual-config.nix kernel: compare version against the base version 2021-11-22 02:11:16 +00:00
modinst-arg-list-too-long.patch
mptcp-config.nix
p9-fixes.patch
patches.nix
perf.nix treewide: rename name to pname&version 2022-01-17 20:52:59 +01:00
randstruct-provide-seed.patch
request-key-helper-updated.patch
request-key-helper.patch
rtl8761b-support.patch
update-libre.sh
update-rt.sh linux-rt: Fix incorrect sorting of kernel version numbers when determining latest version 2022-02-21 17:10:31 -05:00
update-zen.sh
update.sh