diff options
author | Lluís Batlle i Rossell <viric@viric.name> | 2012-12-27 21:29:56 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@viric.name> | 2012-12-27 21:29:56 +0000 |
commit | ab2520c383b430d8ea5a6159779b1dcee3258038 (patch) | |
tree | dbb127d38a099771e6483dd5151f6762d5e015a7 /pkgs/os-specific/linux/kernel | |
parent | ee2f05d683cfdfe6169263d9185fbd0f76303d68 (diff) | |
download | nixlib-ab2520c383b430d8ea5a6159779b1dcee3258038.tar nixlib-ab2520c383b430d8ea5a6159779b1dcee3258038.tar.gz nixlib-ab2520c383b430d8ea5a6159779b1dcee3258038.tar.bz2 nixlib-ab2520c383b430d8ea5a6159779b1dcee3258038.tar.lz nixlib-ab2520c383b430d8ea5a6159779b1dcee3258038.tar.xz nixlib-ab2520c383b430d8ea5a6159779b1dcee3258038.tar.zst nixlib-ab2520c383b430d8ea5a6159779b1dcee3258038.zip |
Adding linux-3.6-rpi
I picked the change from https://github.com/aforemny/nixpkgs/commit/7b4d69eeff2eb10c395c8d1a52a0c1e246cddb45
Diffstat (limited to 'pkgs/os-specific/linux/kernel')
-rw-r--r-- | pkgs/os-specific/linux/kernel/linux-rpi-3.6.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/linux-rpi-3.6.nix b/pkgs/os-specific/linux/kernel/linux-rpi-3.6.nix new file mode 100644 index 000000000000..0dc6378fff38 --- /dev/null +++ b/pkgs/os-specific/linux/kernel/linux-rpi-3.6.nix @@ -0,0 +1,42 @@ +args @ { + stdenv, fetchgit, extraConfig ? "" , perl, mktemp, module_init_tools, ... +}: + +let + configWithPlatform = kernelPlatform : + '' + ${if kernelPlatform ? kernelExtraConfig then kernelPlatform.kernelExtraConfig else ""} + ${extraConfig} + ''; +in + +import ./generic.nix ( + + rec { + version = "3.6.y"; + testing = false; + + preConfigure = '' + substituteInPlace scripts/depmod.sh --replace '-b "$INSTALL_MOD_PATH"' "" + ''; + + src = fetchgit { + url = https://github.com/raspberrypi/linux; + rev = "6e1f8bce970043a658d15f9350eb85152fd5fc4e"; + sha256 = ""; + }; + + config = configWithPlatform stdenv.platform; + configCross = configWithPlatform stdenv.cross.platform; + + features.iwlwifi = true; + #features.efiBootStub = true; + #features.needsCifsUtils = true; + #features.canDisableNetfilterConntrackHelpers = true; + #features.netfilterRPFilter = true; + + fetchurl = null; + } + + // removeAttrs args ["extraConfig"] +) |