linux: translate config to structured config

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]
This commit is contained in:
Dan Peebles
2018-06-30 16:01:41 +03:00
committed by Tuomas Tynkkynen
parent bae87d5042
commit ff9999ad1b
4 changed files with 739 additions and 697 deletions
File diff suppressed because it is too large Load Diff