diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-02-16 19:27:51 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-02-16 19:27:51 +0000 |
commit | c86da889cc12794daaff158021beecb79a036406 (patch) | |
tree | 2d93aff1e81e16fee5e20ad6b2bdbccd65923ab0 /pkgs/os-specific/linux/kernel/generic.nix | |
parent | b07babb810fe80b956fd95d587219a943a0f7ebe (diff) | |
download | nixlib-c86da889cc12794daaff158021beecb79a036406.tar nixlib-c86da889cc12794daaff158021beecb79a036406.tar.gz nixlib-c86da889cc12794daaff158021beecb79a036406.tar.bz2 nixlib-c86da889cc12794daaff158021beecb79a036406.tar.lz nixlib-c86da889cc12794daaff158021beecb79a036406.tar.xz nixlib-c86da889cc12794daaff158021beecb79a036406.tar.zst nixlib-c86da889cc12794daaff158021beecb79a036406.zip |
Made the kernel generate-config "build as modules as you can" an option.
Sepcifically, a nixpkgs "platform" option. So, for PC all remained the same as it was. svn path=/nixpkgs/trunk/; revision=20059
Diffstat (limited to 'pkgs/os-specific/linux/kernel/generic.nix')
-rw-r--r-- | pkgs/os-specific/linux/kernel/generic.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/kernel/generic.nix b/pkgs/os-specific/linux/kernel/generic.nix index f1981d261c69..42e12314a217 100644 --- a/pkgs/os-specific/linux/kernel/generic.nix +++ b/pkgs/os-specific/linux/kernel/generic.nix @@ -33,7 +33,12 @@ , preConfigure ? "" , extraMeta ? {} -, platform ? { name = "pc"; uboot = null; kernelBaseConfig = "defconfig"; } +, platform ? { + name = "pc"; + uboot = null; + kernelBaseConfig = "defconfig"; + kernelAutoModules = true; + } , ... }: @@ -64,6 +69,7 @@ stdenv.mkDerivation { generateConfig = ./generate-config.pl; inherit preConfigure src module_init_tools localVersion; + autoModules = platform.kernelAutoModules; patches = map (p: p.patch) kernelPatches; |