* 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
|
||||
|
||||
# copy include files
|
||||
mkdir -p $out/lib/modules/$version/build/include
|
||||
cd include
|
||||
cp -a acpi config linux math-emu media net pcmcia rxrpc scsi sound video asm asm-generic $out/lib/modules/$version/build/include
|
||||
cp -a `readlink asm` $out/lib/modules/$version/build/include
|
||||
cd ..
|
||||
includeDir=$out/lib/modules/$version/build/include
|
||||
mkdir -p $includeDir
|
||||
(cd include && cp -a acpi config linux math-emu media net pcmcia rxrpc scsi sound video asm-generic $includeDir)
|
||||
if test -e arch/$archDir/include/asm; then
|
||||
cp -a arch/$archDir/include/asm $includeDir
|
||||
else
|
||||
cp -a include/$archDir $includeDir
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -22,6 +22,8 @@ buildPhase() {
|
||||
kernelVersion=$(cd $kernel/lib/modules && ls)
|
||||
sysSrc=$(echo $kernel/lib/modules/$kernelVersion/build/)
|
||||
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
|
||||
cd ../../..
|
||||
}
|
||||
|
@ -264,6 +264,13 @@ let
|
||||
inherit (pkgs.kernelPackages_2_6_27)
|
||||
kernel
|
||||
klibc
|
||||
# splashutils
|
||||
;
|
||||
};
|
||||
kernelPackages_2_6_28 = pkgs.recurseIntoAttrs {
|
||||
inherit (pkgs.kernelPackages_2_6_28)
|
||||
kernel
|
||||
klibc
|
||||
# splashutils
|
||||
;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user