* Various hacks needed to get the NVIDIA driver to build on
Linux 2.6.28. In particular the arch-specific headers are in a different place now. (I'd like to do "make headers_install", but it doesn't install all the headers that are needed to build external kernel modules. What a mess.) * Add Linux 2.6.28 to the channel. svn path=/nixpkgs/trunk/; revision=13775
This commit is contained in:
parent
eeb63a3ed4
commit
739ef5e82a
@ -122,11 +122,14 @@ installPhase() {
|
|||||||
cp -a scripts $out/lib/modules/$version/build
|
cp -a scripts $out/lib/modules/$version/build
|
||||||
|
|
||||||
# copy include files
|
# copy include files
|
||||||
mkdir -p $out/lib/modules/$version/build/include
|
includeDir=$out/lib/modules/$version/build/include
|
||||||
cd include
|
mkdir -p $includeDir
|
||||||
cp -a acpi config linux math-emu media net pcmcia rxrpc scsi sound video asm asm-generic $out/lib/modules/$version/build/include
|
(cd include && cp -a acpi config linux math-emu media net pcmcia rxrpc scsi sound video asm-generic $includeDir)
|
||||||
cp -a `readlink asm` $out/lib/modules/$version/build/include
|
if test -e arch/$archDir/include/asm; then
|
||||||
cd ..
|
cp -a arch/$archDir/include/asm $includeDir
|
||||||
|
else
|
||||||
|
cp -a include/$archDir $includeDir
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,6 +22,8 @@ buildPhase() {
|
|||||||
kernelVersion=$(cd $kernel/lib/modules && ls)
|
kernelVersion=$(cd $kernel/lib/modules && ls)
|
||||||
sysSrc=$(echo $kernel/lib/modules/$kernelVersion/build/)
|
sysSrc=$(echo $kernel/lib/modules/$kernelVersion/build/)
|
||||||
unset src # used by the nv makefile
|
unset src # used by the nv makefile
|
||||||
|
# Hack necessary to compile on 2.6.28.
|
||||||
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$sysSrc/include/asm/mach-default"
|
||||||
make SYSSRC=$sysSrc module
|
make SYSSRC=$sysSrc module
|
||||||
cd ../../..
|
cd ../../..
|
||||||
}
|
}
|
||||||
|
@ -264,6 +264,13 @@ let
|
|||||||
inherit (pkgs.kernelPackages_2_6_27)
|
inherit (pkgs.kernelPackages_2_6_27)
|
||||||
kernel
|
kernel
|
||||||
klibc
|
klibc
|
||||||
|
# splashutils
|
||||||
|
;
|
||||||
|
};
|
||||||
|
kernelPackages_2_6_28 = pkgs.recurseIntoAttrs {
|
||||||
|
inherit (pkgs.kernelPackages_2_6_28)
|
||||||
|
kernel
|
||||||
|
klibc
|
||||||
# splashutils
|
# splashutils
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user