kernel generate-config.pl: Properly support string options
Or we get something like: option not set correctly: NLS_DEFAULT (wanted 'utf8', got '"utf8"')
This commit is contained in:
parent
246bd302ec
commit
b4a4a63cc4
@ -124,7 +124,10 @@ my %config;
|
|||||||
open CONFIG, "<.config" or die;
|
open CONFIG, "<.config" or die;
|
||||||
while (<CONFIG>) {
|
while (<CONFIG>) {
|
||||||
chomp;
|
chomp;
|
||||||
if (/^CONFIG_([A-Za-z0-9_]+)=(.*)$/) {
|
if (/^CONFIG_([A-Za-z0-9_]+)="(.*)"$/) {
|
||||||
|
# String options have double quotes, e.g. 'CONFIG_NLS_DEFAULT="utf8"' and allow escaping.
|
||||||
|
($config{$1} = $2) =~ s/\\([\\"])/$1/g;
|
||||||
|
} elsif (/^CONFIG_([A-Za-z0-9_]+)=(.*)$/) {
|
||||||
$config{$1} = $2;
|
$config{$1} = $2;
|
||||||
} elsif (/^# CONFIG_([A-Za-z0-9_]+) is not set$/) {
|
} elsif (/^# CONFIG_([A-Za-z0-9_]+) is not set$/) {
|
||||||
$config{$1} = "n";
|
$config{$1} = "n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user