summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/linux-rpi-3.6.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/os-specific/linux/kernel/linux-rpi-3.6.nix')
-rw-r--r--pkgs/os-specific/linux/kernel/linux-rpi-3.6.nix42
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..b425f2792b4b
--- /dev/null
+++ b/pkgs/os-specific/linux/kernel/linux-rpi-3.6.nix
@@ -0,0 +1,42 @@
+args @ {
+  stdenv, fetchurl, extraConfig ? "" , perl, mktemp, module_init_tools, ...
+}:
+
+let
+  configWithPlatform = kernelPlatform :
+    ''
+      ${if kernelPlatform ? kernelExtraConfig then kernelPlatform.kernelExtraConfig else ""}
+      ${extraConfig}
+    '';
+
+  rev = "91a3be5b2b";
+in
+
+import ./generic.nix (
+
+  rec {
+    version = "3.6.y-${rev}";
+    testing = false;
+
+    preConfigure = ''
+      substituteInPlace scripts/depmod.sh --replace '-b "$INSTALL_MOD_PATH"' ""
+    '';
+
+    src = fetchurl {
+      url = "https://api.github.com/repos/raspberrypi/linux/tarball/${rev}";
+      name = "linux-raspberrypi-${version}.tar.gz";
+      sha256 = "04370b1da7610622372940decdc13ddbba2a58c9da3c3bd3e7df930a399f140d";
+    };
+
+    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"]
+)