2012-12-27 22:29:56 +01:00
|
|
|
args @ {
|
2013-01-29 00:42:36 +01:00
|
|
|
stdenv, fetchurl, extraConfig ? "" , perl, mktemp, module_init_tools, ...
|
2012-12-27 22:29:56 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
configWithPlatform = kernelPlatform :
|
|
|
|
''
|
|
|
|
${if kernelPlatform ? kernelExtraConfig then kernelPlatform.kernelExtraConfig else ""}
|
|
|
|
${extraConfig}
|
|
|
|
'';
|
2013-01-29 00:42:36 +01:00
|
|
|
|
|
|
|
rev = "91a3be5b2b";
|
2012-12-27 22:29:56 +01:00
|
|
|
in
|
|
|
|
|
|
|
|
import ./generic.nix (
|
|
|
|
|
|
|
|
rec {
|
2013-01-29 00:42:36 +01:00
|
|
|
version = "3.6.y-${rev}";
|
2012-12-27 22:29:56 +01:00
|
|
|
testing = false;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace scripts/depmod.sh --replace '-b "$INSTALL_MOD_PATH"' ""
|
|
|
|
'';
|
|
|
|
|
2013-01-29 00:42:36 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://api.github.com/repos/raspberrypi/linux/tarball/${rev}";
|
|
|
|
name = "linux-raspberrypi-${version}.tar.gz";
|
|
|
|
sha256 = "04370b1da7610622372940decdc13ddbba2a58c9da3c3bd3e7df930a399f140d";
|
2012-12-27 22:29:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
config = configWithPlatform stdenv.platform;
|
|
|
|
configCross = configWithPlatform stdenv.cross.platform;
|
|
|
|
|
|
|
|
features.iwlwifi = true;
|
|
|
|
#features.efiBootStub = true;
|
|
|
|
#features.needsCifsUtils = true;
|
|
|
|
#features.canDisableNetfilterConntrackHelpers = true;
|
|
|
|
#features.netfilterRPFilter = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
// removeAttrs args ["extraConfig"]
|
|
|
|
)
|