summary refs log tree commit diff
path: root/pkgs/os-specific/linux
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2013-12-31 22:49:12 -0500
committerShea Levy <shea@shealevy.com>2013-12-31 22:49:12 -0500
commit0c5776bc0fbc7336ca745135e251491409242a8d (patch)
treed0316006ce6f139d05900bc9172004bb54a12172 /pkgs/os-specific/linux
parentfe185f0a180a0482c89e9fe8f573bb2ce158b1fd (diff)
downloadnixlib-0c5776bc0fbc7336ca745135e251491409242a8d.tar
nixlib-0c5776bc0fbc7336ca745135e251491409242a8d.tar.gz
nixlib-0c5776bc0fbc7336ca745135e251491409242a8d.tar.bz2
nixlib-0c5776bc0fbc7336ca745135e251491409242a8d.tar.lz
nixlib-0c5776bc0fbc7336ca745135e251491409242a8d.tar.xz
nixlib-0c5776bc0fbc7336ca745135e251491409242a8d.tar.zst
nixlib-0c5776bc0fbc7336ca745135e251491409242a8d.zip
manual-config: Patch conf.c for generate-config.pl
This only affects the `oldaskconfig' make target, so it shouldn't really
affect current manual-config users, but it does make it more
straightforward to implement the generic kernel build on top of
manual-config.

Signed-off-by: Shea Levy <shea@shealevy.com>
Diffstat (limited to 'pkgs/os-specific/linux')
-rw-r--r--pkgs/os-specific/linux/kernel/manual-config.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/manual-config.nix b/pkgs/os-specific/linux/kernel/manual-config.nix
index 3036d8a04b0f..66e146799874 100644
--- a/pkgs/os-specific/linux/kernel/manual-config.nix
+++ b/pkgs/os-specific/linux/kernel/manual-config.nix
@@ -84,6 +84,10 @@ let
           sed -i "$mf" -e 's|/usr/bin/||g ; s|/bin/||g ; s|/sbin/||g'
       done
       sed -i Makefile -e 's|= depmod|= ${kmod}/sbin/depmod|'
+      # Patch kconfig to print "###" after every question so that
+      # generate-config.pl from the generic builder can answer them.
+      # This only affects oldaskconfig.
+      sed -e '/fflush(stdout);/i\printf("###");' -i scripts/kconfig/conf.c
     '';
 
     installPhase = ''