mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
0828e2d8c3
Want to get this out of here for 18.09, so it can be deprecated thereafter.
35 lines
810 B
Nix
35 lines
810 B
Nix
{ stdenv, buildPackages, fetchFromGitHub, perl, buildLinux, ubootTools, dtc, ... } @ args:
|
|
|
|
let
|
|
modDirVersion = "4.14.12";
|
|
tag = "r23";
|
|
in
|
|
stdenv.lib.overrideDerivation (buildLinux (args // rec {
|
|
version = "${modDirVersion}-ti-${tag}";
|
|
inherit modDirVersion;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "beagleboard";
|
|
repo = "linux";
|
|
rev = "${version}";
|
|
sha256 = "07hdv2h12gsgafxsqqr7b0fir10rv9k66riklpjba2cg6x0p2nr4";
|
|
};
|
|
|
|
kernelPatches = args.kernelPatches;
|
|
|
|
features = {
|
|
efiBootStub = false;
|
|
} // (args.features or {});
|
|
|
|
extraMeta.hydraPlatforms = [ "armv7l-linux" ];
|
|
} // (args.argsOverride or {}))) (oldAttrs: {
|
|
|
|
# This kernel will run mkuboot.sh.
|
|
postPatch = ''
|
|
patchShebangs scripts/
|
|
'';
|
|
|
|
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ dtc ubootTools ];
|
|
|
|
})
|