From 7efab0f375e5d8af233dc1b17946936cba432fa4 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sun, 24 Mar 2013 13:41:24 -0400 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 91f29e7c79762c..b51fe78b230df6 100644 --- a/pkgs/os-specific/linux/kernel/manual-config.nix +++ b/pkgs/os-specific/linux/kernel/manual-config.nix @@ -81,6 +81,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 = ''