uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
41
pkgs/os-specific/linux/kernel/linux-hardkernel-4.14.nix
Normal file
41
pkgs/os-specific/linux/kernel/linux-hardkernel-4.14.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ buildPackages, fetchFromGitHub, fetchurl, perl, buildLinux, libelf, util-linux, kernelPatches ? [], ... } @ args:
|
||||
|
||||
buildLinux (args // rec {
|
||||
version = "4.14.180-176";
|
||||
|
||||
# modDirVersion needs to be x.y.z.
|
||||
modDirVersion = "4.14.180";
|
||||
|
||||
# branchVersion needs to be x.y.
|
||||
extraMeta.branch = "4.14";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "hardkernel";
|
||||
repo = "linux";
|
||||
rev = version;
|
||||
sha256 = "0n7i7a2bkrm9p1wfr20h54cqm32fbjvwyn703r6zm1f6ivqhk43v";
|
||||
};
|
||||
|
||||
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=";
|
||||
};
|
||||
}];
|
||||
|
||||
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 {}))
|
||||
Loading…
Add table
Add a link
Reference in a new issue