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:
@@ -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
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user