diff options
author | Ludovic Stordeur <Ludovic.Stordeur@inria.fr> | 2011-07-11 14:00:26 +0000 |
---|---|---|
committer | Ludovic Stordeur <Ludovic.Stordeur@inria.fr> | 2011-07-11 14:00:26 +0000 |
commit | 12f976e56e5448fa659e284776c263238c1c1628 (patch) | |
tree | 75a0bb491cdb51a37d5bde7f4af365bcc6e4c1ff /pkgs/os-specific | |
parent | 14f3664d3ff1bbe23a5744be9f3c09a92df3ceca (diff) | |
download | nixlib-12f976e56e5448fa659e284776c263238c1c1628.tar nixlib-12f976e56e5448fa659e284776c263238c1c1628.tar.gz nixlib-12f976e56e5448fa659e284776c263238c1c1628.tar.bz2 nixlib-12f976e56e5448fa659e284776c263238c1c1628.tar.lz nixlib-12f976e56e5448fa659e284776c263238c1c1628.tar.xz nixlib-12f976e56e5448fa659e284776c263238c1c1628.tar.zst nixlib-12f976e56e5448fa659e284776c263238c1c1628.zip |
Added Linux 2.6.15
svn path=/nixpkgs/trunk/; revision=27721
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/kernel/linux-2.6.15.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/linux-2.6.15.nix b/pkgs/os-specific/linux/kernel/linux-2.6.15.nix new file mode 100644 index 000000000000..2dd67f46167c --- /dev/null +++ b/pkgs/os-specific/linux/kernel/linux-2.6.15.nix @@ -0,0 +1,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"] +) \ No newline at end of file |