From 9379c34b113d3fc72ce25b88f83fb349439aec97 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Tue, 31 Mar 2009 20:10:05 +0000 Subject: [PATCH] Renable preConfigure for kernel builder. Actually needed by custom kernel Linux kernel 2.6.29 (release) has a slightly changed Makefile. They now add the prefix for depmod. So in NixOS "make modules_install" fails on depmod. To fix it, our old '/-b \$(INSTALL_MOD_PATH) -r/d' should be replaced with '/-b \$(INSTALL_MOD_PATH)/d'. svn path=/nixpkgs/trunk/; revision=14811 --- pkgs/os-specific/linux/kernel/builder.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/os-specific/linux/kernel/builder.sh b/pkgs/os-specific/linux/kernel/builder.sh index 246bafb748d3..84064134d01f 100644 --- a/pkgs/os-specific/linux/kernel/builder.sh +++ b/pkgs/os-specific/linux/kernel/builder.sh @@ -3,6 +3,10 @@ source $stdenv/setup configurePhase=configurePhase configurePhase() { + if test -n "$preConfigure"; then + eval "$preConfigure"; + fi + export INSTALL_PATH=$out export INSTALL_MOD_PATH=$out