1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-26 21:09:42 +01:00

apple/t2: update to kernel 6.9.3

* also updates the patches kernel to include the apfs module
This commit is contained in:
Cassie Cheung 2024-06-09 22:48:25 +08:00 committed by mergify[bot]
parent 057a7996d0
commit 35f2177d66

View file

@ -5,11 +5,11 @@ let
patchRepo = fetchFromGitHub { patchRepo = fetchFromGitHub {
owner = "t2linux"; owner = "t2linux";
repo = "linux-t2-patches"; repo = "linux-t2-patches";
rev = "48429c87a9a7fa7ea6b328da46ef1ea8725c31da"; rev = "33d5a01c41f140a416a7f840cc06e7f30dc58d8d";
hash = "sha256-KK5DjQPjBq7dRCLckagxigyHlRtantJ51bnHFCLfbxU="; hash = "sha256-wx5jkOQ8l/4XRGLV9KFrxXuqunwcFA9RB1yhrtseP2A=";
}; };
version = "6.9.2"; version = "6.9.3";
majorVersion = with lib; (elemAt (take 1 (splitVersion version)) 0); majorVersion = with lib; (elemAt (take 1 (splitVersion version)) 0);
in in
buildLinux (args // { buildLinux (args // {
@ -22,7 +22,7 @@ buildLinux (args // {
src = runCommand "patched-source" {} '' src = runCommand "patched-source" {} ''
cp -r ${fetchzip { cp -r ${fetchzip {
url = "mirror://kernel/linux/kernel/v${majorVersion}.x/linux-${version}.tar.xz"; url = "mirror://kernel/linux/kernel/v${majorVersion}.x/linux-${version}.tar.xz";
hash = "sha256-8SyfBmjLSWsBPvboCMh4qBAjaQ7yPT+AvMd3FTeYzMM="; hash = "sha256-7262WHO2veIn+9cd4m9io1ov93LsfpgRKfmvBx0DCBA=";
}} $out }} $out
chmod -R u+w $out chmod -R u+w $out
cd $out cd $out
@ -35,6 +35,7 @@ buildLinux (args // {
structuredExtraConfig = with lib.kernel; { structuredExtraConfig = with lib.kernel; {
APPLE_BCE = module; APPLE_BCE = module;
APPLE_GMUX = module; APPLE_GMUX = module;
APFS_FS = module;
BRCMFMAC = module; BRCMFMAC = module;
BT_BCM = module; BT_BCM = module;
BT_HCIBCM4377 = module; BT_HCIBCM4377 = module;