2022-06-04 06:47:40 +00:00
|
|
|
{ buildPackages, fetchFromGitHub, fetchurl, perl, buildLinux, libelf, util-linux, kernelPatches ? [], ... } @ args:
|
2018-06-19 15:07:53 +00:00
|
|
|
|
|
|
|
buildLinux (args // rec {
|
2020-07-12 19:04:04 +00:00
|
|
|
version = "4.14.180-176";
|
2018-06-19 15:07:53 +00:00
|
|
|
|
|
|
|
# modDirVersion needs to be x.y.z.
|
2020-07-12 19:04:04 +00:00
|
|
|
modDirVersion = "4.14.180";
|
2018-06-19 15:07:53 +00:00
|
|
|
|
2018-08-16 11:35:14 +00:00
|
|
|
# branchVersion needs to be x.y.
|
2018-06-19 15:07:53 +00:00
|
|
|
extraMeta.branch = "4.14";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hardkernel";
|
|
|
|
repo = "linux";
|
|
|
|
rev = version;
|
2020-07-12 19:04:04 +00:00
|
|
|
sha256 = "0n7i7a2bkrm9p1wfr20h54cqm32fbjvwyn703r6zm1f6ivqhk43v";
|
2018-06-19 15:07:53 +00:00
|
|
|
};
|
|
|
|
|
2022-06-04 06:47:40 +00:00
|
|
|
kernelPatches = args.kernelPatches ++ [{
|
|
|
|
name = "usbip-tools-fno-common";
|
|
|
|
patch = fetchurl {
|
|
|
|
url = "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/?id=d5efc2e6b98fe661dbd8dd0d5d5bfb961728e57a";
|
|
|
|
hash = "sha256-1CXYCV5zMLA4YdbCr8cO2N4CHEDzQChS9qbKYHPm3U4=";
|
|
|
|
};
|
|
|
|
}];
|
|
|
|
|
2018-07-16 19:34:30 +00: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 11:35:14 +00:00
|
|
|
extraMeta.platforms = [ "armv7l-linux" ];
|
|
|
|
|
2018-06-19 15:07:53 +00:00
|
|
|
} // (args.argsOverride or {}))
|