linux-3.1.nix: Set modDirVersion
broadcom-sta: use kernel.modDirVersion in place of kernel.version svn path=/nixpkgs/trunk/; revision=28406
This commit is contained in:
parent
ffdc37215a
commit
532511e7f5
2 changed files with 4 additions and 2 deletions
|
@ -20,7 +20,7 @@ stdenv.mkDerivation {
|
|||
(! builtins.lessThan (builtins.compareVersions kernel.version "2.6.37") 0)
|
||||
[ ./mutex-sema.patch ];
|
||||
|
||||
makeFlags = "KDIR=${kernel}/lib/modules/${kernel.version}/build";
|
||||
makeFlags = "KDIR=${kernel}/lib/modules/${kernel.modDirVersion}/build";
|
||||
|
||||
unpackPhase =
|
||||
''
|
||||
|
@ -31,7 +31,7 @@ stdenv.mkDerivation {
|
|||
|
||||
installPhase =
|
||||
''
|
||||
binDir="$out/lib/modules/${kernel.version}/kernel/net/wireless/"
|
||||
binDir="$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
|
||||
docDir="$out/share/doc/broadcom-sta/"
|
||||
ensureDir "$binDir" "$docDir"
|
||||
cp wl.ko "$binDir"
|
||||
|
|
|
@ -193,6 +193,8 @@ import ./generic.nix (
|
|||
|
||||
rec {
|
||||
version = "3.1-rc1";
|
||||
|
||||
modDirVersion = "3.1.0-rc1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/kernel/v3.x/testing/linux-${version}.tar.bz2";
|
||||
|
|
Loading…
Reference in a new issue