2009-09-11 15:16:18 +02:00
|
|
|
a :
|
|
|
|
let
|
|
|
|
s = import ./src-for-2.6.31-zen0.nix;
|
|
|
|
in
|
|
|
|
(import ../kernel/generic.nix) (rec {
|
|
|
|
inherit (a) stdenv fetchurl perl mktemp module_init_tools;
|
|
|
|
|
|
|
|
src = a.builderDefs.fetchGitFromSrcInfo s;
|
|
|
|
version = "2.6.31-zen0";
|
|
|
|
config = "./kernel-config";
|
|
|
|
features = {
|
|
|
|
iwlwifi = true;
|
|
|
|
zen = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
extraMeta = {
|
|
|
|
maintainers = [
|
|
|
|
a.lib.maintainers.raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
linux;
|
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
2009-09-11 15:50:40 +02:00
|
|
|
killOption () {
|
2009-09-11 15:59:32 +02:00
|
|
|
sed -re "s/$1=[ym]/# $1 is not set/" -i .config
|
2009-09-11 15:50:40 +02:00
|
|
|
}
|
|
|
|
setOptionMod () {
|
2009-09-11 15:59:32 +02:00
|
|
|
sed -re "s/# $1 is not set/$1=m/" -i .config
|
2009-09-11 15:50:40 +02:00
|
|
|
}
|
|
|
|
setOptionYes () {
|
2009-09-11 15:59:32 +02:00
|
|
|
sed -re "s/# $1 is not set/$1=y/" -i .config
|
2009-09-11 15:50:40 +02:00
|
|
|
}
|
|
|
|
|
2009-09-11 15:16:18 +02:00
|
|
|
make allmodconfig
|
|
|
|
|
2009-09-11 15:50:40 +02:00
|
|
|
killOption CONFIG_IMA
|
|
|
|
|
2009-09-11 15:16:18 +02:00
|
|
|
cp .config ${config}
|
|
|
|
'';
|
|
|
|
})
|