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