1{ stdenv, buildPackages, fetchFromGitHub, perl, buildLinux, libelf, utillinux, ... } @ args:
2
3buildLinux (args // rec {
4 version = "4.14.66-147";
5
6 # modDirVersion needs to be x.y.z.
7 modDirVersion = "4.14.66";
8
9 # branchVersion needs to be x.y.
10 extraMeta.branch = "4.14";
11
12 src = fetchFromGitHub {
13 owner = "hardkernel";
14 repo = "linux";
15 rev = version;
16 sha256 = "06v38jl4i7l8gl8zcpyp9vmjjhaqhbp7by15f82rxa724zppxi9x";
17 };
18
19 defconfig = "odroidxu4_defconfig";
20
21 # This extraConfig is (only) required because the gator module fails to build as-is.
22 extraConfig = ''
23
24 GATOR n
25
26 # This attempted fix applies correctly but does not fix the build.
27 #GATOR_MALI_MIDGARD_PATH ${src}/drivers/gpu/arm/midgard
28
29 '' + (args.extraConfig or "");
30
31 extraMeta.platforms = [ "armv7l-linux" ];
32
33} // (args.argsOverride or {}))