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
This commit is contained in:
Lluís Batlle i Rossell
2010-02-16 19:27:51 +00:00
parent b07babb810
commit c86da889cc
4 changed files with 15 additions and 3 deletions
@@ -13,6 +13,7 @@ use strict;
use IPC::Open2;
my $debug = $ENV{'DEBUG'};
my $autoModules = $ENV{'AUTO_MODULES'};
$SIG{PIPE} = 'IGNORE';
@@ -69,7 +70,7 @@ sub runConfig {
my $question = $1; my $name = $2; my $alts = $3;
my $answer = "";
# Build everything as a module if possible.
$answer = "m" if $alts =~ /\/m/;
$answer = "m" if $autoModules && $alts =~ /\/m/;
$answer = $answers{$name} if defined $answers{$name};
print STDERR "QUESTION: $question, NAME: $name, ALTS: $alts, ANSWER: $answer\n" if $debug;
print OUT "$answer\n";