linux-common-config: Refactor, clean up#27949
Conversation
|
@NeQuissimus, thanks for your PR! By analyzing the history of the files in this pull request, we identified @edolstra, @wkennington and @dezgeg to be potential reviewers. |
87c7223 to
af01a8b
Compare
af01a8b to
0cf0d71
Compare
|
Err, why? The categories were definitely meaningful, in fact even more categorized was planned & would be much better: https://github.com/NixOS/nixpkgs/pull/12158/files. After this change it's now completely impossible to see the reasons of why e.g. And why painstakingly split these by kernel version instead of just letting the question mark do its thing? E.g.: The only purpose of these is to disable unnecessary stuff, and if the symbol doesn't exist, then there is simply nothing to do, the end result is the same either way! The version of the kernel didn't matter a single bit to NixOS. This file is completely unmaintainable right now. |
|
Can we revisit this? I agree organizing entirely around feature flags/versions is harder to follow than organizing by purpose/topic (fuzzy as that can be). Is it possible to improve things along the lines in this proposal without completely changing the primary organizing principle? Of more immediate concern is that the config no longer builds on i686, some previously optional but now required configs are evidently platform dependent (e.g., |
|
Definitely, let me revert the change... The common config needs refactoring for sure, though. All those optionals floating around everywhere does not help its readability. In the end, I would love to see #12158 revived and our builds adapted to it, let's ping @copumpkin |
|
@NeQuissimus thank you |
Motivation for this change
Refactor and clean up common kernel configuration.
Some of our kernels were throwing out plenty of warnings and this gets rid of them.
Also, it is now much easier to find out what options are valid for which kernel versions and feature toggles.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandboxinnix.confon non-NixOS)
nix-shell -p nox --run "nox-review wip"./result/bin/)I built
nix-build -A <PKG>.configfileforlinux_3_10linux_4_4linux_4_9linux_4_12linux_hardened_copperheadlinux_samus_4_12linux_testinglinux_chromiumos_3_18linux_rpilinux_mptcplinux_minipli(from linux-minipli: Init at 4.9.40 #27935)None of the above report any warnings (or errors) anymore.