2018-06-19 16:07:53 +01:00
|
|
|
{ stdenv, buildPackages, hostPlatform, fetchFromGitHub, perl, buildLinux, libelf, utillinux, ... } @ args:
|
|
|
|
|
|
|
|
buildLinux (args // rec {
|
2018-07-16 20:34:30 +01:00
|
|
|
version = "4.14.55-146";
|
2018-06-19 16:07:53 +01:00
|
|
|
|
|
|
|
# modDirVersion needs to be x.y.z.
|
2018-07-16 20:34:30 +01:00
|
|
|
modDirVersion = "4.14.55";
|
2018-06-19 16:07:53 +01:00
|
|
|
|
|
|
|
# branchVersion needs to be x.y.
|
|
|
|
extraMeta.branch = "4.14";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hardkernel";
|
|
|
|
repo = "linux";
|
|
|
|
rev = version;
|
2018-07-16 20:34:30 +01:00
|
|
|
sha256 = "1bm1njng4rwfylgnqv06vabkvybm9rikqj1lsb7p9qcs3y1kw6mh";
|
2018-06-19 16:07:53 +01:00
|
|
|
};
|
|
|
|
|
2018-07-16 20:34:30 +01: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-06-19 16:07:53 +01:00
|
|
|
} // (args.argsOverride or {}))
|