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:
Bernardo Meurer 2021-09-10 14:42:17 -07:00
parent 6e4c36b3f7
commit 98018cce2c
No known key found for this signature in database
GPG key ID: F4C0D53B8D14C246

View file

@ -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