Skip to content

Commit

Permalink
manual-config: Patch conf.c for generate-config.pl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
shlevy committed Mar 24, 2013
1 parent 06fac56 commit 7efab0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/os-specific/linux/kernel/manual-config.nix
Expand Up @@ -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 = ''
Expand Down

0 comments on commit 7efab0f

Please sign in to comment.