git.iko.soy/typeable/nixpkgs
on master help sign in
kernel generate-config.pl: Allow whitespace in values

In particular, this allows setting CONFIG_CMDLINE to a value with multiple space-seperated parameters. Other variables also take free-form strings and might similarly benefit.

commit92cc949f9f9193ff49b4d5dcbd80eee39b6cd42d authorEric Culp <eculperic@gmail.com> dateSun 11 Aug 2019, 14:01 (7 years ago) parentd98a165
1 file changed+1−1
pkgs/os-specific/linux/kernel/generate-config.pl+1−1
pkgs/os-specific/linux/kernel/generate-config.pl+1−1
@@ -28,7 +28,7 @@ open ANSWERS, "<$ENV{KERNEL_CONFIG}" or die "Could not open answer file";
2828while (<ANSWERS>) {
2929 chomp;
3030 s/#.*//;
31− if (/^\s*([A-Za-z0-9_]+)(\?)?\s+(\S+)\s*$/) {
31+ if (/^\s*([A-Za-z0-9_]+)(\?)?\s+(.*\S)\s*$/) {
3232 $answers{$1} = $3;
3333 $requiredAnswers{$1} = !(defined $2);
3434 } elsif (!/^\s*$/) {