mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-12-09 02:21:10 +01:00
starfive visionfive2: update kernel to 6.4.0
This commit is contained in:
parent
429f232fe1
commit
ff35653b14
3 changed files with 55 additions and 15 deletions
30
starfive/visionfive/v2/linux-6.4.nix
Normal file
30
starfive/visionfive/v2/linux-6.4.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ lib, callPackage, linuxPackagesFor, kernelPatches, ... }:
|
||||
|
||||
let
|
||||
modDirVersion = "6.4.0";
|
||||
linuxPkg = { lib, fetchFromGitHub, buildLinux, ... }@args:
|
||||
buildLinux (args // {
|
||||
version = "${modDirVersion}-starfive-visionfive2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "starfive-tech";
|
||||
repo = "linux";
|
||||
rev = "e5a381c51d624ffd8784db908a58ae227d0608a4";
|
||||
sha256 = "sha256-gg3+2ITdnpo49UmySiAJnk47STW1I7kF7fsKGBVayRE=";
|
||||
};
|
||||
|
||||
inherit modDirVersion;
|
||||
kernelPatches = [{
|
||||
name = "verisilicon";
|
||||
patch = ./verisilicon.patch;
|
||||
}] ++ kernelPatches;
|
||||
|
||||
structuredExtraConfig = with lib.kernel; {
|
||||
PINCTRL_STARFIVE_JH7110_SYS = yes;
|
||||
SERIAL_8250_DW = yes;
|
||||
};
|
||||
|
||||
extraMeta.branch = "JH7110_VisionFive2_upstream";
|
||||
} // (args.argsOverride or { }));
|
||||
|
||||
in lib.recurseIntoAttrs (linuxPackagesFor (callPackage linuxPkg { }))
|
||||
Loading…
Add table
Add a link
Reference in a new issue