summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/2.6.23.1.nix
blob: 5b014b2591e001cdbb631dde04b5908d19e4fd47 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
args:
(import ./meta.nix)
( args //
  {
    version = "2.6.23.1";
    src_hash = { sha256 = "0737g83h7jbrlss8782b17mhc3nfn8qfbh5s71flz8pjxmbbmg1m"; };

	systemPatches = [
      { # resume with resume=swap:/dev/xx
        name = "tux on ice"; # (swsusp2)
        patch = args.fetchurl {
          url = "http://www.tuxonice.net/downloads/all/tuxonice-3.0-rc2-for-2.6.23.1.patch.bz2";
          sha256 = "ef86267b6f3d7e309221f5173a881afae1dfa57418be5b3963f2380b0633ca1a";
        };
        extraConfig = "
          CONFIG_SUSPEND2=y
          CONFIG_SUSPEND2_FILE=y
          CONFIG_SUSPEND2_SWAP=y
          CONFIG_CRYPTO_LZF=y
        ";
      }
      { name = "fbsplash-0.9.2-r5-2.6.21";
        patch = args.fetchurl {
          url = http://dev.gentoo.org/~dsd/genpatches/trunk/2.6.22/4200_fbsplash-0.9.2-r5.patch;
          sha256 = "0822wwlf2dqsap5qslnnp0yl1nbvvvb76l73w2dd8zsyn0bqg3px";
        };
        extraConfig = "CONFIG_FB_SPLASH=y";
      }
	];

    config = with args;
      if config != null then config else
      if userModeLinux then ./config-2.6.23-uml else
      if stdenv.system == "i686-linux" then ./config-2.6.23-i686-smp else
      if stdenv.system == "x86_64-linux" then ./config-2.6.23-x86_64-smp else
      abort "No kernel configuration for your platform!";
  }
)