summary refs log tree commit diff
path: root/lib/kernel.nix
Commit message (Collapse)AuthorAge
* Merge pull request #84032 from teto/fix_kernel_mergeFlorian Klink2020-05-22
|\ | | | | Fix kernel configuration merge
| * kernel: fix config generationMatthieu Coudron2020-04-01
| | | | | | | | | | | | Addresses https://github.com/NixOS/nixpkgs/issues/71803: Kernel options are not merged as described, especially the "optional" aspects. The error silences legitimate warnings.
* | linux/hardened: move files into directoryEmily2020-05-08
|/
* lib.kernel: scoped whenXXX helpersMatthieu Coudron2019-10-01
| | | | | whenAtLeast/whenBetween are made available in lib/kernel.nix but are now scoped under whenXXX.
* lib.kernel: make publicMatthieu Coudron2019-10-01
| | | | | | | | Remove the "version" parameter in order to make it more widely available. Starts making some kernel configuration helpers available. The intent is to be able to better build and check the linux kernel configuration.
* treewide: remove redundant recvolth2019-08-28
|
* linux: convert hardened-config to a structured oneMatthieu Coudron2019-01-28
|
* linux: ability to merge structured configsMatthieu Coudron2019-01-28
| | | | | | | | | | | | | | This should make the composability of kernel configurations more straigthforward. - now distinguish freeform options from tristate ones - will look for a structured config in kernelPatches too one can now access the structuredConfig from a kernel via linux_test.configfile.structuredConfig in order to reinject it into another kernel, no need to rewrite the config from scratch The following merge strategies are used in case of conflict: -- freeform items must be equal or they conflict (mergeEqualOption) -- for tristate (y/m/n) entries, I use the mergeAnswer strategy which takes the best available value, "best" being defined by the user (by default "y" > "m" > "n", e.g. if one entry is both marked "y" and "n", "y" wins) -- if one item is both marked optional/mandatory, mandatory wins (mergeFalseByDefault)
* linux: translate config to structured configDan Peebles2018-06-30
Instead of using a string to describe kernel config, use a nix attribute set, then converted to a string. - allows to override the config, aka convert 'yes' into 'modules' or vice-versa - while for now merging different configs is still crude (last spec wins), at least there should be only one CONFIG_XYZ value compared to the current string config where the first defined would be used and others ignored. [initial idea by copumpkin in 2016, a major rebase to 2018 by teto]