2018-08-20 20:43:41 +02:00
|
|
|
{ stdenv, buildPackages, fetchFromGitHub, perl, buildLinux, libelf, utillinux, ... } @ args:
|
2018-06-19 17:07:53 +02:00
|
|
|
|
|
|
|
buildLinux (args // rec {
|
2018-12-21 03:13:06 +01:00
|
|
|
version = "4.14.87-153";
|
2018-06-19 17:07:53 +02:00
|
|
|
|
|
|
|
# modDirVersion needs to be x.y.z.
|
2018-12-21 03:13:06 +01:00
|
|
|
modDirVersion = "4.14.87";
|
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;
|
2018-12-21 03:13:06 +01:00
|
|
|
sha256 = "1aj3l8pf3nl0mm4m5z4z4iqd72b0nqip4cajmhpfjmq8vkygcw5c";
|
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 {}))
|