From 0c5776bc0fbc7336ca745135e251491409242a8d Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Tue, 31 Dec 2013 22:49:12 -0500 Subject: [PATCH] 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 --- pkgs/os-specific/linux/kernel/manual-config.nix | 4 ++++ 1 file changed, 4 insertions(+) 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 = ''