Again, trying to fix the kernel build.

It seems that there is no make target named 'vmlinuz' that makes the file 'vmlinuz'.
So we need different variables for the make target and the kernel file. Unless we
some day stop using the file 'vmlinuz' in pc, and use bzImage.

svn path=/nixpkgs/trunk/; revision=20092
This commit is contained in:
Lluís Batlle i Rossell 2010-02-18 10:25:33 +00:00
parent 513443dc9f
commit 5fc64e5f9c
2 changed files with 7 additions and 2 deletions

View File

@ -9,7 +9,10 @@ stdenv.mkDerivation rec {
buildInputs = [ mesa qt4 tcl tk];
preConfigure = "cd ros";
preConfigure = ''
export LDFLAGS=-L$out/lib
cd ros
'';
postInstall = ''
mv $out/inc $out/include

View File

@ -40,7 +40,9 @@ configurePhase() {
postBuild() {
# After the builder did a 'make all' (kernel + modules)
# we force building the target asked: bzImage/zImage/uImage/...
make $makeFlags $kernelTarget
if [ "$kernelTarget" != "vmlinuz" ]; then
make $makeFlags $kernelTarget
fi
}
installPhase() {