Skip to content

apple/t2: refactor kernel package, update docs - #1384

Merged
mergify[bot] merged 4 commits into
NixOS:masterfrom
soopyc:apple-t2-updates
Feb 24, 2025
Merged

apple/t2: refactor kernel package, update docs#1384
mergify[bot] merged 4 commits into
NixOS:masterfrom
soopyc:apple-t2-updates

Conversation

@soopyc

@soopyc soopyc commented Feb 19, 2025

Copy link
Copy Markdown
Member
Description of changes

Overhauls the kernel package to base on nixpkgs' kernel, allow supporting multiple kernel versions, and adds an option to support switching between them.

Both packages build, tested stable working.

Things done
  • Tested the changes in your own NixOS Configuration
  • Tested the changes end-to-end by using your fork of nixos-hardware and
    importing it via <nixos-hardware> or Flake input

The option was removed in a previous PR but the README was not updated.
Reduce confusion by removing references to the deleted option.
@soopyc
soopyc marked this pull request as ready for review February 19, 2025 16:19
Refactors the kernel package to a generic one and adds support for the
lts kernel. Since nixpkgs' kernel packages provide the `kernelPatches`
override, utilizing that ensures that kernel updates are not delayed
too much due to having to PR them to nixos-hardware separately.

This comes at the expense of possible breakage when upstream updates
something that breaks the patches.

Because the T2 Linux project has a lot of patches which changes
periodically, including them in the repository directly is a maintenance
burden. Instead, this patch comes with an update script and JSON files
containing all of the patches to be downloaded (by fetchurl) and
applied.

The NixOS option to enable changing release versions will be added in
the next commit.
@Mic92

Mic92 commented Feb 24, 2025

Copy link
Copy Markdown
Member

@mergify queue

@mergify

mergify Bot commented Feb 24, 2025

Copy link
Copy Markdown
Contributor

queue

✅ The pull request has been merged automatically

Details

The pull request has been merged automatically at cda8312

mergify Bot added a commit that referenced this pull request Feb 24, 2025
mergify Bot added a commit that referenced this pull request Feb 24, 2025
mergify Bot added a commit that referenced this pull request Feb 24, 2025
@mergify
mergify Bot merged commit cda8312 into NixOS:master Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants