summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/generate-config.pl
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2009-12-14 17:22:38 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2009-12-14 17:22:38 +0000
commitc3e80cbc9f3fb072ac917124d99372305a9e70c7 (patch)
tree0c4c6a9846eb4e645394010eb141027800376123 /pkgs/os-specific/linux/kernel/generate-config.pl
parent03b4efe9c85ecb923210f8c19bfc5ff4db61812c (diff)
downloadnixpkgs-c3e80cbc9f3fb072ac917124d99372305a9e70c7.tar
nixpkgs-c3e80cbc9f3fb072ac917124d99372305a9e70c7.tar.gz
nixpkgs-c3e80cbc9f3fb072ac917124d99372305a9e70c7.tar.bz2
nixpkgs-c3e80cbc9f3fb072ac917124d99372305a9e70c7.tar.lz
nixpkgs-c3e80cbc9f3fb072ac917124d99372305a9e70c7.tar.xz
nixpkgs-c3e80cbc9f3fb072ac917124d99372305a9e70c7.tar.zst
nixpkgs-c3e80cbc9f3fb072ac917124d99372305a9e70c7.zip
* Get User-Mode Linux to build with a newer kernel. Yes, SHELL really
  has to be "/bin/sh" - other values such as "sh" or "bash" or "$(type
  -tP sh)" cause a build error:

  LD      .tmp_vmlinux1
  /nix/store/1yv8i1m76cvwk5w5i5wrk4gj5zyfj6vh-binutils-2.19.1/bin/ld:arch/um/kernel/vmlinux.lds:1: ignoring invalid character `#' in expression
  /nix/store/1yv8i1m76cvwk5w5i5wrk4gj5zyfj6vh-binutils-2.19.1/bin/ld:arch/um/kernel/vmlinux.lds:1: syntax error
  collect2: ld returned 1 exit status

  This is caused by Bash 4.0
  (http://bugzilla.kernel.org/show_bug.cgi?id=13343).

svn path=/nixpkgs/branches/kernel-config/; revision=18941
Diffstat (limited to 'pkgs/os-specific/linux/kernel/generate-config.pl')
-rw-r--r--pkgs/os-specific/linux/kernel/generate-config.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/kernel/generate-config.pl b/pkgs/os-specific/linux/kernel/generate-config.pl
index 56320ce882f..e8349db8ec8 100644
--- a/pkgs/os-specific/linux/kernel/generate-config.pl
+++ b/pkgs/os-specific/linux/kernel/generate-config.pl
@@ -128,7 +128,9 @@ while (<CONFIG>) {
 close CONFIG;
 
 foreach my $name (sort (keys %answers)) {
-    my $f = $requiredAnswers{$name} ? sub { die @_; } : sub { warn @_; };
+    my $f = $requiredAnswers{$name} && $ENV{'ignoreConfigErrors'} ne "1"
+        ? sub { die @_; } : sub { warn @_; };
+    my $f = sub { warn @_; };
     &$f("unused option: $name\n") unless defined $config{$name};
     &$f("option not set correctly: $name\n")
         if $config{$name} && $config{$name} ne $answers{$name};