1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-15 23:49:41 +01:00
nixos-hardware/starfive/visionfive/v2/linux-6.3.nix

37 lines
1.1 KiB
Nix
Raw Normal View History

2023-04-16 22:43:32 +02:00
{ lib, callPackage, linuxPackagesFor, kernelPatches, fetchpatch, ... }:
let
2023-04-29 16:50:43 +02:00
modDirVersion = "6.3.0-rc4";
2023-04-16 22:43:32 +02:00
linuxPkg = { lib, fetchFromGitHub, buildLinux, ... }@args:
buildLinux (args // {
version = "${modDirVersion}-starfive-visionfive2";
src = fetchFromGitHub {
owner = "starfive-tech";
repo = "linux";
2023-04-29 16:50:43 +02:00
rev = "a57bdb1d13f93c8fc1b3c668cc74d585bb20f3f8";
sha256 = "sha256-jnQnJChIGCyJt+zwGfUTsMhrwmWek/ngIM6Pae6OXuI=";
2023-04-16 22:43:32 +02:00
};
inherit modDirVersion;
kernelPatches = [
{
patch = fetchpatch {
url =
"https://github.com/torvalds/linux/commit/d83806c4c0cccc0d6d3c3581a11983a9c186a138.diff";
hash = "sha256-xUnEJkzQRIIBF/0GIpS0Cd+h6OdSiJlyva5xwxtleE0=";
};
}
] ++ kernelPatches;
2023-04-16 22:43:32 +02:00
structuredExtraConfig = with lib.kernel; {
PL330_DMA = no;
PINCTRL_STARFIVE_JH7110_SYS = yes;
SERIAL_8250_DW = yes;
};
extraMeta.branch = "JH7110_VisionFive2_upstream";
} // (args.argsOverride or { }));
in lib.recurseIntoAttrs (linuxPackagesFor (callPackage linuxPkg { }))