linuxPackages.bbswitch: use kernel's make flags
We should be using whatever makeflags were used to build the kernel itself, otherwise clang-built kernels cannot use the module.
This commit is contained in:
parent
6e4c36b3f7
commit
98018cce2c
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,8 @@ stdenv.mkDerivation {
|
|||
--replace "/lib/modules" "${kernel.dev}/lib/modules"
|
||||
'';
|
||||
|
||||
makeFlags = kernel.makeFlags;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib/modules/${kernel.modDirVersion}/misc
|
||||
cp bbswitch.ko $out/lib/modules/${kernel.modDirVersion}/misc
|
||||
|
|
Loading…
Reference in a new issue