Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux/kernel/generic.nix: assert if constraints would be ignored #230036

Closed
wants to merge 1 commit into from
Closed

linux/kernel/generic.nix: assert if constraints would be ignored #230036

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented May 5, 2023

Description of changes

There appears to be a real mess with the naming of the attribute which contains structured extra configuration:

  • Nixpkgs' linux kernel expression uses structuredExtraConfig.
  • NixOS uses extraStructuredConfig.
  • Nixpkgs' kernelPatches use extraStructuredConfig.

At the moment, if the user uses the wrong convention the configuration constraints are silently dropped. Let's assert instead so they at least know that their request isn't being respected.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • mips64el-linux
    • powerpc64le-linux
  • Fits CONTRIBUTING.md.

There appears to be a real mess with the naming of the attribute
which contains structured extra configuration:

- Nixpkgs' linux kernel expression uses structuredExtraConfig.
- NixOS uses extraStructuredConfig.
- Nixpkgs' kernelPatches use extraStructuredConfig.

At the moment, if the user uses the wrong convention the
configuration constraints are silently dropped.  Let's `assert`
instead so they at least know that their request isn't being
respected.
@ghost
Copy link
Author

ghost commented May 5, 2023

Sorry, duplicate of #227999 . I'm cleaning up my tree.

@ghost ghost closed this May 5, 2023
@ghost ghost deleted the pr/kernel/warn-about-silently-ignored branch May 5, 2023 05:30
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants