2023-05-16 07:42:48 -04:00
|
|
|
{ lib, callPackage, linuxPackagesFor, kernelPatches, ... }:
|
2023-04-16 16:43:32 -04:00
|
|
|
|
|
|
|
let
|
2023-07-26 02:44:47 -04:00
|
|
|
modDirVersion = "6.5.0-rc1";
|
2023-04-16 16:43:32 -04:00
|
|
|
linuxPkg = { lib, fetchFromGitHub, buildLinux, ... }@args:
|
|
|
|
buildLinux (args // {
|
|
|
|
version = "${modDirVersion}-starfive-visionfive2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "starfive-tech";
|
|
|
|
repo = "linux";
|
2023-07-26 02:44:47 -04:00
|
|
|
rev = "64a6c57ec372c44d0f25416c9614657e274fccff";
|
|
|
|
hash = "sha256-ZOCCj/VyUZa36+q6sUnE+qA0FcNCFnQjIUils0hBb28=";
|
2023-04-16 16:43:32 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
inherit modDirVersion;
|
2023-05-16 07:42:48 -04:00
|
|
|
kernelPatches = [{
|
|
|
|
name = "verisilicon";
|
|
|
|
patch = ./verisilicon.patch;
|
|
|
|
}] ++ kernelPatches;
|
2023-04-16 16:43:32 -04:00
|
|
|
|
|
|
|
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 { }))
|