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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user