2023-05-16 11:42:48 +00:00
|
|
|
{ lib, callPackage, linuxPackagesFor, kernelPatches, ... }:
|
2023-04-16 20:43:32 +00:00
|
|
|
|
|
|
|
let
|
2023-09-11 23:28:18 +00:00
|
|
|
modDirVersion = "6.5.0";
|
2023-04-16 20:43:32 +00:00
|
|
|
linuxPkg = { lib, fetchFromGitHub, buildLinux, ... }@args:
|
|
|
|
buildLinux (args // {
|
|
|
|
version = "${modDirVersion}-starfive-visionfive2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "starfive-tech";
|
|
|
|
repo = "linux";
|
2023-09-11 23:28:18 +00:00
|
|
|
rev = "0dfeb6ace464f0c455a9508815bb9f70760d6faf";
|
|
|
|
hash = "sha256-ZDMvEhnJtbyCVNI/WbE80k7ZWOldF491mgx6K/iPgdE=";
|
2023-04-16 20:43:32 +00:00
|
|
|
};
|
|
|
|
|
2023-08-17 07:09:55 +00:00
|
|
|
inherit modDirVersion kernelPatches;
|
2023-04-16 20:43:32 +00: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 { }))
|