summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/linux-2.6.15.nix
blob: 2dd67f46167c352957dd96b4998cc8c273e4bc29 (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
39
40
41
42
43
44
45
46
47
48
{ stdenv, fetchurl, extraConfig ? "", ... } @ args:

let
  configWithPlatform = kernelPlatform:
  ''
    # Don't include any debug features.
    DEBUG_KERNEL n

    # Support drivers that need external firmware.
    STANDALONE n

    # Make /proc/config.gz available.
    IKCONFIG_PROC y

    # Optimize with -O2, not -Os.
    CC_OPTIMIZE_FOR_SIZE n

    # Enable various subsystems.
    MTD_COMPLEX_MAPPINGS y # needed for many devices

    # Networking options.
    IP_PNP n
    IPV6_PRIVACY y

    # Filesystem options - in particular, enable extended attributes and
    # ACLs for all filesystems that support them.
    CIFS_XATTR y
    CIFS_POSIX y

    ${extraConfig}
  '';
in

import ./generic.nix (rec {
  version = "2.6.15.7";
  postBuild = "make $makeFlags $kernelTarget";

  src = fetchurl {
    url = "ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-${version}.tar.bz2";
      sha256 = "43e0c251924324749b06464512532c3002d6294520faabdba5b3aea4e840b48b";
  };

  config = configWithPlatform stdenv.platform;
  configCross = configWithPlatform stdenv.cross.platform;
}

// removeAttrs args ["extraConfig"]
)