mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
34 lines
849 B
Nix
34 lines
849 B
Nix
{ stdenv, buildPackages, fetchFromGitHub, perl, buildLinux, libelf, utillinux, ... } @ args:
|
|
|
|
buildLinux (args // rec {
|
|
version = "4.14.102-156";
|
|
|
|
# modDirVersion needs to be x.y.z.
|
|
modDirVersion = "4.14.102";
|
|
|
|
# branchVersion needs to be x.y.
|
|
extraMeta.branch = "4.14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hardkernel";
|
|
repo = "linux";
|
|
rev = version;
|
|
sha256 = "12af0n1lg2w2qm9aq1v8w3x8npaka60ks9xp6jwaw0l06j23ryyv";
|
|
};
|
|
|
|
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 "");
|
|
|
|
extraMeta.platforms = [ "armv7l-linux" ];
|
|
|
|
} // (args.argsOverride or {}))
|