2018-01-15 05:03:19 +01:00
|
|
|
{ stdenv, buildPackages, hostPlatform, fetchFromGitHub, perl, buildLinux, ubootTools, dtc, ... } @ args:
|
2017-11-09 17:28:14 +01:00
|
|
|
|
|
|
|
let
|
2018-01-15 05:03:19 +01:00
|
|
|
modDirVersion = "4.14.12";
|
|
|
|
tag = "r23";
|
2017-11-09 17:28:14 +01:00
|
|
|
in
|
2018-01-28 19:50:18 +01:00
|
|
|
stdenv.lib.overrideDerivation (buildLinux (args // rec {
|
2017-11-09 17:28:14 +01:00
|
|
|
version = "${modDirVersion}-ti-${tag}";
|
|
|
|
inherit modDirVersion;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "beagleboard";
|
|
|
|
repo = "linux";
|
|
|
|
rev = "${version}";
|
2018-01-15 05:03:19 +01:00
|
|
|
sha256 = "07hdv2h12gsgafxsqqr7b0fir10rv9k66riklpjba2cg6x0p2nr4";
|
2017-11-09 17:28:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
kernelPatches = args.kernelPatches;
|
|
|
|
|
|
|
|
features = {
|
|
|
|
efiBootStub = false;
|
|
|
|
} // (args.features or {});
|
|
|
|
|
2018-01-15 05:03:19 +01:00
|
|
|
extraMeta.hydraPlatforms = [ "armv7l-linux" ];
|
|
|
|
} // (args.argsOverride or {}))) (oldAttrs: {
|
|
|
|
|
|
|
|
# This kernel will run mkuboot.sh.
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs scripts/
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ dtc ubootTools ];
|
|
|
|
|
|
|
|
})
|