linux/kernel/manual-config: Cleanup

This commit is contained in:
Shea Levy 2012-07-29 04:52:34 -04:00
parent 98341e0bda
commit f7b6f01da1

View file

@ -51,6 +51,7 @@ in
# The kernel .config file
config,
# Manually specified features the kernel supports
# If unspecified, this will be autodetected from the .config
features ? readFeatures config
}:
@ -100,7 +101,7 @@ stdenv.mkDerivation ({
buildNativeInputs = [ perl nettools kmod ];
makeFlags = commonMakeFlags;
} // optionalAttrs features.modular {
} // optionalAttrs (features ? modular && features.modular) {
makeFlags = commonMakeFlags ++ [
"MODLIB=\"$(out)/lib/modules/${modDirVersion}\""
];