linux/kernel/manual-config: Allow manually specifying features, cleanup

This commit is contained in:
Shea Levy 2012-07-29 04:31:40 -04:00
parent 6bb20c7ba2
commit a9a7085684

View File

@ -1,7 +1,5 @@
{ stdenv, runCommand, nettools, perl, kmod }:
{ version, modDirVersion ? version, src, patches ? [], config }:
with stdenv.lib;
let
@ -39,13 +37,25 @@ let
modular = isYes "MODULES";
};
features = readFeatures config;
commonMakeFlags = [
"O=../build"
];
in
{
# The kernel version
version,
# The version of the kernel module directory
modDirVersion ? version,
# The kernel source (tarball, git checkout, etc.)
src,
# Any patches
patches ? [],
# The kernel .config file
config,
# Manually specified features the kernel supports
features ? readFeatures config
}:
let commonMakeFlags = [ "O=../build" ]; in
stdenv.mkDerivation ({
name = "linux-${version}";