2023-05-16 13:42:48 +02:00
|
|
|
{ lib, callPackage, linuxPackagesFor, kernelPatches, ... }:
|
2023-04-16 22:43:32 +02:00
|
|
|
|
|
|
|
let
|
2023-07-26 08:44:47 +02:00
|
|
|
modDirVersion = "6.5.0-rc1";
|
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-08-17 09:09:55 +02:00
|
|
|
rev = "67e8df01b875afd312a7d2ab77f56a62f39dd6d9";
|
|
|
|
hash = "sha256-H+INnZTrfeCLmxPYbQEu3658/e5/Wz/Y5Ann2+lU6WQ=";
|
2023-04-16 22:43:32 +02:00
|
|
|
};
|
|
|
|
|
2023-08-17 09:09:55 +02:00
|
|
|
inherit modDirVersion kernelPatches;
|
2023-04-16 22:43:32 +02: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 { }))
|