2023-05-16 07:42:48 -04:00
|
|
|
{ lib, callPackage, linuxPackagesFor, kernelPatches, ... }:
|
2023-04-16 16:43:32 -04:00
|
|
|
|
|
|
|
let
|
2023-11-15 13:22:54 -05:00
|
|
|
modDirVersion = "6.6.0";
|
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";
|
2024-01-29 11:20:48 -05:00
|
|
|
rev = "13eb70da2a73187c8c7aece13d23d68928aa8210";
|
|
|
|
hash = "sha256-bwB7Pc+Z+MWXPfWYdgtRGuhqjiNHLDGNCY62e4lBGvE=";
|
2023-04-16 16:43:32 -04:00
|
|
|
};
|
|
|
|
|
2023-08-17 03:09:55 -04:00
|
|
|
inherit modDirVersion 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 { }))
|