2020-11-24 16:29:28 +01:00
|
|
|
{ stdenv, buildPackages, fetchFromGitHub, perl, buildLinux, libelf, util-linux, ... } @ args:
|
2018-06-19 17:07:53 +02:00
|
|
|
|
|
|
|
buildLinux (args // rec {
|
2020-01-10 21:59:41 +01:00
|
|
|
version = "4.14.165-172";
|
2018-06-19 17:07:53 +02:00
|
|
|
|
|
|
|
# modDirVersion needs to be x.y.z.
|
2020-01-10 21:59:41 +01:00
|
|
|
modDirVersion = "4.14.165";
|
2018-06-19 17:07:53 +02:00
|
|
|
|
2018-08-16 13:35:14 +02:00
|
|
|
# branchVersion needs to be x.y.
|
2018-06-19 17:07:53 +02:00
|
|
|
extraMeta.branch = "4.14";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hardkernel";
|
|
|
|
repo = "linux";
|
|
|
|
rev = version;
|
2020-01-10 21:59:41 +01:00
|
|
|
sha256 = "10ayqjjs2hxj1q7sb0mxa3gv75q28lznjha19rpxvig2fpi8015s";
|
2018-06-19 17:07:53 +02:00
|
|
|
};
|
|
|
|
|
2018-07-16 21:34:30 +02:00
|
|
|
defconfig = "odroidxu4_defconfig";
|
|
|
|
|
|
|
|
# This extraConfig is (only) required because the gator module fails to build as-is.
|
|
|
|
extraConfig = ''
|
|
|
|
|
|
|
|
GATOR n
|
|
|
|
|
|
|
|
# This attempted fix applies correctly but does not fix the build.
|
|
|
|
#GATOR_MALI_MIDGARD_PATH ${src}/drivers/gpu/arm/midgard
|
|
|
|
|
|
|
|
'' + (args.extraConfig or "");
|
|
|
|
|
2018-08-16 13:35:14 +02:00
|
|
|
extraMeta.platforms = [ "armv7l-linux" ];
|
|
|
|
|
2018-06-19 17:07:53 +02:00
|
|
|
} // (args.argsOverride or {}))
|