linux/kernel/manual-config: Allow manually specifying features, cleanup
This commit is contained in:
parent
6bb20c7ba2
commit
a9a7085684
@ -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}";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user